Skip to content
Discussion options

You must be logged in to vote

Hey! In NetBeans, there isn’t a single public “one-shot” API that returns the effective compileOnSave for every project type. The setting can come from project metadata (nb-configuration.xml / project.properties) and also be overridden by build tooling (Maven/Gradle/Ant).

For Maven projects, NetBeans generally relies on the maven-compiler-plugin and its own project configuration; the effective value is usually stored in nb-configuration.xml or nbactions.xml rather than being computed from the POM. For Ant-based projects, it’s typically a project property. For Gradle, it’s mostly controlled by the Gradle tooling, not NetBeans.

If you need a reliable check, the practical approach is:

  1. Detec…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@priyanahata
Comment options

Answer selected by priyanahata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants