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
[EMAIL PROTECTED] 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.<init>(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 <[EMAIL PROTECTED]> wrote:
>Pritesh,
>Why not use the 'dir' attribute. Try something like the following ...
>
><target name="call" >
> <exec dir="./BUILD" executable="Build.sh" os="Linux"
> failonerror="true"/>
> </target>
>
>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
>><target name="call" >
>> <exec executable="BUILD/Build.sh" os="Linux" failonerror="true" />
>> </target>
>>
>>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 [EMAIL PROTECTED] w/No Ads, 6MB,
>>POP & more! http://www.everyone.net/selectmail?campaign=tag
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
_____________________________________________________________
Join SQAtester.com Community ---> http://www.sqatester.com/testersarea/joinus.htm
_____________________________________________________________
Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB,
POP & more! http://www.everyone.net/selectmail?campaign=tag
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]