Hi,

Am 06.05.11 14:11, schrieb Sean Van Buggenum:
Hi Rene,

regarding your email about dependencies, and cleaning up the references to zelix and junit;

A good idea; however, it's not quite there yet.
I am currently trying to google what the correct syntax would be ....
or rather, the syntax is correct, but the 'classpath' of javaexec expects a FileCollection, not a String,
and fails for this reason.
Sorry I missed that. Configuration itself implements FileCollection, so "configurations.zkm" is just enough. I am not aware of zkm, so it was just a guess that the classpath attribute just needs the classpath of zkm itself. If zkm needs your own classes in the classpath as well you can simply add them by:

task obfuscate(dependsOn: classes) << {
javaexec { // as per http://mrhaki.blogspot.com/2010/09/gradle-goodness-run-java-application.html
   main = 'ZKM'
classpath = configurations.zkm + sourceSets.main.classes // just use '+' here
   args "$projectDir/script.txt"
   jvmArgs "-DSaveAllDir=$buildDir/obfuscated-classes-extra"
}
}

--
-----------------------
regards René

rene groeschke
http://www.breskeby.com
@breskeby

Reply via email to