Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 5414 invoked from network); 19 Nov 2002 19:38:29 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 19 Nov 2002 19:38:28 -0000 Received: (qmail 21965 invoked by uid 97); 19 Nov 2002 19:39:09 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 21934 invoked by uid 97); 19 Nov 2002 19:39:08 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 21920 invoked by uid 98); 19 Nov 2002 19:39:07 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: From: David McTavish To: 'Ant Users List' Subject: ant exec task Date: Tue, 19 Nov 2002 14:37:51 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi everybody, Seems like I'm running into an unexplainable brick wall that maybe someone out here as seen before... I've been hitting my head against this for the past two hours :( Basically, I'm running antv1.5.1 on JDK 1.3 (ugh, I know), and am having a problem with the exec task. When I run the target from the build script that it exists in, I have no problem whatsoever. My problem is when I try to roll this up into the parent level build script I get an error. Error I get: BUILD FAILED file:M:/dmctavish_main/sw-profserv/scripts/bundle.xml:110: Execute failed: java. io.IOException: CreateProcess: ..\..\sw-tools\nsis\makensis.exe /V1 golden error=2 Basically, I have a parent level build.xml file with a target "bundle.golden". This target calls the "bundle" target in the build.xml file that is found in the golden directory. Nothing special going on in my mind... here's the parent-level target: In my golden directory, I have a build.xml with the following target: I've surrounded the exec task with tasks to guarantee that the executable is found, as well as the deploy.product.dir is correct. These return true whether I call this "bundle" target from the local folder or the parent. ie: debug message reveals the following: --- Nested Exception --- java.io.IOException: CreateProcess: ..\..\sw-tools\nsis\makensis.exe /V1 golden error=2 at java.lang.Win32Process.create(Native Method) at java.lang.Win32Process.(Win32Process.java:61) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Runtime.java:546) at java.lang.reflect.Method.invoke(Native Method) at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Exec ute.java:645) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:417) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:428) at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:329) at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:368) at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:250) at org.apache.tools.ant.Task.perform(Task.java:317) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:334) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371) at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143) any ideas would be greatly appreciated! regards, d. -- To unsubscribe, e-mail: For additional commands, e-mail: