On Sat, 8 Aug 2026 03:08:27 GMT, Nir Lisker <[email protected]> wrote:

>> Yes, that's my understanding as well.
>
> @AnirvanSarkar Try this branch if you're able to and see if it answers your 
> needs. Thanks.

@nlisker  

Thanks for the changes! 

I noticed one behavior change around overriding OpenJFX project properties from 
the command line using `-P`.

For example, with the following in `gradle-local.properties`:


CONF = Release


**Running:**


./gradlew -PCONF=DebugNative properties | grep CONF


**Expected:**

CONF: DebugNative
CONF: DebugNative


**Current output:**

CONF: Release
CONF: Release


I believe it would be preferable for the command-line value 
(`-PCONF=DebugNative`) to take precedence over the value specified in 
`gradle-local.properties`, to be consistent with the existing behavior.

One possible way to preserve this behavior could be to make `localProps` global 
and have `defineProperty(String name, String defaultValue)` delegate to 
`defineProperty(String name, Properties props, String defaultValue)`, passing 
`localProps`.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/2240#issuecomment-5240714024

Reply via email to