Changeset 653
- Timestamp:
- 02/07/12 09:29:13 (3 months ago)
- Location:
- XMLUtils/trunk
- Files:
-
- 4 added
- 1 deleted
- 3 edited
-
.classpath (modified) (1 diff)
-
.project (modified) (1 diff)
-
.settings (added)
-
.settings/org.eclipse.jdt.core.prefs (added)
-
.settings/org.eclipse.m2e.core.prefs (added)
-
build.xml (deleted)
-
pom.xml (added)
-
src/main/java/corinis/util/DomUtil.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
XMLUtils/trunk/.classpath
r585 r653 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <classpath> 3 <classpathentry kind="src" path="src"/> 4 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> 3 <classpathentry kind="src" output="target/classes" path="src/main/java"/> 4 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/> 5 <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/> 5 6 <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v6.0"/> 6 <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/corinis"/> 7 <classpathentry kind="output" path="bin"/> 7 <classpathentry kind="output" path="target/classes"/> 8 8 </classpath> -
XMLUtils/trunk/.project
r585 r653 11 11 </arguments> 12 12 </buildCommand> 13 <buildCommand> 14 <name>org.eclipse.m2e.core.maven2Builder</name> 15 <arguments> 16 </arguments> 17 </buildCommand> 13 18 </buildSpec> 14 19 <natures> 20 <nature>org.eclipse.m2e.core.maven2Nature</nature> 15 21 <nature>org.eclipse.jdt.core.javanature</nature> 16 22 </natures> -
XMLUtils/trunk/src/main/java/corinis/util/DomUtil.java
r614 r653 43 43 import java.text.SimpleDateFormat; 44 44 import java.util.ArrayList; 45 import java.util.Collections; 45 46 import java.util.Date; 46 import java.util.Enumeration;47 47 import java.util.Properties; 48 48 … … 119 119 * @return the tree 120 120 */ 121 @SuppressWarnings("unchecked")122 121 public static Element getPropertyTree (Properties props, Document doc) 123 122 { 124 123 Element root = doc.createElement("PROPS"); 125 Enumeration e = props.keys(); 126 while(e.hasMoreElements()) 127 { 128 String s = (String)e.nextElement(); 129 root.appendChild(CreateNode(doc, s, (String)props.get(s))); 124 for(Object s : Collections.list(props.keys())) 125 { 126 root.appendChild(CreateNode(doc, (String)s, (String)props.get((String)s))); 130 127 } 131 128 return root;
Note: See TracChangeset
for help on using the changeset viewer.
