Menu DEVPPL Search
159.208
MEMBERS
15.941
TOPICS
63.226
POSTS
  562
FLASH GAMES
7.717
TUTORIALS
 

Login

E-mail:
Password:

Jython code to parse command line arguments

0

Loading

Jython code to parse command line arguments

Postby Potchi » Wed May 18, 2011 10: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
 
Reputation: 0
Posts: 2
Joined: Wed May 18, 2011 10:27 am
Highscores: 0
Arcade winning challenges: 0

Jython code to parse command line arguments - Sponsored results

Sponsored results

Login to get rid of ads

 

^ Back to Top