这里是一个使用'link resource'的eclipse项目。但是如何在build.gradle中配置。这是我的配置,但是当我运行'gradle build'时。总是有'找不到课'的错误。为什么?如何解决它。
eclipse {
wtp {
facet {
facet name: 'jst.java', version: '1.7'
facet name: 'jst.web', version: '3.0'
}
}
project {
linkedResource name: 'zm_common', type: '2', location: 'D:/workspace/zm_common/src'
linkedResource name: 'zm_common_resources', type: '2', location: 'D:/workspace/zm_common/resources'
}
classpath {
file {
withXml {
def node = it.asNode()
node.appendNode('classpathentry', [kind: 'src', path: 'zm_common', exported: true])
node.appendNode('classpathentry', [kind: 'src', path: 'zm_common_resources', exported: true])
}
}
}
}