Thanks a lot! That solve my problem.

________________________________
From: Adam Murdoch [via Gradle] 
[mailto:[email protected]]
Sent: Tuesday, March 01, 2011 11:25 PM
To: Wang, Zheng (Ext)
Subject: Re: problem with start/stop jboss with gradle exec task


On 02/03/2011, at 3:23 AM, netextzhwa wrote:

Thank you , now I removed "<<" but now it says

* What went wrong:
Execution failed for task ':startJboss'.
Cause: A problem occurred starting command 'run.bat'

Is there something else incorrect in my script?
which bring me another question is : Does the Exec task behavior like a
command line? Or should I call "cmd" to open a new command window and runs
the "run.bat" command??

Yes, so you need to do something like this:

commandLine = ['cmd', '/c', 'run.bat']

I wonder if we should have the Exec task do this automatically?


--
Adam Murdoch
Gradle Developer
http://www.gradle.org
CTO, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com



________________________________
If you reply to this email, your message will be added to the discussion below:
http://gradle.1045684.n5.nabble.com/problem-with-start-stop-jboss-with-gradle-exec-task-tp3404960p3405808.html
To unsubscribe from problem with start/stop jboss with gradle exec task, click 
here<http://gradle.1045684.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3404960&code=emhlbmcud2FuZ0BwYXB5cnVzLmNvbXwzNDA0OTYwfC05NTYwOTM0ODY=>.


--
View this message in context: 
http://gradle.1045684.n5.nabble.com/problem-with-start-stop-jboss-with-gradle-exec-task-tp3404960p3406238.html
Sent from the gradle-user mailing list archive at Nabble.com.

Reply via email to