Sample code snippet for Gradle

tasks.withType(Test) {

	systemProperty 'logger.root.dir', "${project.buildDir}"
	systemProperty 'takipi.application.name', project.name
	systemProperty 'takipi.resources.dir', System.getenv('Home')
	systemProperty 'takipi.deployment.name', project.name + "." + System.getenv('BUILD_NUMBER')

	jvmArgs "-agentpath:/opt/takipi/lib/libTakipiAgent.so"

}

See also

Jenkins