dcsimg
Changing directories dynamically
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Revathi_PJ
Posted On:   Sunday, August 12, 2001 11:41 PM

Hi,

Iam executing ant in say c:work directory. There are some xml files in say c:workxml folder and I need to execute a java file from c:workxml folder using ant. Iam not able to do this since my basedir attribute of the project is set to c:work and java task doesnot allow me to specify a base directory info. How can i do this?


Earlier response awaited.


Rev

Re: Changing directories dynamically

Posted By:   Erik_Hatcher  
Posted On:   Monday, August 13, 2001 10:38 AM

You could use the task, which has a 'dir' attribute that sets the working directory. Or you could modify your Java program to accept a command-line argument to the path, and pass it to the program using the sub-elements of the task.
About | Sitemap | Contact