tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robin Böhm <robinbo...@me.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 Mon, 10 Sep 2012 10:27:41 GMT

Am 10.09.2012 um 12:16 schrieb Olivier Lamy <olamy@apache.org>:

> 2012/9/8 Konstantin Kolinko <knst.kolinko@gmail.com>:
>> 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 /*..*/?
> my bad.
>> 
>> 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.
> Yes it's already the case. I have just improved it test to ensure it works.
This Code is not tested now, i just send it to you that you have a base to implemented this
next step :)
Next time i will send it in a different file ;)
>> 
>>> +        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
>> 
> 
> 
> 
> -- 
> Olivier Lamy
> Talend: http://coders.talend.com
> http://twitter.com/olamy | http://linkedin.com/in/olamy
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
> 


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


Mime
View raw message