You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by j2ee6610 <jh...@gmail.com> on 2008/11/11 00:10:16 UTC

About

	<target name="runActiveMQ" description="Starts the ActiveMQ server">
		<exec dir="${activemq-directory}/bin/" executable="activemq" spawn="true"
/>
	</target>

that is my script

i simply just want to run activemq.exe
but it's not working

I'm sure that the path is all correct   the error msg is that it could not
find the specified file
-- 
View this message in context: http://www.nabble.com/About-%3Cexec%3E-tp20430034p20430034.html
Sent from the Ant - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: About

Posted by Stefan Bodewig <bo...@apache.org>.
On 2008-11-11, j2ee6610 <jh...@gmail.com> wrote:

> what's resolveexecutable?

an attribute of the exec task.

> how do I set it?

http://ant.apache.org/manual/CoreTasks/exec.html

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: About

Posted by j2ee6610 <jh...@gmail.com>.
what's resolveexecutable?
how do I set it?
I tried to use activemq.exe  but it's not working.


Stefan Bodewig wrote:
> 
> this really is a user-list question.
> 
> On 2008-11-11, j2ee6610 <jh...@gmail.com> wrote:
> 
>> 	<target name="runActiveMQ" description="Starts the ActiveMQ server">
>> 		<exec dir="${activemq-directory}/bin/" executable="activemq"
>> spawn="true"
>> />
>> 	</target>
> 
>> that is my script
> 
>> i simply just want to run activemq.exe
> 
> then call it that and not activemq 8-)
> 
> executable="activemq.exe" likely works, you may need to set
> resolveexecutable to true as well.
> 
> Stefan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/About-%3Cexec%3E-tp20430034p20433900.html
Sent from the Ant - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: About

Posted by Stefan Bodewig <bo...@apache.org>.
this really is a user-list question.

On 2008-11-11, j2ee6610 <jh...@gmail.com> wrote:

> 	<target name="runActiveMQ" description="Starts the ActiveMQ server">
> 		<exec dir="${activemq-directory}/bin/" executable="activemq" spawn="true"
> />
> 	</target>

> that is my script

> i simply just want to run activemq.exe

then call it that and not activemq 8-)

executable="activemq.exe" likely works, you may need to set
resolveexecutable to true as well.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: About

Posted by j2ee6610 <jh...@gmail.com>.
The error msg is as follow:

build failed.
Execute failed: java.io.IOException: Cannot run program "activemq" (in
directory "C:\\XXXXX"): CreateProcess error=2, The system cannot find the
file specified.


Thank you 


Mark Salter-5 wrote:
> 
> j2ee6610 wrote:
>> i simply just want to run activemq.exe
>> but it's not working
>> 
>> I'm sure that the path is all correct   the error msg is that it could
>> not
>> find the specified file
> What is the *exact* error message?  Please copy and paste please.
> 
> Can you add -verbose to your ant invocation and include this output?
> 
> -- 
> Mark
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/About-%3Cexec%3E-tp20430034p20433123.html
Sent from the Ant - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: About

Posted by Mark Salter <ma...@talktalk.net>.
j2ee6610 wrote:
> i simply just want to run activemq.exe
> but it's not working
> 
> I'm sure that the path is all correct   the error msg is that it could not
> find the specified file
What is the *exact* error message?  Please copy and paste please.

Can you add -verbose to your ant invocation and include this output?

-- 
Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org