Advertisement

07.28.2008 at 03:18AM PDT, ID: 23600150
[x]
Attachment Details

Classpath issue with ANT calling a P4 task?

Asked by paulie99 in ANT, Miscellaneous Programming

Have a ANT target calling another target, see code below
<target name="build-util.version-checkout" if="checkin-version">
      <ant antfile="${batch-home}\build-scc.xml" target="build-scc.checkout-file-${scc-provider}">
      <property name="source-file" value="${scc-java-tree}/version-${project}.properties"/>
      </ant>
</target>
which is giving the following error:
java.lang.NoClassDefFoundError: org/apache/oro/text/perl/Perl5Util
this error has only come up when I changed the target the code is calling as I had add a new classpath for ANT to work with P4 (perforce) see code snippetStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
<target name="build-scc.checkout-file-vss">
	<antcall target="build-scc.get-file-vss">
  	</antcall>
 <taskdef classname="org.apache.tools.ant.taskdefs.optional.perforce.P4Edit" name="P4edit">
    <classpath>
	<pathelement location="C:\apache-ant-1.6.2\lib\optional-1.5.4.jar"/>
	</classpath>
	</taskdef>
	<echo>Checkout: P4: checking out file $$/${source-file}</echo>
	<P4edit view="$$/${source-file}"/>
</target>
[+][-]08.01.2008 at 01:10AM PDT, ID: 22136291

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: ANT, Miscellaneous Programming
Sign Up Now!
Solution Provided By: ramazanyich
Participating Experts: 1
Solution Grade: A
 
 
[+][-]08.28.2008 at 06:32AM PDT, ID: 22334531

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09.01.2008 at 06:37AM PDT, ID: 22360059

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628