ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Ant project name description passed to Java file during compilation or Jar process?
Date Tue, 27 Apr 2010 04:49:57 GMT
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:mk144210@bcm.edu] 
>Gesendet: Montag, 26. April 2010 23:26
>An: user@ant.apache.org
>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: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message