Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: ant task keep basedir on include Date: Mon, 02 Jul 2012 19:53:07 -0700 Organization: A noiseless patient Spider Lines: 16 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 3 Jul 2012 02:53:09 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="XjIWM99mD7Ijfdu600oVPA"; logging-data="12504"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ZRCb8aZ5J55QujH/tMDvnenK7DCfVz74=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 In-Reply-To: Cancel-Lock: sha1:gKcl0rjybAgszHYHJ9LtftwJwuI= Xref: csiph.com comp.lang.java.programmer:15797 On 7/2/2012 5:24 PM, Greg wrote: > I am trying to maintain my dependencies in an ant build system across > multiple files. I would like each task to be able to use their own > respective build files that are in their directory when they are > called upon. How do I tell an imported task that I have put in a > "depends" to use it's own basedir and not the one of the importer? I think "it depends," but it sounds like you might want the subant task: Note especially the second example at the bottom of that page. Is that like what you are looking for?