api / org.gradle.plugins.ide.eclipse.model / EclipseClasspath / file

file

open fun file(closure: Closure<Any>): Unit

Enables advanced configuration like tinkering with the output XML or affecting the way that the contents of an existing .classpath file is merged with Gradle build information. The object passed to the whenMerged{} and beforeMerged{} closures is of type Classpath.

See EclipseProject for an example.

open fun file(action: Action<in XmlFileContentMerger>): Unit

Enables advanced configuration like tinkering with the output XML or affecting the way that the contents of an existing .classpath file is merged with Gradle build information. The object passed to the whenMerged{} and beforeMerged{} closures is of type Classpath.

See EclipseProject for an example.

Since
3.5