Hi,
I've just committed a new feature in CVS: filtering of runtime resources
and test resources. I've also committed a sample project that shows how
to use it, in src/plugins-build/examples/simple-filtering
Basically, whenever you want to filter some tokens in resources, use the
following syntax in your project.xml:
<build>
<sourceDirectory>src/java</sourceDirectory>
<resources>
<resource>
--> <filtering>true</filtering>
<directory>src/conf</directory>
<includes>
<include>test.properties</include>
</includes>
</resource>
<resource>
<directory>src/conf</directory>
<includes>
<include>test-nofilter.properties</include>
</includes>
</resource>
</resources>
</build>
Then write a pregoal on java:jar-resources or test:test-resources in
your project's maven.xml and create your Ant filter tokens there.
By default, filtering is off.
NOTE: For some unknown reasons the filtering does not seem to work yet
on the simple-filtering project. Not sure why... I'm debugging it...
Help welcome :-)
Thanks
-Vincent
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]