something like below (not tested) might work :
Project.xml
========
<build>
<resources>
<directory>${your.resources.folder.name}</directory>
<includes>
<include>**/*.properties</include>
</includes>
</resources>
</build>Resource.properties ============= application.description = @app.description@
Maven.xml
=======
<preGoal name="whatever">
<ant:filter token="app.description"" value="${pom.description}" />
</preGoal>please see http://wiki.codehaus.org/maven/FilteringResources
-- gd
Daniel Frey wrote:
Hi all
I just started with maven. I wonder, if during the build process it is possible to complete resources stored as properties with variables.
Example: My resource file Resouce.properties contains the following line:
application.description = The really full long description of my application
This data is set in the project.xml too:
<project>
…
<description>
The really full long description of my application
</description>
...
</project>
In my resource file, I would like to be able to do something like:
application.description = ${mave.project.description} // or something similar
When the original resource file is copied to the target directory, maven should replace these variables. Does somebody know how to do this?
Tanks,
Daniel Frey
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
