ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Lipp" <s.l...@tallence.com>
Subject RE: invoking ant from jsp on win2k
Date Fri, 13 Sep 2002 14:20:32 GMT
yes: ant.bat or %ANT_HOME%\bin is in the system path.

> stefan,
>
> please accept my apologies if i'm restating prior solutions or
> suggestions; i haven't been following the mailing list for a couple of
> days...
>
> can ant.bat be found on the Path?
>
> i've ran into similar errors when ever my 'User Variables' weren't
> /realized/.  meaning, they weren't filled in or updated.  try updating
> the Path that is in 'System Variables' by adding %ANT_HOME%\bin.
>
> again, if this has been suggested before, accept my apologies.
>
> mel riffe
>
>
> -----Original Message-----
> From: Stefan Lipp [mailto:s.lipp@tallence.com]
> Sent: Friday, September 13, 2002 10:08 AM
> To: ant-user@jakarta.apache.org
> Subject: invoking ant from jsp on win2k
>
>
> sorry for another post, but all previous solutions mentioned didn't
> work.
>
> My case plain spoken:
> Used API in jsp and tried to fire up ant with given path to build-file
> which works all in a dos-box:
> <%@ page import="org.apache.tools.ant.Project"%>
> <%@ page import="org.apache.tools.ant.taskdefs.ExecTask"%>
> <%@ page import="org.apache.tools.ant.types.Commandline"%>
> <html>
> <head><title>invoke_ant</title></head>
> <body>
> <%
>    Project project = new Project();
>    ExecTask exec = new ExecTask();
>    exec.setProject(project);
>    exec.setExecutable("ant.bat");
>    Commandline.Argument arg = exec.createArg();
>    arg.setLine("-buildfile
>    e:/jakarta-tomcat-3.2.3/webapps/vignette_dev/build.xml");
> exec.execute();
>
> %>
> </body>
> </html>
>
> tomcat error:
>
> javax.servlet.ServletException: Execute failed: java.io.IOException:
> CreateProcess: ant.bat -buildfile
> e:/jakarta-tomcat-3.2.3/webapps/vignette_dev/build.xml error=2
> What went wrong? Is it that f...ing windows? Does sombody has a
> solution?
>
> thx
>
> Stefan s.lipp@tallence.com
>
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:ant-user-unsubscribe@jakarta.apache.org> For additional
> commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
> **************************************************************************
> The information transmitted herewith is sensitive information intended
> only for use by the individual or entity to which it is addressed. If
> the reader of this message is not the intended recipient, you are
> hereby notified that any review, retransmission, dissemination,
> distribution, copying or other use of, or taking of any action in
> reliance upon this information is strictly prohibited. If you have
> received this communication in error, please contact the sender and
> delete the material from your computer.
>
> --
> To unsubscribe, e-mail:
> <mailto:ant-user-unsubscribe@jakarta.apache.org> For additional
> commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Stefan Lipp, Dipl. Kfm.
     email: s.lipp@tallence.com

tallence GmbH
Posthorngaesschen 2
93047 Regensburg - Germany
     phone: ++49 941 5997709

-> This message was written entirely with recycled electrons




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


Mime
View raw message