ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett Knights" <br...@knightsofthenet.com>
Subject RE: classpathref problem
Date Thu, 06 Sep 2001 19:46:40 GMT
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:rjocham72@yahoo.com]
> Sent: Thursday, September 06, 2001 12:07 PM
> To: ant-user@jakarta.apache.org
> 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
> 
> 

Mime
View raw message