Hi All,
I’ve enabled the custom callback target for pre.build.jars for a given plug-in’s
customBuildCallbacks.xml.
Within pre.build.jars,
I’m calling various perforce ant tasks (e.g. <p4change>,
<p4revert>, <p4edit>, <p4submit>), which silently failed (I’m
assuming due to the failonerror property being set to false).
After running antrunner with the verbose property enabled, I
see that I’m encountering the following error:
[exec] build.jars:
[exec] pre.build.jars:
[exec] [subant]
Failure for target 'pre.build.jars' of: <src>\plugins\<project>\customBuildCallbacks.xml
[exec] [subant]
The following error occurred while executing this line:
[exec] [subant]
java.lang.NoClassDefFoundError: org/apache/oro/text/perl/Perl5Util
NOTE: I’ve replaced the actual source directory with
<src> and plugin project with <project>
Obviously, the Perl5Util class needs to be added to the
antrunner classpath (Perl5Util lives in the apache project: jakarta-oro-2.0.8.jar).
So, I’ve added jakarta-oro-2.0.8.jar to the <eclipse
install dir>\plugins\org.apache.ant_1.6.5\lib folder.
Re-executing the build still fails – anyone have any
idea what I’m missing?
Does antrunner have some other means of adding jars to the
classpath?
Thanks,
Ryan