Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 69599 invoked from network); 20 Aug 2002 12:29:45 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 20 Aug 2002 12:29:45 -0000 Received: (qmail 27119 invoked by uid 97); 20 Aug 2002 12:29:43 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 27007 invoked by uid 97); 20 Aug 2002 12:29:42 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 26894 invoked by uid 98); 20 Aug 2002 12:29:41 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <36E996B162DAD111B6AF0000F879AD1A76BF72@nts_par1.paranor.ch> From: "Wannheden, Knut" To: 'Ant Users List' Subject: RE: Multiple build files problem, property passing Date: Tue, 20 Aug 2002 14:29:06 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C24845.2D3859EA" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C24845.2D3859EA Content-Type: text/plain; charset="iso-8859-1" I can't think of anything besides maybe saving the properties to a file and reading them back in again. But maybe there is a better/simpler solution to your problem. Maybe you could explain what you're really trying to achieve ;-) As for the "base" buildfile problem. This topic has been discussed quite a lot on the mailing list. Some other tools based on Ant, like Maven or Centipede, seem to support something like this. I have developed a kind of templating mechanism for my own purposes, which lets me write templates which are "instantiated" by merging them with customizations, which basically just "override" and add stuff to the template. I also implemented my own AVTs (attribute value templates, which you might know from XSLT) letting me write XPath expressions like /project/@name or //target[@name = 'compile']/javac. The final buildfile generated is reduced to using standard Ant mechanisms and tasks. So depending on what you need you could always roll your own templating mechanism (using XSLT or whatever), use XML entity include (http://jakarta.apache.org/ant/faq.html#xml-entity-include), use external tools like Anthill, Maven, or Centipede, etc. -- knut > -----Original Message----- > From: Christian Holmqvist, IT, Posten > [mailto:christian.holmqvist@posten.se] > Sent: Dienstag, 20. August 2002 14:13 > To: 'Ant Users List' > Subject: Multiple build files problem, property passing > > > Hi! > > I'm trying to figure out how to create a "base" build.xml file. > > This is my example > --- build.xml ----- > > > > > > > > > ----- > > ----- hmm.xml --- > > > > > > > > > ------ > > The thing is that the prop property echos correctyly but the > new_prop does > not. Is there a way to "return" propertyes from a task? > > Or is there a bether way to do this? > > Cheers Christian > > -- > To unsubscribe, e-mail: For additional commands, e-mail: ------_=_NextPart_001_01C24845.2D3859EA--