lundi 24 juillet 2017

Print the environment map for Gradle test task

With Java plugin test task in Gradle, how can I print the environment map for the JVM process which executes the tests.

test.doFirst {
        environment 'KAFKA_PORT', "${KAFKA_TCP_9902}"
        environment 'DB_PORT', "${MYSQL_TCP_3306}"
        // How to print the map of all environments set so far?
}

Aucun commentaire:

Enregistrer un commentaire