Hey guys, how's things ?

I'm trying to build a few classes with JiBX & Ant. This is parts of my Ant
build file:

<property name="root-dir-src" value="/projects/dataman/src" />
  <property name="root-dir-dest" value="/projects/dataman/classes" />
  <property name="lib" value="${basedir}/lib" />
  <property name="customlib" value="/projects/dataman/lib" />
  <path id="example-classpath">
    <pathelement location="${root-dir-dest}" />
    <pathelement location="${lib}/jibx-run.jar" />
    <pathelement location="${lib}/jibx-extras.jar" />
    <pathelement location="${lib}/xpp3.jar" />
    <pathelement location="${customlib}/jdom.jar" />
    <pathelement location="${customlib}/Talent.xml.1.0.jar" />
    <pathelement location="${customlib}/saxxbis.jar" />
  </path>
  <path id="binding-classpath">
    <pathelement location="${root-dir-dest}" />
    <pathelement location="${lib}/jibx-run.jar" />
    <pathelement location="${lib}/jibx-bind.jar" />
    <pathelement location="${lib}/xpp3.jar" />
    <pathelement location="${lib}/bcel.jar" />
    <pathelement location="${customlib}/jdom.jar" />
    <pathelement location="${customlib}/Talent.xml.1.0.jar" />
    <pathelement location="${customlib}/saxxbis.jar" />
  </path>

.. blah-blah ...

<!-- Compile the example classes -->
  <target name="compile">
    <javac srcdir="${root-dir-src}"
      destdir="${root-dir-dest}"
      includes="${example}/**/*.java"
      debug="true"
      deprecation="on">
      <classpath refid="example-classpath" />
    </javac>
  </target>

  <!-- Run the JiBX binding. -->
  <target name="run-bind">
    <java classname="org.jibx.binding.Compile" fork="yes"
dir="${root-dir-dest}"
        failonerror="true">
      <classpath refid="binding-classpath" />
      <arg value="${root-dir-src}/${binding-file}"/>
    </java>
  </target>

When I .. @ant the thing .. it compiles fine, but when it tries to bind, I
get an Exception like "Cannot locate class gr.talent.xml.util.XmlResultSet
in any classpath". But the class is included in the Talent.xml.1.0.jar,
which in turn is included in the binding classpath ... :(

Is there something wrong that I'm doing in the config ?

Cheers,
Angel
O:]




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to