You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by blackwater dev <bl...@gmail.com> on 2005/06/22 17:11:17 UTC

exec task failing

I have this build file:

<project name="testing" default="checkout" basedir="/home/me">
 <target name="checkout" description="run unit test">
   <exec  executable="/usr/local/bin/php
httpd/htdocs/includes/tests/alltests.php">
   </exec>
 </target>
</project>

And it fails with this error:
checkout:

BUILD FAILED
file:/httpd/tcci/dev2/build.xml:5: Execute failed:
java.io.IOException: No such file or directory

I installed j2dsk1.4.2_08 yesterday and just did which java and it is
looking for the java here:

/usr/bin/java 
/usr/bin/javac

each of these are links to
usr/java/j2sdk1.4.2_08/bin/java
usr/java/j2sdk1.4.2_08/bin/javac

Why is this build failing?

Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: exec task failing

Posted by Bijo Alex Thomas <bi...@dsrc.co.in>.
It seems that you are trying to execute the command
'/usr/local/bin/php'
with the argument
'httpd/htdocs/includes/tests/alltests.php'

In that case it should be
<exec executable="/usr/local/bin/php">
 <arg value="httpd/htdocs/includes/tests/alltests.php"/>
</exec>

Attribute 'executable' does not buy any arguments.

Regards,
Bijo

_________________________________
Bijo Alex Thomas
DSRC, 6, Smith Road, Chennai - 2
Mail: bijoalex@dsrc.co.in
Website: http://dsrc.com
 

----- Original Message ----- 
From: "blackwater dev" <bl...@gmail.com>
To: "Ant Users List" <us...@ant.apache.org>
Sent: Wednesday, June 22, 2005 08:41 PM
Subject: exec task failing


I have this build file:

<project name="testing" default="checkout" basedir="/home/me">
 <target name="checkout" description="run unit test">
   <exec  executable="/usr/local/bin/php
httpd/htdocs/includes/tests/alltests.php">
   </exec>
 </target>
</project>

And it fails with this error:
checkout:

BUILD FAILED
file:/httpd/tcci/dev2/build.xml:5: Execute failed:
java.io.IOException: No such file or directory

I installed j2dsk1.4.2_08 yesterday and just did which java and it is
looking for the java here:

/usr/bin/java 
/usr/bin/javac

each of these are links to
usr/java/j2sdk1.4.2_08/bin/java
usr/java/j2sdk1.4.2_08/bin/javac

Why is this build failing?

Thanks!

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


RE: exec task failing

Posted by Bill Rich <bi...@wilandra.com>.
Because of the space in the path (/php httpd/)? There has been much
discussion on this forum about spaces in path names.
HTH Bill 

-----Original Message-----
From: blackwater dev [mailto:blackwaterdev@gmail.com] 
Sent: Wednesday, June 22, 2005 8:11 AM
To: Ant Users List
Subject: exec task failing

I have this build file:

<project name="testing" default="checkout" basedir="/home/me">  <target
name="checkout" description="run unit test">
   <exec  executable="/usr/local/bin/php
httpd/htdocs/includes/tests/alltests.php">
   </exec>
 </target>
</project>

And it fails with this error:
checkout:

BUILD FAILED
file:/httpd/tcci/dev2/build.xml:5: Execute failed:
java.io.IOException: No such file or directory

I installed j2dsk1.4.2_08 yesterday and just did which java and it is
looking for the java here:

/usr/bin/java
/usr/bin/javac

each of these are links to
usr/java/j2sdk1.4.2_08/bin/java
usr/java/j2sdk1.4.2_08/bin/javac

Why is this build failing?

Thanks!

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