The moose likes Ant, Maven and Other Build Tools and the fly likes Sourcing a profile Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Sourcing a profile " Watch "Sourcing a profile " New topic
Author

Sourcing a profile

Arvind Varma
Ranch Hand

Joined: Dec 24, 2002
Posts: 48
Is it possible to source a property file in unix environment using ant?
using the following:
<exec executable=". ${appRunTimeDir}/setupnewEnv.sh">

throws Execute failed: java.io.IOException
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

That should be possible. Run ant with the -verbose flag to see if it will tell you any more about why there is an IOException. Also you could check the permissions on the file.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
 
subject: Sourcing a profile
 
Threads others viewed
increment operator in while loop
sdk 1.5 beta
Output of forEach Loop
floating point precision
session validate is not working in internet explorer only, but working with other browsers
developer file tools