ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karen Davies <kdav...@ecceleration.ie>
Subject setting classpath using classpathref attribute
Date Thu, 30 May 2002 13:40:07 GMT
Hi all,
I've just created a simple build file, setting the classpath as follows:

<path id="test.classpath">
      <pathelement path="${weblogic}"/>
      <pathelement location="lib\ejb.jar"/>
</path>

<target name="compile" depends="init" description="compile the simple source
files" >    
    <javac srcdir="${src}/Lakelands/market2uutility" destdir="${build}"
classpathref="test.classpath"/>
</target>

However, when i run ant it does not pick up this classpath at all, it will
only pick it up if i set is as:

<javac srcdir="${src}/Lakelands/market2uutility" destdir="${build}"
classpath="${weblogic}\lib\ejb.jar"/>

If anyone has any suggestions as to what i'm doing wrong, much appreciated.

Regards,
Karen.

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message