mulesoft / mule-tooling-incubator

Mule Tooling Incubator Projects
GNU General Public License v2.0
3 stars 4 forks source link

Gradle extension keeps adding name nodes to mule-project.xml #27

Closed sohrab- closed 9 years ago

sohrab- commented 9 years ago

When using Anypoint Gradle Extension (1.0.0.201410031957), every time I save the build.gradle file, it adds another duplicate <name /> node to the mule-project.xml file.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<mule-project xmlns="http://www.mulesoft.com/tooling/project" runtimeId="org.mule.tooling.server.3.5.2.ee" schemaVersion="3.5.0.0">
    <name>esb-service-example-v1</name>
    <name>esb-service-example-v1</name>
    <name>esb-service-example-v1</name>
</mule-project>

Work-around: Open mule-project.xml file in the studio and save it.

sohrab- commented 9 years ago

Found the root cause. It was in mule-gradle-plugin and not the Eclipse tooling.

Submitted pull request: https://github.com/mulesoft-labs/mule-gradle-plugin/pull/31