Lines 109-114
Link Here
|
109 |
|
109 |
|
110 |
public static class J2eePlatformImplImpl extends J2eePlatformImpl2 { |
110 |
public static class J2eePlatformImplImpl extends J2eePlatformImpl2 { |
111 |
|
111 |
|
|
|
112 |
private static String EMBEDDABLE_EJB = "client/jboss-ejb3-embedded-standalone.jar"; |
113 |
|
112 |
private static final Set<Type> MODULE_TYPES = new HashSet<Type>(); |
114 |
private static final Set<Type> MODULE_TYPES = new HashSet<Type>(); |
113 |
static { |
115 |
static { |
114 |
MODULE_TYPES.add(Type.EAR); |
116 |
MODULE_TYPES.add(Type.EAR); |
Lines 256-262
Link Here
|
256 |
} |
258 |
} |
257 |
|
259 |
|
258 |
public boolean isToolSupported(String toolName) { |
260 |
public boolean isToolSupported(String toolName) { |
259 |
|
261 |
if (J2eePlatform.TOOL_EMBEDDABLE_EJB.equals(toolName)) { |
|
|
262 |
File jar = new File(properties.getRootDir(), EMBEDDABLE_EJB); |
263 |
return jar.exists() && jar.isFile() && jar.canRead(); |
264 |
} |
260 |
if (J2eePlatform.TOOL_JSR109.equals(toolName)) { |
265 |
if (J2eePlatform.TOOL_JSR109.equals(toolName)) { |
261 |
if (containsJaxWsLibraries()) |
266 |
if (containsJaxWsLibraries()) |
262 |
return true; |
267 |
return true; |
Lines 377-382
Link Here
|
377 |
} |
382 |
} |
378 |
|
383 |
|
379 |
public File[] getToolClasspathEntries(String toolName) { |
384 |
public File[] getToolClasspathEntries(String toolName) { |
|
|
385 |
if (J2eePlatform.TOOL_EMBEDDABLE_EJB.equals(toolName)) { |
386 |
return new File[]{new File(properties.getRootDir(), EMBEDDABLE_EJB)}; |
387 |
} |
380 |
if (J2eePlatform.TOOL_WSIMPORT.equals(toolName)) { |
388 |
if (J2eePlatform.TOOL_WSIMPORT.equals(toolName)) { |
381 |
return getJaxWsLibraries(); |
389 |
return getJaxWsLibraries(); |
382 |
} |
390 |
} |