[
https://issues.jboss.org/browse/JBIDE-17078?page=com.atlassian.jira.plugi...
]
Xavier Coulon commented on JBIDE-17078:
---------------------------------------
[~akazakov],
Thanks for your reply.
Yes, I add/remove the JAX-RS nature, which adds/removes the JAX-RS builder in the
project.
Here's the content of the {{.classpath}} file in the project *before* and *after*
adding the JAX-RS support:
{code}
<projectDescription>
<name>org.jboss.tools.ws.jaxrs.tests.sampleproject2</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
{code}
{code}
<projectDescription>
<name>org.jboss.tools.ws.jaxrs.tests.sampleproject2</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.jboss.tools.ws.jaxrs.metamodelBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
<nature>org.jboss.tools.ws.jaxrs.nature</nature>
</natures>
</projectDescription>
{code}
As you can see, there's already a WST Validation and it remains in the last position
when the JAX-RS builder is added (IIRC, this was a requirement). But what's missing is
an event to trigger the validation after the nature is added, because there's actually
no resource being modified (except the {{.classpath}} file)
Do you have any idea how to resolve that ?
Thanks
JAX-RS Problems doesn't appears after the JAX-RS Support is
activated
---------------------------------------------------------------------
Key: JBIDE-17078
URL:
https://issues.jboss.org/browse/JBIDE-17078
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: webservices
Affects Versions: 4.2.0.Beta1
Reporter: Radoslav RĂ¡bara
Assignee: Xavier Coulon
Fix For: 4.2.0.Beta3
JAX-RS validation runs when there is a change in the project with JAX-RS Support.
However, it doesn't run right after the JAX-RS Support is enabled.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)