there is no right way to read the version from a file.. the pom is the file 
that contains the version...

stop thinking like an ant script and start thinking like an OO programmer

BTW thats not meant to be critical or offensive just to catch your attention 
and make you think...

On Tuesday 23 October 2007 03:47, baumar wrote:
t> Hi,
>
> What would be the right way to read the version number from a file?
>
> We decided that not all users (who maybe don't know maven very well) should
> check out the delicate pom file .
> We have a file like version.properties containing
>
> tavx.current.version=1.2.3a
>
> and defined in the pom
>
> <project>
>       <modelVersion>4.0.0</modelVersion>
>       <groupId>com.abc.tat.tavx</groupId>
>       <artifactId>tavx</artifactId>
>       <name>adapter</name>
>       <packaging>jar</packaging>
>       <version>${tavx.current.version}</version>
> ...
> <build>
>     <filters>
>          <filter>src/resources/version/version.properties</filter>
>     </filters>
>
> but that doesn't work.
>
>
> Thanks for help
>
> Markus

-- 
Michael McCallum
Enterprise Engineer
mailto:[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to