Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 65244 invoked from network); 15 Jan 2004 20:43:34 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 15 Jan 2004 20:43:34 -0000 Received: (qmail 72805 invoked by uid 500); 15 Jan 2004 20:43:21 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 72773 invoked by uid 500); 15 Jan 2004 20:43:21 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 72759 invoked from network); 15 Jan 2004 20:43:21 -0000 Received: from unknown (HELO exchange.sun.com) (192.18.33.10) by daedalus.apache.org with SMTP; 15 Jan 2004 20:43:21 -0000 Received: (qmail 7097 invoked by uid 50); 15 Jan 2004 20:43:35 -0000 Date: 15 Jan 2004 20:43:35 -0000 Message-ID: <20040115204335.7096.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: dev@ant.apache.org Cc: Subject: DO NOT REPLY [Bug 26176] - exec does not find executable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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. /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.(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