Author: xcoulon
Date: 2011-10-12 18:05:58 -0400 (Wed, 12 Oct 2011)
New Revision: 35584
Modified:
trunk/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/builder/JaxrsMetamodelBuilder.java
Log:
OPEN - issue JBIDE-9894: JAX-RS Builder: Errors running builder 'JAX-RS Builder'
on project 'openshift-helloworld'.
https://issues.jboss.org/browse/JBIDE-9894
Modified:
trunk/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/builder/JaxrsMetamodelBuilder.java
===================================================================
---
trunk/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/builder/JaxrsMetamodelBuilder.java 2011-10-12
20:41:33 UTC (rev 35583)
+++
trunk/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/builder/JaxrsMetamodelBuilder.java 2011-10-12
22:05:58 UTC (rev 35584)
@@ -145,6 +145,7 @@
public final boolean visit(final IResourceDelta delta) throws CoreException {
IResource resource = delta.getResource();
if (resource.getType() == IResource.FILE &&
getProject().getFullPath().isPrefixOf(resource.getFullPath())
+ && resource.getFullPath().getFileExtension() != null
&& resource.getFullPath().getFileExtension().equals("java")) {
Metamodel metamodel = Metamodel.get(resource.getProject());
if (metamodel == null) {