예제 #1
0
 static String getpassword(String prefix) {
   String password = System.getProperty(prefix + "storepassword");
   if (password != null) {
     password = password.trim();
     if (password.length() == 0) password = null;
   }
   return password;
 }
예제 #2
0
 static String cleanproperty(String property) {
   String value = System.getProperty(property);
   if (value != null) {
     value = value.trim();
     if (value.length() == 0) value = null;
   }
   return value;
 }
예제 #3
0
 static String getstorepath(String prefix) {
   String path = System.getProperty(prefix + "store");
   if (path != null) {
     path = path.trim();
     if (path.length() == 0) path = null;
   }
   return path;
 }