batch-file,visual-studio-2012,cmd,build-script
Found the solution, as noted by Jimmy, one needs to remove the environment variable %comspec% as that is a shortcut to CMD.exe. However, just removing "%comspec" /k will cause a CMD instance to open and then exit after a second. I also previously tried the call function which created a...
JavaExec forks a new process so the script classpath is gone. You need to configure it: task x(type:JavaExec) { main = "com.ochafik.lang.jnaerator.JNAerator" classpath = buildscript.configurations.classpath } ...