sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romb...@apache.org
Subject svn commit: r1706906 - /sling/trunk/tooling/ide/eclipse-m2e-ui/src/org/apache/sling/ide/eclipse/m2e/EmbeddedArchetypeInstaller.java
Date Mon, 05 Oct 2015 19:29:54 GMT
Author: rombert
Date: Mon Oct  5 19:29:54 2015
New Revision: 1706906

URL: http://svn.apache.org/viewvc?rev=1706906&view=rev
Log:
SLING-5082 - Change minimum requirement to Eclipse Luna and Java 7 

Fix EmbeddedArchetypeInstaller by passing an artifact type to the
DefaultArtifactHandler.

Modified:
    sling/trunk/tooling/ide/eclipse-m2e-ui/src/org/apache/sling/ide/eclipse/m2e/EmbeddedArchetypeInstaller.java

Modified: sling/trunk/tooling/ide/eclipse-m2e-ui/src/org/apache/sling/ide/eclipse/m2e/EmbeddedArchetypeInstaller.java
URL: http://svn.apache.org/viewvc/sling/trunk/tooling/ide/eclipse-m2e-ui/src/org/apache/sling/ide/eclipse/m2e/EmbeddedArchetypeInstaller.java?rev=1706906&r1=1706905&r2=1706906&view=diff
==============================================================================
--- sling/trunk/tooling/ide/eclipse-m2e-ui/src/org/apache/sling/ide/eclipse/m2e/EmbeddedArchetypeInstaller.java
(original)
+++ sling/trunk/tooling/ide/eclipse-m2e-ui/src/org/apache/sling/ide/eclipse/m2e/EmbeddedArchetypeInstaller.java
Mon Oct  5 19:29:54 2015
@@ -135,8 +135,10 @@ public class EmbeddedArchetypeInstaller
 
                 try {
                     IOUtils.copy(in, fos);
+                    // the below code uses the fileExtension as a type. Most of the time
this is correct
+                    // and should be fine for our usage
                     Artifact jarArtifact = new DefaultArtifact(groupId, artifactId, version,
"", fileExtension, "",
-                            new DefaultArtifactHandler());
+                            new DefaultArtifactHandler(fileExtension));
                     dai.install(tmpFile, jarArtifact, maven.getLocalRepository());
                 } finally {
                     IOUtils.closeQuietly(in);



Mime
View raw message