VirtualBox

Changeset 73315 in vbox


Ignore:
Timestamp:
Jul 23, 2018 11:28:20 AM (7 years ago)
Author:
vboxsync
Message:

Config.kmk: Deal with javac version 10: prints version to stdout (older versions used stderr), and dropped support for Java 1.5 source and target options.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r73313 r73315  
    27112711        $(VBOX_JAVA_HOME)/include/$(VBOX_MD_OS)
    27122712endif # !darwin
    2713 VBOX_JAVA_FIGURE_VERSION = $(shell $(1) -version 2>&1 > /dev/null \
     2713VBOX_JAVA_FIGURE_VERSION = $(shell $(1) -version 2>&1 \
    27142714        | $(SED_EXT) -n -e 's|^[^ ]* *\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*$(DOLLAR)|$$(expr \1 * 10000 + \2 * 100 + \3)|p' )
    27152715
     
    73817381 VBOX_JAVA_WS_OPTS ?= --add-modules java.xml.ws
    73827382endif
    7383 VBOX_JAVAC_OPTS   = -encoding UTF-8 -source 1.5 -target 1.5 -Xlint:unchecked
     7383if defined(VBOX_JAVA_VERSION) && $(VBOX_JAVA_VERSION) >= 100000
     7384 VBOX_JAVAC_OPTS   = -encoding UTF-8 -source 6 -target 6 -Xlint:unchecked
     7385else
     7386 VBOX_JAVAC_OPTS   = -encoding UTF-8 -source 1.5 -target 1.5 -Xlint:unchecked
     7387endif
    73847388VBOX_JAVADOC_OPTS = -encoding UTF-8
    73857389
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette