Gradle JavaExec Task Type: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 16: Line 16:
     main = 'myPackage.MyMainClass'
     main = 'myPackage.MyMainClass'
     args 'something somethingelse'
     args 'something somethingelse'
    environment "LD_LIBRARY_PATH"
    systemProperties


}
}
</syntaxhighlight>
</syntaxhighlight>
=Configuration=
==<tt>environment</tt>==
==<tt>systemProperties</tt>==

Revision as of 19:11, 3 February 2021

External

Internal

Overview

Executes a Java application as a child process. To get details on the actual java command line, execute Gradle with -i command line option.

task codeGen(type: JavaExec) {
    jvmArgs = ['-Xmx12g']
    classpath = configurations.runtimeClasspath
    main = 'myPackage.MyMainClass'
    args 'something somethingelse'
    environment "LD_LIBRARY_PATH"
    systemProperties 

}

Configuration

environment

systemProperties