Here's the rule for naming targets:

 

A target name can be any alphanumeric string valid in the encoding of the XML 
file. The empty string "" is in this set, as is comma "," and space " ". Please 
avoid using these, as they will not be supported in future Ant versions because 
of all the confusion they cause. IDE support of unusual target names, or any 
target name containing spaces, varies with the IDE.

Targets beginning with a hyphen such as "-restart" are valid, and can be used 
to name targets that should not be called directly from the command line.
 
> Date: Sun, 27 Dec 2009 13:30:48 -0800
> From: e_hau...@hotmail.com
> To: user@ant.apache.org
> Subject: running shell script on unix
> 
> 
> Hi,
> 
> I hope you can help me figure out what is wrong with my script.
> I am trying to run shell script calls stopServer. The ant script is like the
> following:
> 
> <target name="stop server" depends="" description="stop weblogic server">
> <exec
> dir="/clwutabp/clw/aim/clwabp12/J2EEServer/config/ABC-FULL/ABCServer/scripts" 
> vmlauncher="true" executable="/usr/bin/sh"> 
> <arg value="-c" />
> <arg value="forceShutdownServer"/>
> </exec>
> </target>
> 
> However when trying to run the task on Eclipse I receive the following
> error:
> "The directory you specified does not exist"
> 
> The folder exist and also the script. I am trying to run the script via a
> diferent user as the owner of the script name forceShutdownServer. I changed
> the mod to be 777 for both folder and script but without success to over
> come the above error.
> Any idea what I am doing wrong?
> 
> Please note that I double click on the ant task from remote connection using
> NT server. The ant file is located on a unix.
> 
> Thanks,
> Eran
> -- 
> View this message in context: 
> http://old.nabble.com/running-shell-script-on-unix-tp26937374p26937374.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
> For additional commands, e-mail: user-h...@ant.apache.org
> 
                                          
_________________________________________________________________
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141664/direct/01/

Reply via email to