(Sorry, I somehow sent this before it was done.) I have a simple build file that compiles some files and has a taskdef for one of the compiled classes, which indirectly references a class in one of the jars in the classpath. I have the taskdef inside the target which uses the task. When it executes the defined task, it fails to find the class from that jar (NoClassDefFound). I ran SysInternals FileMon while the build is running to verify it's reading the jar file with that base class.
The actual exception I get is: java.lang.NoClassDefFoundError: org/apache/oro/text/perl/Perl5Util This is referenced from the P4Base class, the base class of my taskdef class. What could I be doing wrong here? Here is my simple build file: ----------------------- <?xml version="1.0" encoding="UTF-8"?> <project name="WLA" default="default" basedir="."> <description>Builds, tests, and runs the project WLA.</description> <property file="nbuild.properties"/> <target name="default" depends="compile,install-label-info,build-war"> </target> <target name="compile"> <delete dir="${build.classes.dir}"/> <mkdir dir="${build.classes.dir}"/> <javac srcdir="${src.dir}" destdir="${build.classes.dir}" fork="true" debug="true" verbose="false"> <include name="**/*.java"/> <classpath path="${javac.classpath}"/> </javac> </target> <target name="build-war"> </target> <target name="install-label-info"> <taskdef name="p4NewestLabel" classname="com.wamu.ant.perforce.P4NewestLabel"> <classpath path="${build.classes.dir}:${javac.classpath}"/> </taskdef> <echo message="classpath[${javac.classpath}]"/> <p4NewestLabel labelName="label" labelDesc="labelDesc"/> </target> </project> ----------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]