making eclipse wtp project with gradle
gradle
Solution
There is a workaround mentioned (by me) on this JIRA issue
eclipseJdt << {
File f = file('.settings/org.eclipse.core.resources.prefs')
f.write('eclipse.preferences.version=1\n')
f.append('encoding/<project>=utf-8')
}
Problem
I have made wtp eclipse project with gradle. When I run 'gradle eclipse', it makes eclipse project but there is not one file '.settings/org.eclipse.core.resources.prefs' That file has infomation for project charset ``` eclipse.preferences.version=1 encoding/<project>=utf-8 ``` And here is my gradle eclipse plugin setting. ``` 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' } } ``` How can I make this file? Please help. Thanks.