ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Jaffe <wizard...@earthlink.net>
Subject Not failing when should...
Date Wed, 03 Jul 2002 19:10:42 GMT
I'm seeing a strange behjavior in this project, where it is failing in a
target "verify-pdl" due to a class not found. Yet the target depends on a
target which verifies the class being available. What's going wrong here:

  <!--
   This target sets the "pdl.present" property if the PDL class file is
found
  -->
  <target name="pdl-set" depends="init">
    <available classname="com.arsdigita.persistence.pdl.PDL"
               classpath="${core.build.dir}/classes"
               property="pdl.present"/>
  </target>

  <!--
   This target verifies the valid syntax of the PDL files by running them
   through the compiler.  No XML file is outputted.
  -->
  <target name="verify-pdl" depends="init,pdl-set,copy-pdl"
if="pdl.present">
    <execon executable="java" parallel="true" failonerror="yes">
      <arg value="-cp"/>
      <arg 
path="${core.build.dir}/classes:${core.build.dir}/lib/xerces.jar:${core.buil
d.dir}/lib/log4j.jar"/>
      <arg value="com.arsdigita.persistence.pdl.PDL"/>
      <fileset dir="${enterprise.build.pdl}">
        <include name="**/*.pdl"/>
      </fileset>
    </execon>
    <echo message="PDL files compiled successfully."/>
  </target>

Here's the output at time of failure:


verify-pdl:
   [execon] Exception in thread "main" java.lang.NoClassDefFoundError:
com/arsdigita/persistence/pdl/PDL

BUILD FAILED
  
==============================================================
Mark Jaffe              | (408) 972-9638 (home)
Chief Wizard            | (408) 807-1530 (cell/page/voicemail)
Computer Wizards        | (425) 795-6421 (FAX)
wizards44@earthlink.net | http://www.c-wizards.com/



Sent using the Entourage X Test Drive.


--
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