You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Nathan Coast <na...@levelseas.com> on 2001/12/03 11:35:47 UTC

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: path structures in different build files

Posted by Erik Hatcher <ja...@ehatchersolutions.com>.
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" <na...@levelseas.com>
To: "Ant User (E-mail)" <an...@jakarta.apache.org>
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:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>