tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: svn commit: r1381781 - /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractExecWarMojo.java
Date Sat, 08 Sep 2012 11:39:12 GMT
2012/9/7  <olamy@apache.org>:
> Author: olamy
> Date: Thu Sep  6 22:18:30 2012
> New Revision: 1381781
>
> URL: http://svn.apache.org/viewvc?rev=1381781&view=rev
> Log:
> [MTOMCAT-174] tomcatConfigurationFilesDirectory is not implemented
>
> Submitted by Robin Böhm.
>
> Modified:
>     tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractExecWarMojo.java
>

> +        // Each File
> +        for ( String aIncludeFileName : directoryScanner.getIncludedFiles() )
> +        {
> +            getLog().debug( "include configuration file : " + pDestinationPath + aIncludeFileName
);
> +            File aInputFile = new File( pSourceFolder, aIncludeFileName );
> +
> +            FileInputStream aSourceFileInputStream = new FileInputStream( aInputFile
);
> +
> +            pArchiveOutputSteam.putArchiveEntry( new JarArchiveEntry( pDestinationPath
+ aIncludeFileName ) );
> +            IOUtils.copy( aSourceFileInputStream, pArchiveOutputSteam );
> +            pArchiveOutputSteam.closeArchiveEntry();
> +
> +        }
> +
> +        /*
> +        // Each Dir

Why this code block is commented-out with /*..*/?

There might be subdirectories in the configuration area (the usual one
is Catalina/localhost). They may contain context files for
applications, and "context.xml.default" file for specific host.

> +        for (String aIncludeDir : directoryScanner.getIncludedDirectories()) {
> +            File aSubDir = new File(pSourceFolder + "/" + aIncludeDir);
> +            if(!pSourceFolder.equals(aSubDir)){
> +                getLog().debug("include configuration dir : " + pDestinationPath + "/"
+ aIncludeDir);
> +                copyDirectoryContentIntoArchive(new File(pSourceFolder + "/" + aIncludeDir),
pDestinationPath + "/" + aIncludeDir, pArchiveOutputSteam);
> +            }
> +        }
> +        */

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message