I am pretty new to the Jython world, I have a need to create the jvm custom properties but i am king on struck at array. please provide expertise suggestion..
Here is my code snippet :
### JVM CUSTOM PROPERTIES SCRIPT ###
fileOpen = open("/tmp/jvmname.props", "r")
fileRead = fileOpen.read()
server = AdminConfig.getid("/Server:"+fileRead+"/")
jvm = AdminConfig.list('JavaVirtualMachine', server)
# print jvm
lineSeparator = java.lang.System.getProperty('line.separator')
arrayJVMs = jvm.split(lineSeparator)
jvmc = arrayJVMs[0]
attr = []
jvmCustomProperties0 = [['user.timezone', 'GMT'],['ecom.stub.enable', 'True']]
for test in jvmCustomProperties0:
print test[0]
I am getting syntax error, I need to extract the test[0] = 'user.timezone' , test[1] = 'GMT' so....on, Using for loop process i want to add more than 1 jvm custom property.