You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mick Knutson <mi...@gmail.com> on 2007/10/10 19:27:29 UTC
[m2] filtering the filter.properties?
I have a property in my filer.properties that I want to filter with the
project version property like:
c2.calculateCOBTotal.service.url =
http://localhost:8888/orabpel/default/CalculateCOBTotal/${project.version}
But it does not seem to filter the project.version. Any help?
--
Thanks,
Mick Knutson
http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---
Re: [m2] filtering the filter.properties?
Posted by Tim Kettler <ti...@udo.edu>.
Mick Knutson schrieb:
> I have a property in my filer.properties that I want to filter with the
> project version property like:
>
> c2.calculateCOBTotal.service.url =
> http://localhost:8888/orabpel/default/CalculateCOBTotal/${project.version}
>
> But it does not seem to filter the project.version. Any help?
>
This is working for me:
pom.xml:
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>my-test-group</groupId>
<artifactId>my-test-app</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
<filters>
<filter>src/main/filters/filter.properties</filter>
</filters>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
</project>
src/main/filters/filters.properties:
myProperty=http://url/${project.version}
src/main/resources/testfile:
${myProperty}
-Tim
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org