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
>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.