ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Parnell, Giles (AU - Sydney)" <>
Subject Starting jboss with Ant (again !!! - and still no luck :( )
Date Fri, 01 Aug 2003 04:33:01 GMT
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

[spawn] BUILD FAILED: file:Z:/workspace/MinterEllison/src/build.xml:149:
Execute failed: CreateProcess:
c:APPSERVERS\jboss-3.0.7_jakarta-tomcat-4.1.24\bin\run.bat -c connectis
          [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">	
		 	<equals arg1="${}" arg2="SunOS" />
		   <echo message="Sun OS" />
		   	<exec dir="${bin}" executable="${bin}/">
				<arg line="-c ${projectName}"/>
		   <echo message="Windows OS" />
		   	<spawn dir="${bin}" executable="${bin}run.bat">
				<arg line="-c ${projectName}"/>

bin is decalred as so above...
<property name="bin"

Thanks in advance 

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

This email and any files transmitted with it are confidential and intended
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
copy or otherwise use this information. If you have received this email in
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 

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.

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