Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #15827

Re: ant inheritance

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
From Lew <lewbloch@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: ant inheritance
Date Thu, 5 Jul 2012 13:02:08 -0700 (PDT)
Organization http://groups.google.com
Lines 32
Message-ID <4a9f2c63-a664-4f11-ba63-0cc0cafca03a@googlegroups.com> (permalink)
References <7006151c-c613-4418-ba50-95f7c524a765@googlegroups.com>
NNTP-Posting-Host 69.28.149.29
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-Trace posting.google.com 1341518650 10246 127.0.0.1 (5 Jul 2012 20:04:10 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Thu, 5 Jul 2012 20:04:10 +0000 (UTC)
In-Reply-To <7006151c-c613-4418-ba50-95f7c524a765@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=69.28.149.29; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T
User-Agent G2/1.0
Xref csiph.com comp.lang.java.programmer:15827

Show key headers only | View raw


On Thursday, July 5, 2012 11:30:37 AM UTC-7, Greg wrote:
> I am trying to build an ant build system where each component builds the things that it depends on.  Each thing that they depend on are in different build files.  Subsequently, I use the include task.  However, I run in to a problem when say component 1 needs to build component 2 and component 2 needs to build component 3.  Ant tells me that when I told it to build component 1 that it doesn't know the targets in component 3.  How do I get 1 to inherit the includes all the way down the line without explicitly telling it about all the components that anyone depends on?

Hmm. I think that it might help for you to post the build.xml. 

You might just have some subtly off way of invoking things.

Without details of your project structure and how you're trying 
to do things now, it's hard to suggest anything other than Ant 
subtasks.

The build.xml for component 1 should not be hitting any targets 
in the component 3 build.xml, nor even in the component 2 build.xml.

ANother way and likely better is to configure the antecedent 
projects as libraries, which if they really are components as you 
claim should be straightforward. If it isn't straightforward, perhaps 
they aren't really components.

Then make the JAR files for each library as dependencies for the project(s) 
that relies(y) on them.

-- 
Lew

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

ant inheritance Greg <shireyg@gmail.com> - 2012-07-05 11:30 -0700
  Re: ant inheritance Lew <lewbloch@gmail.com> - 2012-07-05 13:02 -0700
  Re: ant inheritance Greg <shireyg@gmail.com> - 2012-07-05 13:22 -0700

csiph-web