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

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

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