我用gradle制作了wtp eclipse项目.当我运行'gradle eclipse'时,它会生成eclipse项目,但是没有一个文件'.settings/org.eclipse.core.resources.prefs'
该文件包含项目字符集的信息
eclipse.preferences.version=1
encoding/<project>=utf-8
Run Code Online (Sandbox Code Playgroud)
这是我的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'
}
}
Run Code Online (Sandbox Code Playgroud)
我怎样才能制作这个文件?
请帮忙.
谢谢.
gradle ×1