Skip to main content

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


Ryan,
I don't think that puting your jar in the ant folder is sufficient.

What you could do instead is wrap your jakarta-oro-2.0.8.jar in a bundle, put that in the plugins directory.  In the wrapping bundle's plugin.xml you can define extensions that contribute to the ant classpath.
Look for example at org.eclipse.pde.build/plugin.xml which is adding lib/pdebuild-ant.jar as well as a number of tasks.

As a side note, if you want to fail on error, set the property customBuildCallbacks.failonerror="true"

-Andrew


"Ryan Smith" <Ryan.Smith@xxxxxxxxxxxxxxx>
Sent by: pde-build-dev-bounces@xxxxxxxxxxx

02/27/2007 04:13 PM

Please respond to
"Eclipse PDE Build developers list." <pde-build-dev@xxxxxxxxxxx>

To
<pde-build-dev@xxxxxxxxxxx>
cc
Subject
[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.
_______________________________________________
pde-build-dev mailing list
pde-build-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-build-dev


Back to the top