RG>I have a task that depend on a .jar. Is there a way to point 
RG>the ant to the .jar in question from within build file? I.e. 
RG>kind of set -lib from the script?

Jan> Providing that inside the classpath of <taskdef> ?

Doesn't work, it complains that it "could not create task junit!", but
if I run ant as "ant -cp ..\lib\junit.jar" it works just fine.

Task def looks as follows:
    <taskdef resource="net/sf/ant4eclipse/antlib.xml"
"classpath="${TOOLS_HOME}/ant4eclipse-0.3.2.jar">
        <classpath>
            <pathelement location="${LIB_PATH}/junit.jar" />
        </classpath>
    </taskdef>

BTW, The task itself does not allow nested classpath elements.

Roman

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

Reply via email to