You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by "m.sudan" <m....@gmail.com> on 2008/12/03 15:11:36 UTC

How to call a task from a directory

Hi,

How to call target, say t1 from a directory C:\abc\build.xml file into
target, say x1 (D:\xyz\build.xml file)?

Both build files are defined in two different directories.

Thanks.

madhu

-- 
View this message in context: http://www.nabble.com/How-to-call-a-task-from-a-directory-tp20813653p20813653.html
Sent from the Ant - Dev mailing list archive at Nabble.com.


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


Re: AW: How to call a task from a directory

Posted by "m.sudan" <m....@gmail.com>.
I try <ant> task. But its give some errors.
Can you provide me source code ?

Thanks.

Jan.Materne wrote:
> 
> This is more a question for the user@ant mailinglist.
> Try <ant>
> 
> Jan 
> 
>>-----Ursprüngliche Nachricht-----
>>Von: m.sudan [mailto:m.sudan21@gmail.com] 
>>Gesendet: Mittwoch, 3. Dezember 2008 15:12
>>An: dev@ant.apache.org
>>Betreff: How to call a task from a directory
>>
>>
>>Hi,
>>
>>How to call target, say t1 from a directory C:\abc\build.xml file into
>>target, say x1 (D:\xyz\build.xml file)?
>>
>>Both build files are defined in two different directories.
>>
>>Thanks.
>>
>>madhu
>>
>>-- 
>>View this message in context: 
>>http://www.nabble.com/How-to-call-a-task-from-a-directory-tp208
>>13653p20813653.html
>>Sent from the Ant - Dev mailing list archive at Nabble.com.
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
>>For additional commands, e-mail: dev-help@ant.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-call-a-task-from-a-directory-tp20813653p20813815.html
Sent from the Ant - Dev mailing list archive at Nabble.com.


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


AW: How to call a task from a directory

Posted by Ja...@rzf.fin-nrw.de.
This is more a question for the user@ant mailinglist.
Try <ant>

Jan 

>-----Ursprüngliche Nachricht-----
>Von: m.sudan [mailto:m.sudan21@gmail.com] 
>Gesendet: Mittwoch, 3. Dezember 2008 15:12
>An: dev@ant.apache.org
>Betreff: How to call a task from a directory
>
>
>Hi,
>
>How to call target, say t1 from a directory C:\abc\build.xml file into
>target, say x1 (D:\xyz\build.xml file)?
>
>Both build files are defined in two different directories.
>
>Thanks.
>
>madhu
>
>-- 
>View this message in context: 
>http://www.nabble.com/How-to-call-a-task-from-a-directory-tp208
>13653p20813653.html
>Sent from the Ant - Dev mailing list archive at Nabble.com.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
>For additional commands, e-mail: dev-help@ant.apache.org
>
>

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


Re: How to call a task from a directory

Posted by Jeffrey E Care <ca...@us.ibm.com>.
"m.sudan" <m....@gmail.com> wrote on 12/03/2008 09:27:01 AM:

> I create a target t1 in C:\abc\build.xml directory as 
> 
> [snip]

Again, this is not a proper question for the Ant developer mailing list. 
We're not looking for more details: we're looking for you to take this up 
on the user mailing list where it belongs.

You can read about the lists here: http://ant.apache.org/mail.html
You might also find this helpful:  
http://www.catb.org/~esr/faqs/smart-questions.html
This section in particular:        
http://www.catb.org/~esr/faqs/smart-questions.html#uselists

Re: How to call a task from a directory

Posted by Stefan Bodewig <bo...@apache.org>.
On 2008-12-03, m.sudan <m....@gmail.com> wrote:

> How can i do it ?

In general the answer "this is a user list question" means, if you
keep asking the question on the wrong mailing list, you will be
ignored.

Do yourself a favor, subscribe to the user list
<http://ant.apache.org/mail.html>, read the manual
<http://ant.apache.org/manual/CoreTasks/ant.html> and ask your
question again on the user list.

Stefan

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


Re: How to call a task from a directory

Posted by "m.sudan" <m....@gmail.com>.
I create a target t1 in C:\abc\build.xml directory as 

<target name="t1">

<ant antfile="build.xml" target="dependencies" inheritrefs="no"
inheritall="no" dir="D:\xyz\build.xml"> 

</target>

I have another build.xml file that are defined in D:\xyz\build.xml. And
contains dependencies target. 

My problem is that i want to call dependencies task into target t1 (in
C:\abc\build.xml).

How can i do it ?

Thanks.



Jeffrey E Care wrote:
> 
> "m.sudan" <m....@gmail.com> wrote on 12/03/2008 09:11:36 AM:
> 
>> How to call target, say t1 from a directory C:\abc\build.xml file into
>> target, say x1 (D:\xyz\build.xml file)?
>> 
>> Both build files are defined in two different directories.
> 
> This is a user list question.
> 

-- 
View this message in context: http://www.nabble.com/How-to-call-a-task-from-a-directory-tp20813653p20813922.html
Sent from the Ant - Dev mailing list archive at Nabble.com.


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


Re: How to call a task from a directory

Posted by Jeffrey E Care <ca...@us.ibm.com>.
"m.sudan" <m....@gmail.com> wrote on 12/03/2008 09:11:36 AM:

> How to call target, say t1 from a directory C:\abc\build.xml file into
> target, say x1 (D:\xyz\build.xml file)?
> 
> Both build files are defined in two different directories.

This is a user list question.