ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francisco Tolmasky <tolma...@gmail.com>
Subject Re: Calling task in another xml file from main build file
Date Wed, 12 Dec 2007 23:30:40 GMT
<ant file = "whatever.xml" target = "the_target" />

http://ant.apache.org/manual/CoreTasks/ant.html

Francisco

On Dec 12, 2007, at 3:25 PM, Z W wrote:

> Hi
>
> I have multiple tasks and I like to move a few tasks into another  
> xml file.
> What's the syntax to call another task in another xml file from the  
> original
> buildfile ?
> Eg:
>
>
> <ant antfile="task_file.xml">
>
> <!-- how do I make a task call ? -->
>
> </ant>
>
>
>
> task_file.xml
>
> <project>
>
> <target name="test_hi">
>
> <echo message="hi" />
>
> </target>
>
> </project>
>
>
>
> Any example similar to this is appreciated also.
>
> Thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message