Looks like you don't have cpptasks.jar in your classpath. Also, did you
follow the directions regarding the <taskdef> and <typedef>?
This discussion should be taken to the cpptasks forum.
"Mishra, Debnath" <debnath.mishra@citigroup.com>
07/07/2004 04:44 PM
Please respond to "Ant Users List"
To: "Ant Users List" <user@ant.apache.org>
cc:
Subject: RE: Trying to invoke an external task
Downloaded cpptasks.jar and put it in my personal library. Getting the
following error
/u/iocxsdm/ant :>java OS390CCompiler
Exception in thread "main" java.lang.NoClassDefFoundError: OS390CCompiler
does cpptasks.jar need to be in ANT Home directory?
Thanks
Debnath Mishra
Change Control, CitiGroup
Englewood Cliffs, NJ
Tel: 201-242-2850
-----Original Message-----
From: Nick_Gianakas@sybari.com [mailto:Nick_Gianakas@sybari.com]
Sent: Wednesday, July 07, 2004 3:57 PM
To: Ant Users List
Subject: Re: Trying to invoke an external task
Have you considered the cpptask task from the ant-contrib project?
"Mishra, Debnath" <debnath.mishra@citigroup.com>
07/07/2004 03:26 PM
Please respond to "Ant Users List"
To: <user@ant.apache.org>
cc:
Subject: Trying to invoke an external task
I am trying to invoke a C complier from my ANT script, and getting the
following error:
Here is the script
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="MyProject" default="init" basedir=".">
<description>
Compile C Code
</description>
<property name="build" value="build" />
<target name="init">
<exec executable="/bin/sh">
<arg value="-c" />
<arg value="c89" />
</exec>
</target>
</project>
Here is the error message:
BUILD FAILED
file:/u/iocxsdm/ant/ascii.xml:11: Could not create task or type of type:
exec.
Ant could not find the task or a class this task relies upon.
Thanks
Debnath Mishra
Change Control, CitiGroup
Englewood Cliffs, NJ
Tel: 201-242-2850
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
|