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 
specialized types." So, are you sure URL isn't supported? (I'm asking this 
because your answer really made me upset.) 
 
Actually, as the jar file will be used in Java Webstart, I didn't want to 
extract it. Do you have any other idea?
 
Thanks in advance.
 
Amy
 
[EMAIL PROTECTED] wrote:
>Does anybody know how to parse ant script from URL instead of File?

URL is not supported - too many file relative tasks.


>2. As I need to call ant tasks in the java class, I'll have to 
>parse the ant script. 

Why? You dont have to parse a script - you can instantiate the tasks for
your own.


>However, as the script is in .jar, I 
>think I'll have to specify the URL instead of File object. 
>(Please correct me if it isn't
>necessary.)

Mmh - or extract the script prior parsing ...


Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to