myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bom...@apache.org
Subject svn commit: r940179 - /myfaces/tobago/branches/tobago-1.0.x/tobago-tool/maven-theme-plugin/src/main/java/org/apache/myfaces/tobago/maven/plugin/UnPackThemeMojo.java
Date Sun, 02 May 2010 09:36:13 GMT
Author: bommel
Date: Sun May  2 09:36:12 2010
New Revision: 940179

URL: http://svn.apache.org/viewvc?rev=940179&view=rev
Log:
only checking jar file artifacts

Modified:
    myfaces/tobago/branches/tobago-1.0.x/tobago-tool/maven-theme-plugin/src/main/java/org/apache/myfaces/tobago/maven/plugin/UnPackThemeMojo.java

Modified: myfaces/tobago/branches/tobago-1.0.x/tobago-tool/maven-theme-plugin/src/main/java/org/apache/myfaces/tobago/maven/plugin/UnPackThemeMojo.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/tobago-tool/maven-theme-plugin/src/main/java/org/apache/myfaces/tobago/maven/plugin/UnPackThemeMojo.java?rev=940179&r1=940178&r2=940179&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/tobago-tool/maven-theme-plugin/src/main/java/org/apache/myfaces/tobago/maven/plugin/UnPackThemeMojo.java
(original)
+++ myfaces/tobago/branches/tobago-1.0.x/tobago-tool/maven-theme-plugin/src/main/java/org/apache/myfaces/tobago/maven/plugin/UnPackThemeMojo.java
Sun May  2 09:36:12 2010
@@ -110,11 +110,11 @@ public class UnPackThemeMojo extends Abs
       }
       Artifact artifact = (Artifact) artifacts.next();
       getLog().debug("Expanding theme "+ artifact);
+      File file = artifact.getFile();
+      if (Artifact.SCOPE_COMPILE.equals(artifact.getScope()) && file.isFile()
+          && "jar".equals(artifact.getType()) && findThemeDescriptor(file))
{
 
-      if (Artifact.SCOPE_COMPILE.equals(artifact.getScope())
-          && "jar".equals(artifact.getType()) && findThemeDescriptor(artifact.getFile()))
{
-
-        String name = artifact.getFile().getName();
+        String name = file.getName();
         getLog().debug("Expanding theme "+ name);
         File tempLocation = new File(workDirectory, name.substring(0, name.length() - 4));
         boolean process = false;
@@ -125,7 +125,6 @@ public class UnPackThemeMojo extends Abs
           process = true;
         }
         if (process) {
-          File file = artifact.getFile();
           try {
             unpack(file, tempLocation);
             String[] fileNames = getThemeFiles(tempLocation);
@@ -140,7 +139,7 @@ public class UnPackThemeMojo extends Abs
               }
             }
           } catch (NoSuchArchiverException e) {
-            this.getLog().info("Skip unpacking dependency file with unknown extension: "
+ file.getPath());
+            getLog().info("Skip unpacking dependency file with unknown extension: " + file.getPath());
           }
         }
       }



Mime
View raw message