How can i dynamically set the classpath
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Alex_Tang
Posted On:   Saturday, November 2, 2002 01:13 AM

Hi folks. I'm trying to dynamically setup my classpath from a set of files in a directory. Is there an ant builtin task that I haven't yet found to do this? If not, here's a specific implementation that i'm trying to create. Using the ant-contrib foreach task, i can iterate over a set of files in a directory. Can someone help me fill in the missing code? // what do i do here to add ${jarFile} to the classpath Thanks. ...alex...    More>>

Hi folks.



I'm trying to dynamically setup my classpath from a set of files in a directory. Is there an ant builtin task that I haven't yet found to do this?



If not, here's a specific implementation that i'm trying to create. Using the ant-contrib foreach task, i can iterate over a set of files in a directory. Can someone help me fill in the missing code?



			









// what do i do here to add ${jarFile} to the classpath



Thanks.


...alex...

   <<Less

Re: How can i dynamically set the classpath

Posted By:   Erik_Hatcher  
Posted On:   Saturday, November 2, 2002 06:15 AM

What's wrong with simply using the heart of Ant, something like this:





??


Where are you going to use this classpath?

About | Sitemap | Contact