geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From de...@apache.org
Subject svn commit: r810827 - /geronimo/devtools/eclipse-plugin/branches/2.1.5/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/GeronimoServerRuntimeTargetHandler.java
Date Thu, 03 Sep 2009 08:53:48 GMT
Author: delos
Date: Thu Sep  3 08:53:48 2009
New Revision: 810827

URL: http://svn.apache.org/viewvc?rev=810827&view=rev
Log:
GERONIMODEVTOOLS-579 java specs are not included into G server runtime by default

Modified:
    geronimo/devtools/eclipse-plugin/branches/2.1.5/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/GeronimoServerRuntimeTargetHandler.java

Modified: geronimo/devtools/eclipse-plugin/branches/2.1.5/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/GeronimoServerRuntimeTargetHandler.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.1.5/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/GeronimoServerRuntimeTargetHandler.java?rev=810827&r1=810826&r2=810827&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.1.5/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/GeronimoServerRuntimeTargetHandler.java
(original)
+++ geronimo/devtools/eclipse-plugin/branches/2.1.5/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/GeronimoServerRuntimeTargetHandler.java
Thu Sep  3 08:53:48 2009
@@ -41,8 +41,10 @@
         }
         else if (version.equals("2.1")) {
             return Messages.target21runtime;
+        }else if (version.equals("2.2")) {
+            return Messages.target22runtime;
         }
-        return Messages.target21runtime;
+        return Messages.target22runtime;
     }
 
     /* (non-Javadoc)
@@ -119,7 +121,25 @@
                 addLibraryEntries(list, myfacesSpec.toFile(),  true);
                 addLibraryEntries(list, myfacesImplSpec.toFile(),  true);
                 addLibraryEntries(list, jdbcSpec.toFile(),     true);
-            }
+            }if (version.startsWith("2.2")) {
+           	 //TODO: review list here when server 2.2 is ready
+           	 IPath javaMailSpec = runtime.getLocation().append("repository/org/apache/geronimo/javamail/geronimo-javamail_1.4_mail/");
+           	 IPath jaxbApiSpec  = runtime.getLocation().append("repository/javax/xml/bind/jaxb-api/");
+           	 IPath jabxImplSpec = runtime.getLocation().append("repository/com/sun/xml/bind/jaxb-impl/");
+           	 IPath jaxwsApiSpec = runtime.getLocation().append("repository/org/apache/axis2/axis2-jaxws-api/");
+           	 IPath jstlSpec     = runtime.getLocation().append("repository/jstl/jstl/");
+           	 IPath myfacesSpec  = runtime.getLocation().append("repository/org/apache/myfaces/core/myfaces-api/");
+           	 IPath myfacesImplSpec  = runtime.getLocation().append("repository/org/apache/myfaces/core/myfaces-impl/");
+           	 IPath jdbcSpec     = runtime.getLocation().append("repository/org/apache/geronimo/framework/geronimo-jdbc/");
+           	 addLibraryEntries(list, javaMailSpec.toFile(), true);
+           	 addLibraryEntries(list, jaxbApiSpec.toFile(),  true);
+           	 addLibraryEntries(list, jabxImplSpec.toFile(), true);
+           	 addLibraryEntries(list, jaxwsApiSpec.toFile(), true);
+           	 addLibraryEntries(list, jstlSpec.toFile(),     true);
+           	 addLibraryEntries(list, myfacesSpec.toFile(),  true);
+           	 addLibraryEntries(list, myfacesImplSpec.toFile(),  true);
+           	 addLibraryEntries(list, jdbcSpec.toFile(),     true);
+           }
         }
 
         return(IClasspathEntry[])list.toArray(new IClasspathEntry[list.size()]);



Mime
View raw message