ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mishra, Debnath" <debnath.mis...@citigroup.com>
Subject RE: Trying to invoke an external task
Date Tue, 13 Jul 2004 19:33:59 GMT
Here is what I got from the following command:

java org.apache.tools.ant.Main -version  

Apache Ant version 1.5.2 compiled on February 28 2003                      


Thanks
Debnath Mishra

Change Control, CitiGroup
Englewood Cliffs, NJ 
Tel: 201-242-2850


-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
Sent: Thursday, July 08, 2004 1:07 AM
To: user@ant.apache.org
Subject: AW: Trying to invoke an external task


The c-stuff is another topic.

But I´ve seen a message I dont want to see:
"Could not create task or type of type: exec."

The <exec> task should be available. Doesnt matter whether that is
the right for your special job or not...

Which Ant version are you using?


> /u/iocxsdm/ant :>java OS390CCompiler 
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> OS390CCompiler

You are on a OS/390?
Maybe here are some specialists on that machine? Does <exec> work in your
environment?


> does cpptasks.jar need to be in ANT Home directory?
as usual external tasks should be placed in ~/.ant/lib (Ant1.6+).


> <?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


Mime
View raw message