Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Excecuting stopapplication ANT task from Windows platform, on a WAS server running on UNIX box.

 
Yogendra Singh Butola
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While executing stopapplication ANT task from Windows platform on a server running on a UNIX box, I get an error saying the setupCmdLine.bat command is not found.

Following is the script log for your reference:

echo] Stopping the application

wsStopApp] Stopping Application [RabbitEar]...

BUILD FAILED

C:\work\build\DepolyOnWAS.xml:59: Unable to parse setupCmdLine: \rabbit\dev\WebSphere70dev\Common\bin\setupCmdLine.bat (The system cannot find the path specified.)



The file setupCmdLine.sh is there in the metioned path, however, it looks for the file setupCmdLine.bat.


It happens with statApplication, stopserver, and startserver also.

Somehow, I'm not able to tell the script that the server is lying on remote UNIX box, and it should look for setupCmdLine.sh instead of setupCmdLine.bat.


NOTE: The script runs perfectly fine on a server running on Windows platform.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fix your script to refer to a .sh file instead of a .bat file.

If you need more help than that, post the script.
 
Yogendra Singh Butola
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<taskdef name="wsStopApp" classpathref="lib.ref" classname="com.ibm.websphere.ant.tasks.StopApplication" />

<target name="stopApplication">
<echo message="Stopping the application" />
<wsStopApp application="MyAppEar" conntype="${remoteConnType}" washome="${user.install.root}" server="${was.server}" host="${remoteHostName}" node="${was.node}" port="8880" failonerror="true" />
</target>


What can I set to let the script know to use .sh


-Yogi
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The wsStopApp task is not part of Ant, it is part of WebSphere extensions to Ant. I am somewhat surprised that IBM has not coded this task to determine what OS it is running on and thus invoke the correct script. Anyway, you will probably get more help from people familiar with the WebSphere extensions for Ant so I will move your post.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic