The following should work:
(Note that I missed out SYSTEM on my earlier post )
<project name="Test" default="compile" basedir=".">
<!DOCTYPE project [
<!ENTITY stdPath SYSTEM "file:///L:/java/src/project.class.path" >
]>
<!-- set global properties for this build -->
<property name="src" value="."/>
<property name="build" value="L:/java/build"/>
&stdPath;
<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>
> -----Original Message-----
> From: Ralph Jocham [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 06, 2001 12:07 PM
> To: [EMAIL PROTECTED]
> Subject: classpathref problem
>
>
> 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
>
>