Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pde-build-dev] Problem using perforce ant tasks from within customBuildCallbacks (Eclipse 3.2.1)

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

 

CONFIDENTIALITY NOTICE: This email message is for the sole use of the intended recipient(s) 
and may contain confidential and privileged information. Any unauthorized review, use, 
disclosure or distribution is prohibited. If you are not the intended recipient, please 
contact the sender by reply email and destroy all copies of the original message.

Back to the top