build.gradle - Gradle javaexec task is ignoring jvmargs -
i trying run app using gradle javaexec task. however, jvmargs , args not passed command execution. why?
task runargodev(type: javaexec) { main = "org.app.argodevrunner" classpath = configurations.testruntime project.ext.jvmargs = ['-xdock:name=argo', '-xmx512m', '-dfile.encoding=utf-8', '-dapple.awt.textantialiasing=on', '-ea'] project.ext.args = ['-initparameter', 'implicit-scrollpane-support=true'] }
above code doesn't have desired effect because sets properties on project object, instead of configuring task. correct jvmargs = ... , args = .... (it's possible omit =, [, , ].)
Comments
Post a Comment