api / org.gradle.plugins.ear.descriptor / DeploymentDescriptor / readFrom

readFrom

abstract fun readFrom(reader: Reader): DeploymentDescriptor

Reads the deployment descriptor from a reader.

Parameters

reader - The reader to read the deployment descriptor from

Return
this

abstract fun readFrom(path: Any): Boolean

Reads the deployment descriptor from a file. The paths are resolved as defined by org.gradle.api.Project#file(Object)

Parameters

path - The path of the file to read the deployment descriptor from

Return
whether the descriptor could be read from the given path