Reputation: 3476
I created a method in Jython to add shared library to the installed application. I save the script file in {was.install.dir}/bin directory with name "addSharedLib.py". I am using ant to install the application on the cluster. My question is how do I call this jython method from ant script to get desired result? I am using websphere 8.5.5 ND.
def setSharedLibrary(appName,editionNo,saredLibName):
Upvotes: 0
Views: 570
Reputation: 2375
Have looked into the WAS
provided ant environment?
There is ws_ant
utility - ws_ant docs.
Upvotes: 1
Reputation: 1168
You can obtain one of the jython standalone jars from http://www.jython.org/downloads.html and just run the Ant java task like this ...
<?xml version="1.0" encoding="windows-1252" ?>
<project default="install">
<target name="install">
<java classname="org.python.util.jython" fork="true" failonerror="true">
<arg line="addSharedLib.py"/>
<classpath>
<pathelement location='D:\work\jython\jython2.5.3\jython-standalone-2.5.3.jar' />
</classpath>
</java>
</target>
</project>
Upvotes: 1