http://ant.apache.org/manual/properties.html#built-in-props ant.project.name the name of the project that is currently executing; it is set in the name attribute of <project>.
Jan >-----Ursprüngliche Nachricht----- >Von: Misha Koshelev [mailto:[email protected]] >Gesendet: Montag, 26. April 2010 23:26 >An: [email protected] >Betreff: Ant project name description passed to Java file >during compilation or Jar process? > >Dear Sirs or Madams: > >I would like to automatically pull the ant project name and/or >description from my java program. > >Is this somehow possible? > >Much help appreciated. > >Specifically, would be great to have this during either >i) javac task >or >ii) jar task > >I realize that you can use java -Da=b but when my JAR is >deployed, this seems like it would be lost... > >Thank you >Misha > >p.s. Please reply-all >-- >Misha Koshelev >MD/PhD Student > >Human Neuroimaging Laboratory >One Baylor Plaza >S104 >Baylor College of Medicine >Houston, TX 77030 > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [email protected] >For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
