Geo:
I have to agree with you Geo, ant is overkill but it works.
Russ:
I tried using the process-resources phase of the build lifecycle but
that messed up the rest of my files in the resources folder!
I have no idea why.
I guess whatever was happening to them by default got over-ridden by
me tryin
I believe you need to declare a property in the pom:
${env.SVN_REVISION}
your can test it by passing on the command line:
mvn -DSVN_REVISION=$SVN_REVISION ...
/r
At 9:36 PM -0400 8/2/10, Pulkit Singhal wrote:
>I followed your advise and setup something like the following:
>
Ant is the solution, and using the maven provided vars to set the replace
task...
Ok, is like kill a fly with a bazooka, but, it works... :D
2010/8/2 Dan Tran
> ah, dont tight hudson to your maven build, you should get maven to get
> those values for you via buildnumber-maven-plugin. This we y
ah, dont tight hudson to your maven build, you should get maven to get
those values for you via buildnumber-maven-plugin. This we you can
invoke maven any where without the need to have hudson to start your
build
-D
On Mon, Aug 2, 2010 at 6:46 PM, Pulkit Singhal wrote:
> Nope did not invent the
Nope did not invent the names :)
I'm using hudson and I believe that these environment variables are
being set by Hudson for me.
http://wiki.hudson-ci.org/display/HUDSON/Building+a+software+project#Buildingasoftwareproject-HudsonSetEnvironmentVariables
On Mon, Aug 2, 2010 at 9:38 PM, Wayne Fay
> ${BUILD_NUMBER}
> ${SVN_REVISION}
Where do you believe the values for these templates/variables should
be coming from? Did you just invent the names yourself?
Wayne
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.or
I followed your advise and setup something like the following:
${project.build.directory}/${project.artifactId}-${project.version}/test
true
${basedir}/src/main/resources
version.xml
and
${BUILD_NUMBER}
${SVN_REVISION}
But I get ba
during the process-resources phase of the build lifecycle [1], you can
substitute values.
see: http://maven.apache.org/ref/2.2.1/maven-model/maven.html#class_resource
you would need to enable filtering.
refs:
[1]
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
I know that what you suggested is a perfectly acceptable solution ...
but I cringe at the thought of running ant in maven ... no real reason
to do so ... it is just unappealing to me somehow. And I find it just
a bit odd that I can't write out or echo variables to a file. Doesn't
maven have any con
maybe with a Ant task
Look at the Replace task documentation
http://www.jajakarta.org/ant/ant-1.6.1/docs/en/manual/CoreTasks/replace.html
You need first, make a copy from a template with a Copy task, and next use
the replace task to replace the token with the new value, the current
version... : D
Does anyone know how to write out to a file from inside a pom.xml file?
I ask because I want to put my hudson build's ${SVN_REVISION} value
into a version.txt file.
Any ideas?
- Pulkit
-
To unsubscribe, e-mail: users-unsubscr..
11 matches
Mail list logo