ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: Trying to invoke an external task
Date Thu, 08 Jul 2004 05:07:09 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message