2012/4/14 Konstantin Kolinko <[email protected]>:
> 2012/4/13 <[email protected]>:
>> Author: olamy
>> Date: Fri Apr 13 19:12:47 2012
>> New Revision: 1325908
>>
>> URL: http://svn.apache.org/viewvc?rev=1325908&view=rev
>> Log:
>> document new filtering on context file
>>
>> Modified:
>>
>> tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java
>>
>> Modified:
>> tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java
>> URL:
>> http://svn.apache.org/viewvc/tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java?rev=1325908&r1=1325907&r2=1325908&view=diff
>> ==============================================================================
>> ---
>> tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java
>> (original)
>> +++
>> tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java
>> Fri Apr 13 19:12:47 2012
>> @@ -305,7 +305,9 @@ public abstract class AbstractRunMojo
>>
>>
>> /**
>> - * The path of the Tomcat context XML file.
>> + * <p>The path of the Tomcat context XML file.</p>
>> + * <p>Prior to release 2.0, the file is filtering as a maven resource
>> so you can use
>> + * interpolation tokens ${ }</p>
>
> I do not understand the above wording.
> You mean that "${ }" can be used starting with 2.0?
>
> If yes then the sentence says quite the opposite.
> It should be s/prior/since/ and s/is filtering/is filtered/.
>
> If no then I'd note explicitly that "Since 2.0 you can no longer use ${}".
>
One more note. In context.xml (as well as in all other XML files
processed by Tomcat) you can use ${propname} to reference system
properties.
E.g. I usually create the following file to deploy manager app when
running with separate CATALINA_HOME and CATALINA_BASE:
<?xml version="1.0" encoding="UTF-8"?>
<Context docBase="${catalina.home}/webapps/manager"
antiResourceLocking="false" privileged="true" >
</Context>
Will such properties expansion in Tomcat stop working because of
interference from your new feature?
Best regards,
Konstantin Kolinko
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]