How to retrieve property from files

2008-03-26 Thread Tom Joad
Hello all, My problem is quite simple. I have a properties file wherein i have projectname webmodulename, version and other informations. I'd like to tell maven to retrieve these values into the pom.xml .For instance , i need to set default target directory to ${projectname}-${version} instead of

Re: How to retrieve property from files

2008-03-26 Thread Wayne Fay
Maven does not support reading properties out of external files like Ant. As for changing from /target to /whatever, before you start heading down this road, please do a little reading about what Maven is trying to do for you etc. Sonatype.com and Devzuz.com have links to free pdf ebooks they

Re: How to retrieve property from files

2008-03-26 Thread Tom Joad
Thanks , I'll already do it. So the example of target i give is not the good one.I need to load some properties that i don't know the value by advance. Our development center tag a version of application in cvs , and send us a file where are defined the version, the projectname, the moduleweb

Re: How to retrieve property from files

2008-03-26 Thread Wayne Fay
Maven is not Ant. Maven does not read from external property files and insert values into the pom at runtime. Wayne On 3/26/08, Tom Joad [EMAIL PROTECTED] wrote: Thanks , I'll already do it. So the example of target i give is not the good one.I need to load some properties that i don't know

Re: How to retrieve property from files

2008-03-26 Thread Tom Joad
Ok . I need to consider our build processing in other way ie maven way. Thanks again. 2008/3/26, Wayne Fay [EMAIL PROTECTED]: Maven is not Ant. Maven does not read from external property files and insert values into the pom at runtime. Wayne On 3/26/08, Tom Joad [EMAIL PROTECTED] wrote: