Author: snjeza
Date: 2012-01-30 17:03:42 -0500 (Mon, 30 Jan 2012)
New Revision: 38301
Modified:
trunk/runtime/plugins/org.jboss.tools.runtime.seam.detector/src/org/jboss/tools/runtime/handlers/SeamHandler.java
Log:
JBIDE-10749 Runtime detection should recognize Seam 2.3
Modified:
trunk/runtime/plugins/org.jboss.tools.runtime.seam.detector/src/org/jboss/tools/runtime/handlers/SeamHandler.java
===================================================================
---
trunk/runtime/plugins/org.jboss.tools.runtime.seam.detector/src/org/jboss/tools/runtime/handlers/SeamHandler.java 2012-01-30
21:22:01 UTC (rev 38300)
+++
trunk/runtime/plugins/org.jboss.tools.runtime.seam.detector/src/org/jboss/tools/runtime/handlers/SeamHandler.java 2012-01-30
22:03:42 UTC (rev 38301)
@@ -158,6 +158,10 @@
JarFile jar = new JarFile(jarFile);
Attributes attributes = jar.getManifest().getMainAttributes();
String version = attributes.getValue(seamVersionAttributeName);
+ if (version == null) {
+ // Seam 2.3
+ version = attributes.getValue("Implementation-Version");
+ }
return version;
} catch (IOException e) {
return null;
Show replies by date