HomeDocs
DocsCommunityTestimonialsUsersGitHubTwitterBlogJobsTermsPrivacyCookies
TermsPrivacyCookies
Hey! These docs are for version 2.10, which is no longer officially supported. Click here for the latest version, 2.15!


The javac Java source compiler.

Backend: <span style="color: purple"><code>pants.backend.experimental.java</code></span> Config section: <span style="color: purple"><code>[javac]</code></span>

## Basic options

<div style="color: purple"> <h3><code>args</code></h3> <code>--javac-args=&quot;[&lt;shell_str&gt;, &lt;shell_str&gt;, ...]&quot;</code><br> <code>PANTS_JAVAC_ARGS</code><br> </div> <div style="padding-left: 2em;"> <span style="color: green">default: <code>[]</code></span>

<br>

Global `javac` compiler flags, e.g. `--javac-args='-g -deprecation'`.

</div> <br>

## Advanced options

None

## Deprecated options

None