ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Jocham <rjocha...@yahoo.com>
Subject classpathref problem
Date Thu, 06 Sep 2001 19:07:23 GMT
Hi,
I have this file at L:\java\src\project.class.path

<!-- set up the classpath -->
<path id="project.class.path">
  <!-- .class file package tree -->
  <fileset dir="L:/java/build"/>
  <!-- in house libraries -->
  <fileset dir="C:/ABI/arrays/lib/">
    <include name="**/*.jar/"/>
    <include name="**/*.zip"/>
  </fileset>
  <!-- external librariries -->
  <fileset dir="c:/JBoss-2.2.2/lib/ext/">
    <include name="**/*.jar/"/>
    <include name="**/*.zip"/>
  </fileset>
</path>

and this file at l:\java\src\com\...\build.xml
<project name="Test" default="compile" basedir=".">

  <!-- set global properties for this build -->
  <property name="src" value="."/>
  <property name="build" value="L:/java/build"/>

  <target name="compile">
    <!-- Compile the java code from ${src} into
${build} -->
    <javac srcdir="${src}"
           destdir="${build}"
	   debug="on"
	   classpathref="project.class.path">
	   <include name="*.java"/>
	   <exclude name="test/**"/>
    </javac>
  </target>
</project>

and I get this error : 
Buildfile: build.xml

compile:
    [javac] Compiling 43 source files to L:\java\build

BUILD FAILED

L:\Java\Src\com\apldbio\arrays\base\common\arrays\build.xml:12:
Reference project.class.path not found.

Total time: 0 seconds

How can I tell Ant from where to pick up the external
classpath file.

Thanks,
Ralph


Mime
View raw message