ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chuck Holzwarth <>
Subject Re: Running a target under a different working dir
Date Fri, 11 Jan 2008 15:03:07 GMT
Use the antcontrib var task to override the property temporarily. Remember to use it in a target
where you use antcall to invoke it so it disappears after use.
Thank you,
Chuck Holzwarth
(804) 403-3478 (home)
(540) 335-3171 (cell)

----- Original Message ----
From: "Hannum, Daniel" <>
Sent: Thursday, January 10, 2008 4:17:43 PM
Subject: Running a target under a different working dir

Maybe this is a basic question, but I can't figure it out.


I want to run the cargo task under a different working directory (so
that my container's relative paths work correctly). I understand you
can't change basedir. I've tried to do an antcall passing a different
basedir, but that doesn't work because the new ant call runs my
and THEIR relative paths break. (grrr)


I don't know of any cargo option to do this. What I'd love is basically
a basedir param on a target, but I know there isn't one. Or maybe a
chdir task, but there isn't one of those either. Seems basic, so I'm
sure I'm missing something.


Any help is appreciated




***Note:The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader of
this message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify the Sender
immediately by replying to the message and deleting it from your
computer. Thank you. Premier Inc.  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message