ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajesh Rajasekaran" <rraj...@tamu.edu>
Subject RE: Jboss start and stop scripts
Date Tue, 01 Nov 2005 14:11:13 GMT


HOPE THIS HELPS:


    <macrodef name="jboss.start">
    <attribute name="jboss.home" default=""/>
       <sequential>
	<java dir="@{jboss.home}/server/default/conf"
classname="org.jboss.Main" fork="true" spawn="true">
		<arg line="-c @{jboss.home}/server/default"/>
		<jvmarg value="-Xms32m"/>
		<jvmarg value="-Xmx200m"/>
		<classpath>
			<pathelement path="@{jboss.home}/bin/run.jar"/>
			<pathelement path="${java.home}/lib/tools.jar"/>
		</classpath>
	</java>
       </sequential>
    </macrodef>  



    <macrodef name="jboss.shutdown">
    <attribute name="jboss.home" default=""/>
       <sequential>
	<java dir="@{jboss.home}/server/default/conf"
classname="org.jboss.Shutdown" fork="true">
		<arg line="${jboss.host} ${jboss.port}"/>
		<classpath>
			<pathelement path="@{jboss.home}/bin/shutdown.jar"/>
		</classpath>
	</java>
       </sequential>
    </macrodef>


Rajesh


-----Original Message-----
From: Keith Hatton [mailto:khatton@axiomsystems.com] 
Sent: Tuesday, November 01, 2005 8:00 AM
To: Ant Users List
Subject: RE: Jboss start and stop scripts

Hmm, I don't think I have ever seen that (I'm using Jboss 3.2.x).
But in principle, you should be able to <exec> whatever command you
would use at a command prompt to stop your server. (Of course, this does
not help if the way you normally stop your server is Ctrl-C!)

Keith



-----Original Message-----
From: Andrei [mailto:andrei@netrom.ro] 
Sent: 01 November 2005 13:46
To: Ant Users List
Subject: Re: Jboss start and stop scripts


Done that but i get the following error:

Exception in thread "main" javax.naming.NameNotFoundException: jmx not
bound

Do you have any ideea?


----- Original Message ----- 
From: "Keith Hatton" <khatton@axiomsystems.com>
To: "Ant Users List" <user@ant.apache.org>
Sent: Tuesday, November 01, 2005 3:39 PM
Subject: RE: Jboss start and stop scripts


This works for me - on Windoze anyway, I'm sure you can do something
similar on other platforms.

HTH
Keith

            <exec dir="${jboss.home}/bin" executable="cmd.exe"
os="Windows 2000,Windows XP">
                <arg line="/c shutdown.bat -S"/>
                <env key="NOPAUSE" value="true"/>
            </exec>


-----Original Message-----
From: Andrei [mailto:andrei@netrom.ro]
Sent: 01 November 2005 12:36
To: Ant Users List
Subject: Re: Jboss start and stop scripts



Starting is simple width exec, but how do i stop it from ant?

----- Original Message ----- 
From: "Petar Tahchiev" <paranoiabla@gmail.com>
To: "Ant Users List" <user@ant.apache.org>
Sent: Tuesday, November 01, 2005 2:33 PM
Subject: Re: Jboss start and stop scripts


On 01/11/05, Andrei <andrei@netrom.ro> wrote:
>
>
> Does any body knows how to start and stop jboss using ant?
>

I am not quite sure whether it is possible but why not try using exec
and pass the run script

--
Regards, Petar!



---------------------------------------------------------------------
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




---------------------------------------------------------------------
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



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


Mime
View raw message