NBM project properties window: evaluate javac.release properties#9323
NBM project properties window: evaluate javac.release properties#9323mbien wants to merge 1 commit intoapache:masterfrom
Conversation
NBM project properties window now evaluates the javac.release property
to get its value.
this should allow something like:
javac.release=${default.javac.release}
(assuming it can be resolved)
|
I think this makes sense, at least as an immediate fix. Aligns more with changes you made at https://github.com/apache/netbeans/blob/master/apisupport/apisupport.ant/src/org/netbeans/modules/apisupport/project/NbModuleProject.java#L693 Not sure if that could easily be just in one place? The project properties are constructed with a reference to What didn't work trying to set a default? The build, the editor, the UI ?? The default properties fallback seems a bit suspect in all this https://github.com/apache/netbeans/blob/master/apisupport/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/customizer/SingleModuleProperties.java#L133 |
the ant evaluator itself also sets defaults at if we wanted to set a default for NB, where would we put it? build.properties isn't in the context of the evaluator. and running
|
|
I guess perhaps considering putting Anyway, that's not one to experiment with in freeze week. This seems a good change for now. |
|
we can move it to NB 31. Since without being able to set the default somehow, this has no real use case. |
NBM project properties window now evaluates the
javac.releaseproperty to get its value.this should allow something like:
javac.release=${default.javac.release}in the
[module]/nbproject/project.propertiesfile (assuming it can be resolved)tested:
added
default.javac.release=18tonbbuild/user.build.propertiesand updated a module like described above. This got picked up by both the build and the project properties window UI.this might be the easiest way to set a default value for modules. I tried to find a way to allow removal of the property entirely (as signal to use the default), but I couldn't get that to work.