1 11 package org.eclipse.jdt.internal.launching.support; 12 13 14 19 public class LegacySystemProperties { 20 21 public static void main(String [] args) { 22 StringBuffer buffer = new StringBuffer (); 23 buffer.append("<systemProperties>\n"); for (int i = 0; i < args.length; i++) { 25 String name = args[i]; 26 String value = System.getProperty(name); 27 if (value != null) { 28 buffer.append("<property "); buffer.append("\n\tname= \""); buffer.append(name); 31 buffer.append("\"\n\tvalue= \""); buffer.append(value); 33 buffer.append("\"/>\n"); } 35 } 36 buffer.append("</systemProperties>"); System.out.print(buffer.toString()); 38 } 39 40 } 41 | Popular Tags |