Andy.
I had this working and then started on some other ant sutff and came back to
this and it didn't work, so I think I may have changed something, like you
said, in the classpath setting in system variables.
Here is what my settings are:
ANT_HOME = p:\thirdparty\jvm\ant
JAVA_HOME = p:\thirdparty\win32\runnable\jdk\13
ClassPath =
C:\Fonix\FRE\Java\classes\FTKAudio.jar;C:\Fonix\FRE\Java\classes\FTKTTSLV.ja
r;C:\Fonix\FRE\Java\classes\FTKTTSSV.jar;C:\Fonix\FRE\Java\classes\FTKUtils.
jar;c:\junit3.7;c:\junit3.7\junit.jar;p:\build\lib;p:\thirdparty\jvm\ant\lib
Path =
C:\bin;C:\ODI\OStore\bin;C:\Perl\bin\;C:\WINNT\SYSTEM32;C:\WINNT;C:\WINNT\SY
STEM32\WBEM;C:\DMI\WIN32\BIN;C:\bin\wincvs;C:\Fonix\FRE\Win32\Lib;C:\Program
Files\Perforce;C:\cygwin\bin;C:\odi\osji\bin;C:\mysql\bin;p:\thirdparty\jvm\
ant\bin;c:\junit3.7
In ant/lib I have the jars: ant, crimson, optional, oro-2.0.4, jaxp & junit.
Thanks!
-mez
<?xml version="1.0"?>
<project name="Mdb_v2" default="deploy" basedir=".">
<!-- RUN THE TESTS -->
<property name="src" value="java"/>
<property name="build" value="../classes"/>
<property name="java_deploy_dir" value="html/prototype/WEB-INF"/>
<property name="EE_DIR" value="p:/thirdparty/win32/runnable/jdk/ee/lib"/>
<property name="LOG" value="../build/lib/log4j.jar"/>
<property name="TEST1" value="../build/lib/junit.jar"/>
<property name="FONIX"
value="../build/lib/FTKAudio.jar;../../../build/lib/FTKTTSLV.jar;../../../bu
ild/lib/FTKTTSSV.jar;../../../build/lib/FTKUtils.jar"/>
<property name="SAXON"
value="../build/lib/xerces.jar;../../../build/lib/saxon.jar"/>
<property name="JLIB" value="../build/lib"/>
<property name="JDBCDRIVER" value="../build/lib/mysqlJdbcDriver.jar"/>
<property name="REPORT_TESTS_DIR" value="../java/cp_test/reports"/>
<property name="CLASSPATH"
value="${build};${SAXON};${LOG};${TEST1};${FONIX};${JLIB};${JDBCDRIVER}"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
<!-- Create the build directory structure for the release process, label,
backup, taring,etc -->
<!-- Create the the variables used by ant that is latest and greatest from
p4 -->
<classpath>
<fileset dir="${java_deploy_dir}/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="p:/thirdparty/jvm/ant/lib">
<include name="optional.jar"/>
</fileset>
</classpath>
<echo message="syncing"/>
<p4Sync force="yes" view="//cpdev//main/src/..." />
<taskdef name="p4Sync"
classname="org.apache.tools.ant.taskdefs.optional.perforce.P4Sync"/>
<tstamp/>
<fileset dir="${java_deploy_dir}/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="p:/thirdparty/jvm/ant/lib">
<include name="optional.jar"/>
</fileset>
<p4sync force="yes" view="//cpdev//main/src/...">
</p4sync>
</target>
</project>
----- Original Message -----
From: "Beacock Andrew (NMP/Boston)" <[EMAIL PROTECTED]>
To: "'Ant Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, December 20, 2001 6:17 AM
Subject: RE: Perforce Optional Tasks
Marcus,
> I have put in the optional.jar and the oro.jar file in
> /ant/lib and I still get:
> BUILD FAILED
>
> p:\cpdev\main\src\run_build.xml:23: Could not create task of
> type: classpath.
It sounds like you have a <classpath> element as a base element rather
than as an element of another task such as <javac> or <javadoc>, as it's
trying to find a task called classpath.
Could you include a grab of the run_build.xml so that we can see what is
going on at line 23? (and around there too)
I don't think your problem is to do with the <perforce> elements...
Andy.
--
Andrew Beacock
Senior Software Engineer/Project Lead
Nokia Mobile Phones
NMP/MSW/SSP/AG
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>