When I run this task:
task tmpTask << { project.properties.each {println \" $it\"} }
I see:
org.gradle.java.home=/u
project.properties is a Map
Map
So you can use
project.properties['org.gradle.java.home']
You can also use the property() method (but that looks in additional locations):
project.property('org.gradle.java.home')