geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r941563 - /geronimo/server/trunk/framework/buildsupport/geronimo-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/geronimo/server/InstallerMojoSupport.java
Date Thu, 06 May 2010 02:14:29 GMT
Author: gawor
Date: Thu May  6 02:14:29 2010
New Revision: 941563

URL: http://svn.apache.org/viewvc?rev=941563&view=rev
Log:
look geronimo-main.jar instead of karaf.jar

Modified:
    geronimo/server/trunk/framework/buildsupport/geronimo-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/geronimo/server/InstallerMojoSupport.java

Modified: geronimo/server/trunk/framework/buildsupport/geronimo-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/geronimo/server/InstallerMojoSupport.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/buildsupport/geronimo-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/geronimo/server/InstallerMojoSupport.java?rev=941563&r1=941562&r2=941563&view=diff
==============================================================================
--- geronimo/server/trunk/framework/buildsupport/geronimo-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/geronimo/server/InstallerMojoSupport.java
(original)
+++ geronimo/server/trunk/framework/buildsupport/geronimo-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/geronimo/server/InstallerMojoSupport.java
Thu May  6 02:14:29 2010
@@ -123,8 +123,8 @@ public abstract class InstallerMojoSuppo
             Enumeration n = zipFile.entries();
             while (n.hasMoreElements()) {
                 ZipEntry entry = (ZipEntry)n.nextElement();
-                // look for lib/karaf.jar under a single directory                     
-                if (entry.getName().endsWith("lib/karaf.jar") && entry.getName().split("/").length
== 3) {
+                // look for lib/geronimo-main.jar under a single directory              
      
+                if (entry.getName().endsWith("lib/geronimo-main.jar") && entry.getName().split("/").length
== 3) {
                     File file = new File(installDirectory, entry.getName());
                     dir = file.getParentFile().getParentFile();
                     break;
@@ -134,7 +134,7 @@ public abstract class InstallerMojoSuppo
             zipFile.close();
         }
         catch (IOException e) {
-            throw new MojoExecutionException("Failed to determine geronimoHome while scanning
archive for 'lib/karaf.jar'", e);
+            throw new MojoExecutionException("Failed to determine geronimoHome while scanning
archive for 'lib/geronimo-main.jar'", e);
         }
 
         if (dir == null) {
@@ -153,9 +153,9 @@ public abstract class InstallerMojoSuppo
                 geronimoHome = geronimoHome.getCanonicalFile();
                 
                 // Quick sanity check
-                File file = new File(geronimoHome, "lib/karaf.jar");
+                File file = new File(geronimoHome, "lib/geronimo-main.jar");
                 if (!file.exists()) {
-                    throw new MojoExecutionException("When geronimoHome is set, it must point
to a directory that contains 'lib/karaf.jar'");
+                    throw new MojoExecutionException("When geronimoHome is set, it must point
to a directory that contains 'lib/geronimo-main.jar'");
                 }
                 log.info("Using pre-installed assembly: " + geronimoHome);
 



Mime
View raw message