RFR: 6889: Provide build script for making it easier to build JMC [v2]

Schalli1987 github.com+11866488+Schalli1987 at openjdk.java.net
Sat Sep 12 18:49:30 UTC 2020


On Wed, 2 Sep 2020 14:40:01 GMT, Marcus Hirt <hirt at openjdk.org> wrote:

>> We should ensure that the script works on both Mac and Linux. Check $OSTYPE. If it starts with darwin, then MacOS X.
>> 
>> One thing that I see beginners struggling with is running the built product. Perhaps adding a --run which simply launch
>> the latest build? And perhaps launch with -vm $JAVA_HOME/bin added?
>> For Mac:
>> target/products/org.openjdk.jmc/macosx/cocoa/x86_64/JDK\ Mission\ Control.app/Contents/MacOS/jmc -vm $JAVA_HOME/bin
>> 
>> For Linux:
>> target/products/org.openjdk.jmc/linux/gtk/x86_64/jmc -vm $JAVA_HOME/bin
>
> Hi @Schalli1987! Just wanted to check if you need any assistance with bringing this one home.

Sorry it's been a while...
Finally I added OSTYPE checks (can someone with a MAC confirm that its working?) and some preconditions for java and
maven. Also a --run option was added that can be called after --packageJmc.
Since JAVA_HOME is no longer set in JDK 11 and above, I'd use the system executable java instead.

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

PR: https://git.openjdk.java.net/jmc/pull/100


More information about the jmc-dev mailing list