From pritesh@sqatester.com Mon Jun 2 08:51:07 2003 Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 13953 invoked from network); 2 Jun 2003 08:51:07 -0000 Received: from sitemail3.everyone.net (HELO omta01.mta.everyone.net) (216.200.145.37) by daedalus.apache.org with SMTP; 2 Jun 2003 08:51:07 -0000 Received: from sitemail.everyone.net (dsnat [216.200.145.62]) by omta01.mta.everyone.net (Postfix) with ESMTP id 5F00B1C3E6B for ; Mon, 2 Jun 2003 01:51:20 -0700 (PDT) Received: by sitemail.everyone.net (Postfix, from userid 99) id 11D98399D; Mon, 2 Jun 2003 01:51:20 -0700 (PDT) Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Mailer: MIME-tools 5.41 (Entity 5.404) Date: Mon, 2 Jun 2003 01:51:19 -0700 (PDT) From: Pritesh saharey To: "Ant Users List" Subject: Re: exec command not working Reply-To: pritesh@sqatester.com X-Originating-Ip: [202.71.143.25] Message-Id: <20030602085120.11D98399D@sitemail.everyone.net> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N jan no spelling mistake yes my file Build.sh starts with capital B ,i had already tried Rajat what you had suggested to me and it give me error something like this [pritesh@apsora1 CHPROJECT]$ ant -v call Apache Ant version 1.5.3 compiled on April 16 2003 Buildfile: build.xml Detected Java version: 1.3 in: /usr/local/java/jre Detected OS: Linux parsing buildfile build.xml with URI = file:/home/pritesh/CHPROJECT/build.xml Project base dir set to: /home/pritesh/CHPROJECT Override ignored for property user.name [property] Loading /home/pritesh/CHPROJECT/build.properties Build sequence for target `call' is [call] Complete build sequence is [call, company, clean, init, compile, create-zipfile, create-jar, compile-exit, compile-entry, copy-def, parcel-distrib, copy-admin, distrib-admin, copy-assess, distrib-assess, copy-entry, distrib-entry, copy-exit, distrib-exit, copy-report, distrib-report, all, compile-services, compile-admin, splash-screen, testcase, compile-assess, database, compile-report, doc] call: [exec] Current OS is Linux [exec] Executing 'Build.sh' with BUILD FAILED file:/home/pritesh/CHPROJECT/build.xml:607: Execute failed: java.io.IOException: Build.sh: not found at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:371) at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:250) at org.apache.tools.ant.Task.perform(Task.java:341) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:336) at org.apache.tools.ant.Project.executeTarget(Project.java:1339) at org.apache.tools.ant.Project.executeTargets(Project.java:1255) at org.apache.tools.ant.Main.runBuild(Main.java:609) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235) --- Nested Exception --- java.io.IOException: Build.sh: not found at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.(UNIXProcess.java:139) 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(Execute.java:646) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:416) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:427) 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:341) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:336) at org.apache.tools.ant.Project.executeTarget(Project.java:1339) at org.apache.tools.ant.Project.executeTargets(Project.java:1255) at org.apache.tools.ant.Main.runBuild(Main.java:609) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235) Total time: 4 seconds My Build.sh file is there where it tries to locate it and if i try to run my build.xml file without using dir command then it gives me error something like this. call: [exec] Current OS is Linux [exec] Executing 'BUILD/Build.sh' with BUILD FAILED file:/home/pritesh/CHPROJECT/build.xml:607: exec returned: -1 at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:337) 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:341) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:336) at org.apache.tools.ant.Project.executeTarget(Project.java:1339) at org.apache.tools.ant.Project.executeTargets(Project.java:1255) at org.apache.tools.ant.Main.runBuild(Main.java:609) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235) Total time: 6 seconds can you guss whats wrong thanks jan and rajat for taking intrest in my problem pritesh --- Rajat Gupta wrote: >Pritesh, >Why not use the 'dir' attribute. Try something like the following ... > > > > > >if this does not work, then please send the error that is thrown. > >Hope this helps, >Rajat > > > >Pritesh saharey wrote: > >>Hi all, >> I would like to know what iam missing in my exec task >> >> >> >> >>this simple call target is not working what i had done wrong. >> >>thanks >>pritesh >> >>_____________________________________________________________ >>Join SQAtester.com Community ---> http://www.sqatester.com/testersarea/joinus.htm >> >>_____________________________________________________________ >>Select your own custom email address for FREE! Get you@yourchoice.com w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag >> >>--------------------------------------------------------------------- >>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 _____________________________________________________________ Join SQAtester.com Community ---> http://www.sqatester.com/testersarea/joinus.htm _____________________________________________________________ Select your own custom email address for FREE! Get you@yourchoice.com w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag