Re: AW: Problem with parsing ant script from URL

2005-08-19 Thread M. Z.
Thanks Jan for your answer. I have more queries regarding this problem. Is InputStream supported? Any other object than File supported? I Checked the API and found this statement "A helper must support at least File, for backward compatibility. Helpers may support URL, InputStream, etc or s

Problem with parsing ant script from URL

2005-08-19 Thread M. Z.
Hi all, Does anybody know how to parse ant script from URL instead of File? What I need to do is as below: 1. I have a .jar file which contains my class file, the ant script, and some other dirs/files. 2. As I need to call ant tasks in the java class, I'll have to parse the ant script. However,

Help!! How to call imported ant target in Java

2005-08-07 Thread M. Z.
out to me that seems the main file with can't be parsed. I'd like to know how to correct it. Any advice would be appreciated! Thanks, Amy --- "M. Z." <[EMAIL PROTECTED]> wrote: Here's my Java code (I got the sample

Re: AW: How to call imported ant target/task in Java

2005-08-04 Thread M. Z.
le is (nearly) the same as coded > directly inside (at the end of) your main buildfile. > > Jan > > >-----Ursprüngliche Nachricht- > >Von: M. Z. [mailto:[EMAIL PROTECTED] > > >Gesendet: Freitag, 5. August 2005 05:28 > >An: user@ant.apache.org > &

How to call imported ant target/task in Java

2005-08-04 Thread M. Z.
Hi there, Can anybody advice me how to call an ant target/task, which is ""ed from another build file, from within Java code? Here's my Java code (I got the sample from this mailing list, thanks): - import org.apache.tools.ant.*; import java.io.*; im