我用gradle製作了wtp eclipse項目。 當我運行「gradle這個日食」,它使Eclipse項目,但沒有一個文件」 .settings/org.eclipse.core.resources.prefs'用gradle製作eclipse wtp項目
該文件對項目的字符集信息來源
eclipse.preferences.version=1
encoding/<project>=utf-8
這裏是我的gradle eclipse插件設置。
eclipse {
classpath {
downloadSources=true
}
jdt {
file {
withProperties {
properties -> properties.setProperty("encoding//src/main/java", "utf-8")
properties.setProperty("encoding//src/main/resources", "utf-8")
properties.setProperty("encoding//src/test/java", "utf-8")
properties.setProperty("encoding//src/test/resources", "utf-8")
}
}
}
wtp {
component {
contextPath = '/'
}
facet {
facets = facets
//facet name: 'jst.web', version: '2.5'
facet name: 'jst.java', version: '6.0'
}
}
project {
natures 'com.google.gwt.eclipse.core.gwtNature'
natures 'org.springframework.ide.eclipse.core.springnature'
buildCommand 'org.springframework.ide.eclipse.core.springbuilder'
}
}
我該如何製作這個文件?
請幫忙。
謝謝。
謝謝!這非常有幫助。 – 2013-04-30 14:43:53