2012/9/7  <ol...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to