When I run this task:
task tmpTask << {
project.properties.each {println " $it"}
}
I see:
org.gradle.java.home=/usr/lib/jvm/java-6-oracle
But how to use this variable? I've tried both:
task tmpTask << {
println org.gradle.java.home
println project.properties.org.gradle.java.home
}
But none of this works. First print gives error:
Could not find property 'org' on task ':tmpTask'.
while second fails with:
Cannot get property 'gradle' on null object
Could not find method leftShift() for arguments [build_3vobal41blt05kb5pvio1jbbm$_run_closure12@33fabf91] on task ':tmpTask' of type org.gradle.api.DefaultTask
– Perales