bat(ch) files are run thru a command processor such as bash or cmd.exe /C as in 
example

        <exec executable="cmd.exe">
            <arg value="/c"/>
            <arg 
line="C:\apache-tomcat-4.1.39\apache-tomcat-4.1.39\bin\startup.bat" />
            <env key="CATALINA_HOME" 
value="C:\apache-tomcat-4.1.39\apache-tomcat-4.1.39"/>
           <env key="CATALINA_BASE" 
value="C:\apache-tomcat-4.1.39\apache-tomcat-4.1.39"/>
        </exec>

http://ant.apache.org/manual/CoreTasks/exec.html
Martin Gainty 
______________________________________________ 
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de 
déni et de confidentialité 
This message is confidential. If you should not be the intended receiver, then 
we ask politely to report. Each unauthorized forwarding or manufacturing of a 
copy is inadmissible. This message serves only for the exchange of information 
and has no legal binding effect. Due to the easy manipulation of emails we 
cannot take responsibility over the the contents.
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.






> From: sfarru...@fry.com
> To: users@tomcat.apache.org; p...@pidster.com
> Date: Tue, 21 Apr 2009 14:44:43 -0400
> Subject: RE: Deploying to Tomcat Server
> 
> Yes this is most certainly a tomcat/ant issue - probably a tomcat issue - 
> something in startup.bat since you say that you cannot even run the ide using 
> startup.bat  Looks like a misplaced quote someplace in the bat file.
> 
> 
> Good luck,
> Shaun
> 
> 
> -----Original Message-----
> From: Pid [mailto:p...@pidster.com] 
> Sent: Tuesday, April 21, 2009 2:39 PM
> To: Tomcat Users List
> Subject: Re: Deploying to Tomcat Server
> 
> Sounds like a netbeans / ant problem.
> Rather than Tomcat, sorry.
> 
> p
> 
> 
> 
> Richard Coutinho wrote:
> > Is anyone going to respond to my question?
> > 
> > Sent from my BlackBerry device on the Rogers Wireless Network
> > 
> > -----Original Message-----
> > From: Richard Coutinho <richardcouti...@shaw.ca>
> > 
> > Date: Mon, 20 Apr 2009 22:43:50 
> > To: <users@tomcat.apache.org>
> > Cc: <users-i...@tomcat.apache.org>
> > Subject: Deploying to Tomcat Server
> > 
> > 
> > Hello:
> > 
> > I am using Netbeans 6.5 IDE to deploy to Tomcat 4.1 server. This Tomcat
> > server cannot be registered with the Netbeans tool as it is an older version
> > of Tomcat.
> > 
> > I follow the instructions and try to start the Tomcat server from the IDE
> > [see syntax below]. If I run it from the IDE or simply run the startup.bat
> > file I get the following error:-
> > -Dsun.io.useCanonCaches=false"
> > 
> > How can I fix this problem, so that I can start the Tomcat 4.1 server? 
> > 
> > Thanks 
> > Richard
> > 
> > 
> > <target name="startcat4" depends="init">
> > <exec
> > executable="C:\apache-tomcat-4.1.39\apache-tomcat-4.1.39\bin\startup.bat">
> > <env key="CATALINA_HOME"
> > value="C:\apache-tomcat-4.1.39\apache-tomcat-4.1.39"/>
> > <env key="CATALINA_BASE"
> > value="C:\apache-tomcat-4.1.39\apache-tomcat-4.1.39"/>
> > </exec>
> > 
> > </target>
> > 
> > 
> > <target name="run" depends="compile">
> > <exec executable="C:\Program Files\Mozilla Firefox\firefox.exe">
> > <arg value="http://localhost:8080/WebApplication4/${client.urlPart}"/>
> > </exec>
> > 
> > </target>
> > 
> > 
> > <target name="stopcat4" depends="init">
> > <exec
> > executable="C:\apache-tomcat-4.1.39\apache-tomcat-4.1.39\bin\shutdown.bat">
> > <env key="CATALINA_HOME"
> > value="C:\apache-tomcat-4.1.39\apache-tomcat-4.1.39"/>
> > <env key="CATALINA_BASE"
> > value="C:\apache-tomcat-4.1.39\apache-tomcat-4.1.39"/>
> > </exec>
> > 
> > </target>
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

_________________________________________________________________
Windows Live™ Hotmail®:…more than just e-mail.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_more_042009

Reply via email to