| Author |
how to get build file name
|
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 23621
|
|
Is there a way to get the name of the build from within Ant? In the below example, I would be trying to get the string "MyBuild" into a property.
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Certs: SCEA Part 1, Part 2 & 3 & Core Spring 3, OCAJP
|
 |
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11945
|
|
${ant.project.name} is what you're looking for. And if you find yourself needing to know the path of the build script itself, ${ant.file} to rescue
|
Author of Test Driven (Manning Publications, 2007) [Blog] [HowToAskQuestionsOnJavaRanch]
|
 |
Daniel Mayer
Ranch Hand
Joined: Sep 09, 2004
Posts: 103
|
|
Originally posted by Lasse Koskela: ${ant.project.name} is what you're looking for. And if you find yourself needing to know the path of the build script itself, ${ant.file} to rescue
BTW, these properties and some more are documented in the manual: http://ant.apache.org/manual/using.html#built-in-props
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 23621
|
|
|
Thanks!
|
 |
 |
|
|
subject: how to get build file name
|
|
|