ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Parnell, Giles (AU - Sydney)" <g.parn...@eclipsegroup.com.au>
Subject RE: Starting jboss with Ant (again !!! - and still no luck :( )
Date Fri, 01 Aug 2003 07:32:30 GMT
Hi Antoine

Thanks for the reply. I've changed the script to cmd.exe... but then how or
where do i call the run.bat? Running cmd is not going to get jboss running
(think i may be missing the point here !!!)

I've tryed this:
<echo message="Windows OS" />
<spawn dir="${bin}" executable="cmd.exe">				
</spawn>		

And this:
<spawn dir="${bin}" executable="cmd.exe">
	<arg line="run.bat -c ${projectName}"/>
</spawn>		

I've also tryed nesting an exec tag within the spawn tag... not allowed.

If i look at the processes... i can see a cmd firing up.... but when i try
and hit the server - it hasn't started.

Am i missing something entirely?

Thanks





-----Original Message-----
From: Antoine Levy-Lambert [mailto:antoine@antbuild.com]
Sent: Friday, 1 August 2003 4:59 PM
To: Ant Users List
Subject: Re: Starting jboss with Ant (again !!! - and still no luck :( )


Hi Giles,

the executable should be "cmd.exe", not "${bin}run.bat"

the same on SunOS, the executable should be "sh" or "ksh", but not the name
of the script

other point : there is a spawn attribute for the exec task in ant1.6alpha,
you can try it.

Cheers,

Antoine
----- Original Message -----
From: "Parnell, Giles (AU - Sydney)" <g.parnell@eclipsegroup.com.au>
To: <user@ant.apache.org>
Sent: Friday, August 01, 2003 6:33 AM
Subject: Starting jboss with Ant (again !!! - and still no luck :( )


> Sorry guys
>
> I know this topic has been fired around quite a bit lately. I've followed
> all the responses but still to be doing something wrong.
>
> I've compiled the Spawn class (many thanks to T Gordon) into it's own jar,
> and included it in the ant lib dir.
>
> I've included the taskdef in my build script, and it appears to work fine
> (my build script acknowledges the new task)
>
> However when I run the portion of xml to start jboss, I get the following
> error:
>
> [spawn] BUILD FAILED: file:Z:/workspace/MinterEllison/src/build.xml:149:
> Execute failed: java.io.IOException: CreateProcess:
> c:APPSERVERS\jboss-3.0.7_jakarta-tomcat-4.1.24\bin\run.bat -c connectis
> error=3
>           [if] Error in class net.sf.antcontrib.logic.IfTask
>
> I know it's got nothing to do with the 'if task' (part of ant-contrib),
and
> take it that the error=3 is the thing that's causing the problem
>
> Heres my target... any ideas ?
>
> <!-- Doesn't work under Windows at the moment -->
> <target name="startjboss">
> <if>
> <equals arg1="${os.name}" arg2="SunOS" />
> <then>
>    <echo message="Sun OS" />
>    <exec dir="${bin}" executable="${bin}/run.sh">
> <arg line="-c ${projectName}"/>
> </exec>
> </then>
> <else>
>    <echo message="Windows OS" />
>    <spawn dir="${bin}" executable="${bin}run.bat">
> <arg line="-c ${projectName}"/>
> </spawn>
> </else>
> </if>
>
> </target>
>
> bin is decalred as so above...
> <property name="bin"
> value="${appserverroot}/jboss-3.0.7_jakarta-tomcat-4.1.24/bin/"/>
>
>
> Thanks in advance
> Giles
>
> "...the opportunities that are proffered by corporate websites, web
> advertising and email are too great to ignore", according to the
Australian
> Financial Review's 2003 Marketing Survey.
>
> Eclipse can help you use new media to engage your customers. To find out
> how, please contact Jamie Verco on 9322 5181 or 0408 202 203.
>
>
> Giles Parnell |    ECLIPSEGROUP   |   02 9322 5124   |   Mobile 0403
768656
>
> Level 9, 190 George Street, Sydney, NSW 2000, Fax: 02 9322 5121
>
> > The Eclipse Group is a wholly owned subsidiary of Deloitte Touche
Tohmatsu
> >
> www.eclipsegroup.com.au
>
> This email and any files transmitted with it are confidential and intended
> solely
> for the use of the individual or entity to whom they are addressed.
> If you are not the intended recipient of this email, you must not
> disseminate,
> copy or otherwise use this information. If you have received this email in
> error,
> please notify Eclipse Group immediately.
>
>
>
>
>
>
>
> ***********Confidentiality/Limited Liability Statement***************
>
> This message contains privileged and confidential information intended
> only for the use of the addressee named above.  If you are not the
> intended recipient of this message, you must not disseminate, copy or
> take any action in reliance on it.  If you have received this message
> in error, please notify Deloitte Touche Tohmatsu immediately.  Any
> views expressed in this message are those of the individual sender,
> except where the sender specifically states them to be the views of
> Deloitte.
>
> The liability of Deloitte Touche Tohmatsu, is limited by, and to the
> extent of, the Accountants' Scheme under the Professional Standards
> Act 1994 (NSW).
>
> The sender cannot guarantee that this email or any attachment to it
> is free of computer viruses or other conditions which may damage or
> interfere with data, hardware or software with which it might be used.
> It is sent on the strict condition that the user carries out and relies
> on its own procedures for ensuring that its use will not interfere with
> the recipients systems and the recipient assumes all risk of use and
> absolves the sender of all responsibility for any consequence of its use.
>
>



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


***********Confidentiality/Limited Liability Statement***************

This message contains privileged and confidential information intended
only for the use of the addressee named above.  If you are not the 
intended recipient of this message, you must not disseminate, copy or 
take any action in reliance on it.  If you have received this message 
in error, please notify Deloitte Touche Tohmatsu immediately.  Any 
views expressed in this message are those of the individual sender, 
except where the sender specifically states them to be the views of 
Deloitte.

The liability of Deloitte Touche Tohmatsu, is limited by, and to the 
extent of, the Accountants' Scheme under the Professional Standards 
Act 1994 (NSW).

The sender cannot guarantee that this email or any attachment to it 
is free of computer viruses or other conditions which may damage or
interfere with data, hardware or software with which it might be used.
It is sent on the strict condition that the user carries out and relies
on its own procedures for ensuring that its use will not interfere with
the recipients systems and the recipient assumes all risk of use and
absolves the sender of all responsibility for any consequence of its use.


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message