Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Environment variables in Ant's build.properties?

843810Nov 23 2004 — edited Feb 1 2008
Is it possible to use $XXX_HOME style variables in a build.properties file?

Now I have in a file:

# Set the path to the JBoss directory containing the JBoss application server
# (This is the one containing directories like "bin", "client" etc.)
jboss.home=/opt/java/jboss-3.2.6
[...]

I have a $JBOSS_HOME environment variable with the correct path. When I'd change my JBOSS server I'd only have to change the var instead of going through all files to reset it .

So is it possible?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 29 2008
Added on Nov 23 2004
4 comments
2,814 views