eclipse / buildship

The Eclipse Plug-ins for Gradle project.
533 stars 171 forks source link

Ignore wst if not using web tools platform #1096

Open quaff opened 3 years ago

quaff commented 3 years ago

I'm using Eclipse IDE for Java Developers instead of Eclipse IDE for Enterprise Java and Web Developers I hope action Refresh Gradle Project stop generating unused buildCommand and nature to .project

        <buildCommand>
            <name>org.eclipse.wst.common.project.facet.core.builder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.wst.validation.validationbuilder</name>
            <arguments>
            </arguments>
        </buildCommand>

        <nature>org.eclipse.wst.common.project.facet.core.nature</nature>

and unused classpathentry to .classpath

<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>

        <attributes>
            <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
        </attributes>
quaff commented 3 years ago

https://github.com/eclipse/buildship/blob/35d01caad3ab023fdd9fdf4a1b9e9c738bff7fd0/org.eclipse.buildship.core/src/main/java/org/eclipse/buildship/core/internal/workspace/DefaultWorkspaceOperations.java#L367-L369

I'm using a vanilla Eclipse IDE for Java Developers, It contains bundle org.eclipse.wst.common.core, more bundle detections should be added here.