geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r382873 - /geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-emf-plugin/src/main/java/org/apache/emf/plugin/XSDImporterMojo.java
Date Fri, 03 Mar 2006 15:45:15 GMT
Author: sppatel
Date: Fri Mar  3 07:45:14 2006
New Revision: 382873

URL: http://svn.apache.org/viewcvs?rev=382873&view=rev
Log:
invert pkg/map since plugin configuration can't take url as map key

Modified:
    geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-emf-plugin/src/main/java/org/apache/emf/plugin/XSDImporterMojo.java

Modified: geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-emf-plugin/src/main/java/org/apache/emf/plugin/XSDImporterMojo.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-emf-plugin/src/main/java/org/apache/emf/plugin/XSDImporterMojo.java?rev=382873&r1=382872&r2=382873&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-emf-plugin/src/main/java/org/apache/emf/plugin/XSDImporterMojo.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-emf-plugin/src/main/java/org/apache/emf/plugin/XSDImporterMojo.java
Fri Mar  3 07:45:14 2006
@@ -109,18 +109,18 @@
 			buffer.append("-packagemap" + SPACE);
 			Set keys = packagemap.keySet();
 			for (Iterator i = keys.iterator(); i.hasNext();) {
-				String pkg = (String) i.next();
-				String mapping = (String) packagemap.get(pkg);
+				String mapping = (String) i.next(); // org.apache...
+				String pkg = (String) packagemap.get(mapping); // http://...
 				buffer.append(pkg + SPACE + mapping + SPACE);
 			}
 		}
 		return buffer;
 	}
-	
+
 	private String getRelativeSrcDir() {
 		String src = project.getBuild().getSourceDirectory();
 		src = src.split(project.getBasedir().getAbsolutePath())[1];
-		if(src.startsWith(File.separator))
+		if (src.startsWith(File.separator))
 			src = src.substring(1);
 		return src;
 	}



Mime
View raw message