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