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 Wed, 14 Jul 2004 14:55:57 GMT
Simply 
  ant -buildfile ascii.xml
or for short
  ant -f ascii.xml

The script start files are doing some initialization - especially choosing
the
right start class (which is different between 1.5 and 1.6).

And because that´s the usual way to start Ant, I want to get rid off errors
resulting from wrong-starting.


Jan

> -----Ursprüngliche Nachricht-----
> Von: Mishra, Debnath [mailto:debnath.mishra@citigroup.com]
> Gesendet am: Mittwoch, 14. Juli 2004 16:52
> An: Ant Users List
> Betreff: RE: Trying to invoke an external task
> 
> We are new to using ANT and are using the following command to invoke 
> 
> java org.apache.tools.ant.Main -buildfile ascii.xml
> 
> Is this a bad way of invoking? Please advice.
> 
> Our main concern so far has been that we are not able to 
> invoke an external task using exec.  Following is my script 
> and the error message (we have Apache Ant version 1.5.2 
> compiled on February 28 2003):
> 
> > > <?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
> 
> 
> -----Original Message-----
> From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
> Sent: Wednesday, July 14, 2004 1:36 AM
> To: user@ant.apache.org
> Subject: AW: Trying to invoke an external task
> 
> 
> "java org.apache.tools.ant.Main -version"
> 
> Is that the way you usually starts ant? I hope not ...
> 
> 
> Jan
> 
> 
> 
> > -----Ursprüngliche Nachricht-----
> > Von: Mishra, Debnath [mailto:debnath.mishra@citigroup.com]
> > Gesendet am: Dienstag, 13. Juli 2004 21:34
> > An: Ant Users List
> > Betreff: RE: Trying to invoke an external task
> > 
> > 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
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

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