Ignore:
Timestamp:
10/14/20 07:07:13 (2 years ago)
Author:
Mark Evenson
Message:

build: make building and running a local ABCL easier

(From a suggestion by Slyrus)

Replace use of abcl.javac.{source,target} with the "magic"
ant.build.javac,{source,target} properties.

Explicitly configure 'abcl.release' target to use openjdk8 compilation.

The Java compilation options are perhaps underspecified in terms of
the target JVM in order to support a developer who simply wants to
compile and run locally with least hassles.

When preparing ABCL binaries for wider distribution, the values of the
abcl.build.target.javac and abcl.build.source.java become more
important.

The 'abcl.properties.autoconfigure.*' targets use the
ci/create-build-properties.bash script to set these options for
various openjdk platforms.

  • * *

build: build the wrapper with the release

N.b. the wrapper is a local artifact, not supposed to be shipped with
the release.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/ci/create-abcl-properties.bash

    r15378 r15407  
    1919    6|openjdk6)
    2020        options="-d64 -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=1g -XX:+UseConcMarkSweepGC"
    21         abcl_javac_target=1.6
    22   abcl_javac_source=1.6
     21        ant_build_javac_target=1.6
     22  ant_build_javac_source=1.6
    2323        ;;
    2424    7|openjdk7)
    2525  options="-d64 -XX:+UseG1GC"
    26         abcl_javac_target=1.7
    27   abcl_javac_source=1.7
     26        ant_build_javac_target=1.7
     27  ant_build_javac_source=1.7
    2828  ;;
    2929    8|openjdk8)
    3030        options="-XX:+UseG1GC -XX:+AggressiveOpts -XX:CompileThreshold=10"
    31   abcl_javac_target=1.8
    32   abcl_javac_source=1.8
     31  ant_build_javac_target=1.8
     32  ant_build_javac_source=1.8
    3333        ;;
    3434    11|openjdk11)
    3535        options="-XX:CompileThreshold=10"
    36   abcl_javac_target=11
    37   abcl_javac_source=1.8
     36  ant_build_javac_target=11
     37  ant_build_javac_source=1.8
    3838        ;;
    3939    # untested: weakly unsupported
    4040    12|openjdk12)
    4141        options="-XX:CompileThreshold=10"
    42   abcl_javac_target=12
    43   abcl_javac_source=1.8
     42  ant_build_javac_target=12
     43  ant_build_javac_source=1.8
    4444        ;;
    4545    13|openjdk13)
    4646        options="-XX:CompileThreshold=10"
    47   abcl_javac_target=13
    48   abcl_javac_source=1.8
     47  ant_build_javac_target=13
     48  ant_build_javac_source=1.8
    4949        ;;
    5050    14|openjdk14)
    5151        options="-XX:CompileThreshold=10 ${zgc}"
    52   abcl_javac_target=14
    53   abcl_javac_source=1.8
     52  ant_build_javac_target=14
     53  ant_build_javac_source=1.8
    5454        ;;
    5555    15|openjdk15)
    5656        options="-XX:CompileThreshold=10 ${zgc}"
    57   abcl_javac_target=15
    58   abcl_javac_source=1.8
     57  ant_build_javac_target=15
     58  ant_build_javac_source=1.8
    5959        ;;
    6060esac
     
    6363    | awk -F = \
    6464    -v options="$options" \
    65     -v target="$abcl_javac_target" \
    66     -v source="$abcl_javac_source" \
     65    -v target="$ant_build_javac_target" \
     66    -v source="$ant_build_javac_source" \
    6767       -f ${DIR}/create-abcl-properties.awk \
    6868  > ${root}/abcl.properties
Note: See TracChangeset for help on using the changeset viewer.