Hello, for such cases we developer our own plugin called svninfo, that stores SVN revision and tag name for every jar we develop. We also developed simple API for reading it for every jar in classpath that has this information.
This plugin doesn't use generic SCM plugin.
If there is interest we can publish it.
Anyway we use filtering this way:
<build>
<!-- there are variables we want to use -->
<filters>
<filter>../../conf/local-configuration-default.properties</filter>
<filter>../../conf/local-configuration.properties</filter>
</filters>
<resources>
<resource>
<directory>src/main/resources-properties</directory>
<filtering>true</filtering>
</resource>
</resources>
Petr
berndq píše v St 10. 01. 2007 v 10:22 +0100:
> Hi,
>
> I need to have the SCM revision somewhere in an assembled jar file.
>
> I can get it into a property but can't get it into e.g. the manifest
> file due to http://jira.codehaus.org/browse/MASSEMBLY-121
>
>
> I tried filtering but I could not get it to work. Anyway I am not sure
> how I would have to set up a filter based on a property value.
>
> Any help is appreciated.
>
> Bernd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
Petr Ferschmann
SoftEU s.r.o.
-----------------------------------
Sady Petatricatniku 31
301 00 Plzen
Czech Republic
-----------------------------------
Phone: +420 373 729 300
Fax: +420 373 729 301
Cell: +420 775 638 008
E-mail: [EMAIL PROTECTED]
smime.p7s
Description: S/MIME cryptographic signature
