geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r417530 - /geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerRuntimeTargetHandler.java
Date Tue, 27 Jun 2006 17:20:20 GMT
Author: sppatel
Date: Tue Jun 27 10:20:20 2006
New Revision: 417530

URL: http://svn.apache.org/viewvc?rev=417530&view=rev
Log:
quickfix to be able to target little-g

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

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerRuntimeTargetHandler.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerRuntimeTargetHandler.java?rev=417530&r1=417529&r2=417530&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerRuntimeTargetHandler.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerRuntimeTargetHandler.java
Tue Jun 27 10:20:20 2006
@@ -60,7 +60,15 @@
 			addLibraryEntries(list, specPath.toFile(), false);
 		} else if(version.equals("1.1")) {
 			IPath specPath = runtime.getLocation().append("repository/org/apache/geronimo/specs/geronimo-j2ee_1.4_spec/1.1/geronimo-j2ee_1.4_spec-1.1.jar");
-			list.add(JavaCore.newLibraryEntry(specPath, null, null));
+			//hack to add servlet/jsp spec jars to little G
+			if(!specPath.toFile().exists()) {
+				IPath servletSpec =runtime.getLocation().append("repository/org/apache/geronimo/specs/geronimo-servlet_2.4_spec/1.0.1/geronimo-servlet_2.4_spec-1.0.1.jar");
+				IPath jspSpec = runtime.getLocation().append("repository/org/apache/geronimo/specs/geronimo-jsp_2.0_spec/1.0.1/geronimo-jsp_2.0_spec-1.0.1.jar");
+				list.add(JavaCore.newLibraryEntry(servletSpec, null, null));
+				list.add(JavaCore.newLibraryEntry(jspSpec, null, null));
+			} else {
+				list.add(JavaCore.newLibraryEntry(specPath, null, null));
+			}
 		}
 		
 		return (IClasspathEntry[])list.toArray(new IClasspathEntry[list.size()]);



Mime
View raw message