Karen Davies wrote:
> 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"/>
> 

The paths in your two examples are not equivalent.

The first is a path composed of two components
    a 1 element path containing ${weblogic}
    a path location lib\ejbjar

The second is a single path with one component
    ${weblogic}\lib\ejb.jar

If you want to use the first scheme do this
<path id="test.classpath">
       <pathelement path="${weblogic}/lib/ejb.jar"/>
</path>

and you should be right.

Conor





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to