Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Other Build Tools
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Devaka Cooray
Liutauras Vilda
Sheriffs:
Jeanne Boyarsky
paul wheaton
Henry Wong
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Carey Brown
Mikalai Zaikin
Bartenders:
Lou Hamers
Piet Souris
Frits Walraven
Forum:
Other Build Tools
How to read environment variables using Ant
Caly LeeAnn
Ranch Hand
Posts: 55
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
How can I read environment variables using
Ant
when I build a
Java
application? For example, if I need to read $JBOSS_HOME, how can I do it?
Thank you.
Ulf Dittmer
Rancher
Posts: 43081
77
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Try this:
<property environment="env"/>
<property name="JBOSS_HOME" value="${env.JBOSS_HOME}"/>
Caly LeeAnn
Ranch Hand
Posts: 55
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thank you. That works fine.
Or we might never have existed at all. Freaky. So we should cherish everything. Even this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Working with Weblogic from ANT (start/stop/deploy/undeploy)
To compile servelts using ANT
Environment variables
including environment variables
weblogic
More...