ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry V. Streepy, Jr." <stre...@healthlanguage.com>
Subject Re: creating a default classpath
Date Wed, 30 May 2001 21:32:05 GMT
I've never seen a nested classpath in a property before.  This is what I
did and it worked fine:

  <!-- weblogic pieces of the path -->
  <path id="wl.path">
    <pathelement location="${wl.home}/lib/weblogicaux.jar" />
    <pathelement location="${wl.home}/classes" />
    <pathelement location="${wl.home}/mssqlserver4/classes" />
  </path>

  <property name="wl.path" refid="wl.path"/>

Now, the property ${wl.path} contains the properly formatted path
containing the 3 elements.  Note that both of these elements are at the
project level.


"O'Hara, Patrick" wrote:
> 
> I have a ANT build script that uses the same classpath over and over.
> I can across the bit in the documentation (Using Ant - Path-like
> Structures) where I am told that I can create a path-like structure
> and give it an id.  I should then be able to refer to this id from
> subsequent parts of the build file.
> 
> What I created looks like:
>     <property name="projclasspath">
>       <classpath id="project.classpath">
>           <pathelement location="${build.classes}"/>
>           <pathelement
> location="${weblogic.home}/weblogic451sp13boot.jar"/>
>           <pathelement location="${weblogic.home}/classes/boot"/>
>           <pathelement
> location="${weblogic.home}/weblogic451sp13.jar"/>
>           <pathelement
> location="${weblogic.home}/lib/weblogicaux.jar"/>
>           <pathelement location="${weblogic.home}/classes"/>
>           <pathelement
> location="${weblogic.home}/mssqlserver4v70/classes"/>
>           <pathelement location="${project_env.JAVA_HOME}"/>
>           <pathelement location="${project_env.JAVA_HOME}/lib"/>
>           <fileset dir="${jar.dir}">
>             <include name="**/*.jar"/>
>             <include name="**/*.zip"/>
>           </fileset>
>       </classpath>
>     </property>
> <echo message="Class Path is ${project.classpath}"/>
> 
> I get the error:
> Buildfile: C:\weblogic\CoventryDevelopment\build.xml
> 
> init:
>      [echo] Class Path is ${project.classpath}
> 
> initdev:
> 
> compile:
>     [javac] Compiling 2711 source files to
> C:\weblogic\CoventryDevelopment\classes
> 
> BUILD FAILED
> 
> C:\weblogic\CoventryDevelopment\build.xml:115: Reference
> ${project.classpath} not found.
> 
> Total time: 3 seconds
> 
> Obviously I am approching this incorrectly.  Has anyone else done
> this?
> 
> Patrick O'Hara
> Workscape, Inc
> N17 W24222 Riverwood Pl
> Waukesha, WI 53188-1162
> 262-408-3849
> 262-408-3840 Fax
> patrick.ohara@workscape.com
> 
> 

-- 
Larry V. Streepy, Jr.
Chief Technical Officer and VP of Engineering

Health Language, Inc.  -- "We speak the language of healthcare"
A subsidiary of CyberPlus Corp.

970/626-5028 (office)           mailto:streepy@healthlanguage.com
970/626-4425 (fax)              http://www.healthlanguage.com

Mime
View raw message