ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 26176] - exec does not find executable
Date Thu, 15 Jan 2004 20:43:35 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26176>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26176

exec does not find executable





------- Additional Comments From phillip.rhodes@alcoa.com  2004-01-15 20:43 -------
I appreciate you quick followup!

I came to that conclusion myself, just a couple of minutes ago regarding 
the "test" being resolved.
However, I still do think there is a serious problem.  What is frustrating is 
that the Exec task is working for me in so many other instances.  I have sat 
for an hour with 2 other java developers to try to fix this. We can't get this 
exec to work.

This following task fails (i included the ant with debug below).  I can execute 
the referered script fine at the command prompt.

	<exec spawn="true"
		dir="/ale/srv01/a1/t/amp-18312"
		executable="oc4j-amp-18312" 
		os="HP-UX">
		<arg line="start"/>	
	</exec>	


/ale/srv01/a1/t/amp-18312> ll /ale/srv01/a1/t/amp-18312/oc4j-amp-18312
-rw-rw-r--   1 alecomm    alecomm         21 Jan 15 15:37 /ale/srv01/a1/t/amp-
18312/oc4j-amp-18312
(alecomm) 06n% whoami
alecomm
(alecomm) 06n% ant16 buildtestamp                            
Buildfile: build.xml

buildtestamp:
BUILD FAILED
/ec_rae0_d/usr01/h3/rhodepc/alecomm/legacy/build.xml:101: Execute failed: 
java.io.IOException: oc4j-amp-18312: not found

Total time: 0 seconds




(alecomm) 06n% ant16 -d buildtestamp
Apache Ant version 1.6.0 compiled on December 18 2003
Buildfile: build.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.3 in: /opt/java1.3.1.08/jre
Detected OS: HP-UX
Adding reference: ant.ComponentHelper
Setting ro project property: ant.version -> Apache Ant version 1.6.0 compiled 
on December 18 2003
Setting ro project property: ant.file -
> /ec_rae0_d/usr01/h3/rhodepc/alecomm/legacy/build.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile /ec_rae0_d/usr01/h3/rhodepc/alecomm/legacy/build.xml with URI 
= file:///ec_rae0_d/usr01/h3/rhodepc/alecomm/legacy/build.xml
Setting ro project property: ant.project.name -> legacy
Adding reference: legacy
Setting ro project property: ant.file.legacy -
> /ec_rae0_d/usr01/h3/rhodepc/alecomm/legacy/build.xml
Project base dir set to: /ec_rae0_d/usr01/h3/rhodepc/alecomm/legacy
 +Target: 
 +Target: targets
 +Target: buildin10minutes
 +Target: aleant
 +Target: buildnow
 +Target: buildtestamp
 +Target: buildtestescrap
 +Target: buildtestef
 +Target: startescrap
 +Target: col1
 +Target: col2
 +Target: top
 +Target: col3
 +Target: col4
Build sequence for target `buildtestamp' is [buildtestamp]
Complete build sequence is [buildtestamp, buildtestef, top, buildin10minutes, 
startescrap, buildtestescrap, targets, buildnow, col4, col3, col2, col1, 
aleant, ]

buildtestamp:
     [exec] Current OS is HP-UX
     [exec] Executing 'oc4j-amp-18312' with arguments:
     [exec] 'start'
     [exec] 
     [exec] The ' characters around the executable and arguments are
     [exec] not part of the command.
Execute:Java13CommandLauncher: Executing 'oc4j-amp-18312' with arguments:
'start'

The ' characters around the executable and arguments are
not part of the command.

BUILD FAILED
/ec_rae0_d/usr01/h3/rhodepc/alecomm/legacy/build.xml:101: Execute failed: 
java.io.IOException: oc4j-amp-18312: not found
        at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:606)
        at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:452)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
        at org.apache.tools.ant.Task.perform(Task.java:401)
        at org.apache.tools.ant.Target.execute(Target.java:338)
        at org.apache.tools.ant.Target.performTasks(Target.java:365)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
        at org.apache.tools.ant.Main.runBuild(Main.java:669)
        at org.apache.tools.ant.Main.startAnt(Main.java:220)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
--- Nested Exception ---
java.io.IOException: oc4j-amp-18312: not found
        at java.lang.UNIXProcess.forkAndExec(Native Method)
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:86)
        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(Unknown Source)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec
(Execute.java:836)
        at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:479)
        at org.apache.tools.ant.taskdefs.Execute.spawn(Execute.java:539)
        at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:584)
        at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:603)
        at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:452)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
        at org.apache.tools.ant.Task.perform(Task.java:401)
        at org.apache.tools.ant.Target.execute(Target.java:338)
        at org.apache.tools.ant.Target.performTasks(Target.java:365)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
        at org.apache.tools.ant.Main.runBuild(Main.java:669)
        at org.apache.tools.ant.Main.startAnt(Main.java:220)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)

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


Mime
View raw message