geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r702401 - /geronimo/gshell/trunk/gshell-commands/gshell-repository/src/main/java/org/apache/geronimo/gshell/commands/repository/ResolveAction.java
Date Tue, 07 Oct 2008 09:07:19 GMT
Author: jdillon
Date: Tue Oct  7 02:07:18 2008
New Revision: 702401

URL: http://svn.apache.org/viewvc?rev=702401&view=rev
Log:
AM will automatically add dummy artifact for transitive resolution

Modified:
    geronimo/gshell/trunk/gshell-commands/gshell-repository/src/main/java/org/apache/geronimo/gshell/commands/repository/ResolveAction.java

Modified: geronimo/gshell/trunk/gshell-commands/gshell-repository/src/main/java/org/apache/geronimo/gshell/commands/repository/ResolveAction.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-commands/gshell-repository/src/main/java/org/apache/geronimo/gshell/commands/repository/ResolveAction.java?rev=702401&r1=702400&r2=702401&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-commands/gshell-repository/src/main/java/org/apache/geronimo/gshell/commands/repository/ResolveAction.java
(original)
+++ geronimo/gshell/trunk/gshell-commands/gshell-repository/src/main/java/org/apache/geronimo/gshell/commands/repository/ResolveAction.java
Tue Oct  7 02:07:18 2008
@@ -76,7 +76,8 @@
 
     public Object execute(final CommandContext context) throws Exception {
         assert context != null;
-
+        IO io = context.getIo();
+        
         assert artifactManager != null;
         ArtifactFactory factory = artifactManager.getArtifactFactory();
 
@@ -95,17 +96,8 @@
 
         ArtifactResolutionRequest request = new ArtifactResolutionRequest();
 
-        IO io = context.getIo();
-
-        //
-        // TODO: Update the AM API to use this as originating when artifact == null and artifact
dependencies != null
-        //
-
         if (transitive) {
             io.info("Resolving artifact (transitively): {}", artifact);
-
-            Artifact originating = factory.createArtifact("dummy", "dummy", "dummy", null,
"jar");
-            request.setArtifact(originating);
             request.setArtifactDependencies(Collections.singleton(artifact));
         }
         else {



Mime
View raw message