ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: Restarting Tomcat with Ant
Date Fri, 03 Apr 2009 05:10:20 GMT
> <property name="TOMCAT" location="/usr/local/tomcat"/>
> <target name="stop-tomcat">
> <exec dir="${TOMCAT}/bin/" executable="" />
> </target>
> but it failed. Told me it cannot find the shell script.
> Could anyone please suggest why this is happening?

<exec executable> specifies what command to run.

<exec dir> specifies where the command should be run. But it does NOT
specify where the executable should be found.

You could try <exec resolveexecutable|searchpath>.

BUT *.sh are not commands that could be run by the operating system.
files are run by a command shell.

  <exec executable="sh">
    <arg value="-c"/>
    <arg value="${TOMCAT}/bin/"/>


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message