Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-12-2005, 06:08 AM   #1
Registered: Jan 2004
Location: Pakistan
Distribution: OpenSuse 10.2, Slackware 11, Solaris 10
Posts: 415

Rep: Reputation: 34
how to refer to environment variables in an ant file


How can I refer to an environment variable in an ant build.xml file, say I want to use a path defined in a environment variable called CPATH

I use:

srcdir=$CPATH or "${CPATH}" or "$CPATH", none of them works.
Old 09-12-2005, 07:15 AM   #2
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint, Tribblix
Posts: 9,756

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
<property environment="env"/>


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
environment variables slinky2004 Linux - General 4 11-26-2005 10:59 AM
G++ environment variables, rerouting output, file listings and PIDs Kawahee Programming 7 09-19-2005 01:40 PM
environment variables Prakhardeep Linux - Software 3 10-06-2004 04:30 AM
Environment variables kdnt Linux - Newbie 11 11-01-2002 09:19 AM
Environment Variables if you su concoran Linux - Newbie 1 08-16-2002 08:18 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:10 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration