ikvmnet / ikvm

A Java Virtual Machine and Bytecode-to-IL Converter for .NET
Other
1.28k stars 121 forks source link

Load IKVM.Properties from RuntimeHost Configuration #597

Closed AliveDevil closed 1 month ago

AliveDevil commented 2 months ago

Allows for specifying system properties like java.net.preferIPv4Stack before JVM is initialized when consuming IKVM as a runtime library.

Usage:

<ItemGroup>
    <RuntimeHostConfigurationOption Include="IKVM.Properties" Value="java.net.preferIPv4Stack" />
    <RuntimeHostConfigurationOption Include="java.net.preferIPv4Stack" Value="False" />
</ItemGroup>

IKVM.Properties is semicolon separated.

wasabii commented 1 month ago

I might change this around to just have it all inside one comma separated option before release.

IKVM.Properties: java.net.preferIPv4Stack=False;prop=value;etc=foo

Worried about potential for overlap.