I wrote and sent a patch to do exactly that 2 weeks ago. Matthieu
> -----Original Message----- > From: Erik Hatcher [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 03, 2001 12:18 PM > To: Ant Users List > Subject: Re: path structures in different build files > > > Currently the <ant> task only transfers across build listeners, task > definitions, data type definitions, and properties. > References are not > carried over. > > It seems like a good enhancement request, although how that works and > maintain backwards compatibility is the main issue to address. > > Erik > > > ----- Original Message ----- > From: "Nathan Coast" <[EMAIL PROTECTED]> > To: "Ant User (E-mail)" <[EMAIL PROTECTED]> > Sent: Monday, December 03, 2001 5:35 AM > Subject: path structures in different build files > > > > Hi, > > > > I have a path structure that I have defined in one build > file, this build > > file then calls a second build file. If I try to refer to the path > > structure I defined in the first file from the second file > I get an error: > > > > Reference webapp.classpath not found. > > > > file 1 contains: > > > > <path id="webapp.classpath"> > > <pathelement location="${struts.jar}"/> > > </path> > > > > which calls file 2 which contains: > > > > <path id="compile.classpath"> > > <path refid="webapp.classpath"/> > > <pathelement location="${libs}"/> > > <pathelement location="${build.dir}/../lib/weblogic.jar"/> > > <pathelement location="${build.dir}/../lib/log4j.jar"/> > > <pathelement location="${build.dir}/../lib/junit.jar"/> > > <pathelement location="${build.dir}/../lib/xalan.jar"/> > > <pathelement location="${build.dir}/../lib/xerces.jar"/> > > </path> > > > > should path structures be maintained between build files? > > > > Thanks > > Nathan > > > > > > > ********************************************************************** > > This email and any files transmitted with it are confidential and > > intended solely for the use of the individual or entity to whom they > > are addressed. If you have received this email in error > please notify > > the system manager. > > > > This footnote also confirms that this email message has > been swept by > > MIMEsweeper at LevelSeas for the presence of computer viruses. > > > > > ********************************************************************** > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>