Changeset 653


Ignore:
Timestamp:
02/07/12 09:29:13 (3 months ago)
Author:
niko
Message:

use maven

Location:
XMLUtils/trunk
Files:
4 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • XMLUtils/trunk/.classpath

    r585 r653  
    11<?xml version="1.0" encoding="UTF-8"?> 
    22<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"/> 
    56        <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"/> 
    88</classpath> 
  • XMLUtils/trunk/.project

    r585 r653  
    1111                        </arguments> 
    1212                </buildCommand> 
     13                <buildCommand> 
     14                        <name>org.eclipse.m2e.core.maven2Builder</name> 
     15                        <arguments> 
     16                        </arguments> 
     17                </buildCommand> 
    1318        </buildSpec> 
    1419        <natures> 
     20                <nature>org.eclipse.m2e.core.maven2Nature</nature> 
    1521                <nature>org.eclipse.jdt.core.javanature</nature> 
    1622        </natures> 
  • XMLUtils/trunk/src/main/java/corinis/util/DomUtil.java

    r614 r653  
    4343import java.text.SimpleDateFormat; 
    4444import java.util.ArrayList; 
     45import java.util.Collections; 
    4546import java.util.Date; 
    46 import java.util.Enumeration; 
    4747import java.util.Properties; 
    4848 
     
    119119         * @return the tree  
    120120         */ 
    121         @SuppressWarnings("unchecked") 
    122121        public static Element getPropertyTree (Properties props, Document doc) 
    123122        { 
    124123                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))); 
    130127                } 
    131128                return root; 
Note: See TracChangeset for help on using the changeset viewer.