It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Python Forum

Jython code to parse command line arguments

Jython code to parse command line arguments

Postby potchi on Wed May 18, 2011 9:40 am

Hi!

I have a batch file (potchi.bat) that contains the lines
...
set maxHeap = 2048
set initialHeap = 512
set olddir=%cd%
...
and I want to pass these values to a jython script (myScript.py)
such that

fullpath = '%olddir%+/myApp.war+'
AdminApp.installInteractive(fullpath, -contextroot myApp)
AdminTask.setJVMMaxHeapSize('[-serverName myServer -nodeName myNode -maximumHeapSize %maxHeap%]')
AdminTask.setJVMInitialHeapSize('[-serverName myServer -nodeName myNode -initialHeapSize %initialHeap%]')

Thanks!!!
potchi
 
Posts: 2
Joined: Wed May 18, 2011 9:27 am

Who is online

Users browsing this forum: No registered users and 0 guests