Tomcat6 Service Setup; programatically concatenate JvmOptions using Batch File -
this may bit bit of basic question, can't seem find answer on web. i'm trying automatically set tomcat service through batch file.
my batch file looks this:
set memsize=512 set jvmoptions="-xx:maxpermsize=512m" echo setting tomcat service. call service.bat install echo setting memory allocation maximum of %memsize% echo using jvm options %jvmoptions% tomcat6 //us// --jvmmx=%memsize% --startup="auto" --jvmoptions=%jvmoptions% the issue i'm facing running --jvmoptions switch overwrites current java options set in tomcat6w.exe.
so question is, know how have --jvmoptions switch concatenate passed value end of current value?
thanks in advance
could simple (if understand question correctly)
set memsize=512 rem removed quotes , reused variable in own definition set jvmoptions=%jvmoptions%-xx:maxpermsize=512m echo setting tomcat service. call service.bat install echo setting memory allocation maximum of %memsize% echo using jvm options %jvmoptions% rem added quotes here tomcat6 //us// --jvmmx=%memsize% --startup="auto" --jvmoptions="%jvmoptions%"
Comments
Post a Comment