0

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):
ᄂ ᄀ
  • 5,669
  • 6
  • 43
  • 57
Prerak Tiwari
  • 3,436
  • 4
  • 34
  • 64

2 Answers2

1

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>
Jeremy Gosling
  • 1,130
  • 10
  • 11
1

Have looked into the WAS provided ant environment? There is ws_ant utility - ws_ant docs.

Anton N
  • 2,317
  • 24
  • 28