Michael Fortin wrote:
Is there a way to do the ant equivalent of <property environment="env"/>
Not a Gradle way. You could just use System.getenv(), e.g.
System.getenv().each { key, value ->
project.setProperty("env$key", value)
}
On Nov 15, 2008, at 1:57 PM, Michael Fortin wrote:
I think I answered my own question. This works well.
println "System Properties:"
System.properties.each {
println " $it"
}
println "Project Properties:"
project.properties.each {
println " $it"
}
println "Plugin Properties:"
project.plugins.each {
println " plugin: $it"
it.properties.each {
println " $it"
}
}
On Nov 15, 2008, at 9:02 AM, Michael Fortin wrote:
Hi,
I want to dump of the properties so I created a task like:
createTask('properties-dump') {
println "System Properties:"
System.properties.each {
println " $it"
}
println "Project Properties:"
org.gradle.project.each {
println " $it"
}
}
the system properties works but the project properties does not
obviously. How would I go about dumping the values of the local
scope, project scope, list plugins, env and any other values of
interest.
thx
gradle newbie
~mike
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email