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

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -