quickstart.kotlin.src.main.groovy.org.gradle.Person.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-api Show documentation
Show all versions of gradle-api Show documentation
Gradle 6.9.1 API redistribution.
package org.gradle
class Person {
String name
def Person() {
getClass().getResourceAsStream('/resource.txt').withStream {InputStream str ->
name = str.text.trim()
}
getClass().getResourceAsStream('/script.groovy').withStream {InputStream str ->
def shell = new GroovyShell()
shell.person = this
shell.evaluate(str.text)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy