You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Mishra, Debnath" <de...@citigroup.com> on 2004/07/07 21:26:40 UTC

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


Re: Trying to invoke an external task

Posted by Ni...@sybari.com.
Have you considered the cpptask task from the ant-contrib project?






"Mishra, Debnath" <de...@citigroup.com>
07/07/2004 03:26 PM
Please respond to "Ant Users List"
 
        To:     <us...@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