Put RAP upload and map widgets to org.argeo.tp.rap
authorMathieu Baudier <mbaudier@argeo.org>
Tue, 19 Jun 2012 13:22:02 +0000 (13:22 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Tue, 19 Jun 2012 13:22:02 +0000 (13:22 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@5321 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

runtime/org.argeo.slc.repo/src/main/java/org/argeo/slc/repo/maven/Migration_01_03.java

index 8b15eaea292a4c240722fc156028d428cf9188c0..f7446b8aacb0622e5ea20b26c9bac8bfa849d065 100644 (file)
@@ -125,9 +125,10 @@ public class Migration_01_03 implements Runnable, SlcNames {
 
                // skip eclipse artifacts
                if ((origArtifact.getGroupId().startsWith("org.eclipse") && !(origArtifact
-                               .getArtifactId().equals("org.eclipse.osgi") || origArtifact
-                               .getArtifactId().equals("org.eclipse.osgi.source")))
-                               || origArtifact.getArtifactId().startsWith("org.polymap")
+                               .getArtifactId().equals("org.eclipse.osgi")
+                               || origArtifact.getArtifactId().equals(
+                                               "org.eclipse.osgi.source") || origArtifact
+                               .getArtifactId().startsWith("org.eclipse.rwt.widgets.upload")))
                                || origArtifact.getArtifactId().startsWith("com.ibm.icu")) {
                        if (log.isDebugEnabled())
                                log.debug("Skip " + origArtifact);
@@ -260,9 +261,16 @@ public class Migration_01_03 implements Runnable, SlcNames {
 
                // target coordinates
                final String targetGroupId;
-               if (origArtifact.getGroupId().startsWith("org.eclipse")
+               if (origArtifact.getArtifactId().startsWith(
+                               "org.eclipse.rwt.widgets.upload"))
+                       targetGroupId = "org.argeo.tp.rap";
+               else if (origArtifact.getArtifactId().startsWith("org.polymap"))
+                       targetGroupId = "org.argeo.tp.rap";
+               else if (origArtifact.getGroupId().startsWith("org.eclipse")
                                && !origArtifact.getArtifactId().equals("org.eclipse.osgi"))
-                       targetGroupId = "org.argeo.tp.eclipse";
+                       throw new SlcException(origArtifact + " should have been excluded");// targetGroupId
+                                                                                                                                                               // =
+                                                                                                                                                               // "org.argeo.tp.eclipse";
                else
                        targetGroupId = "org.argeo.tp";