Langtools
Building via CLI
To build Langtools via the command-line interface (InfraBuild) perform the below actions:
cd ~/sources//jdk8_tl/common/makefiles make clean langtools NEWBUILD=true &> langtoolsInfrabuild.log
Configurating and building in Eclipse
Change the build.properties for Langtools by doing the following:
cd ~/sources/jdk8_tl/langtools/
Add below settings to the build.properties file:
boot.java.home = /usr/lib/jvm/java-7-openjdk-amd64 boot.javac.source = 7 boot.javac.target = 7
Copy the build.properties file from the ~/sources/jdk8_tl/langtools/make/ folder to the ~/sources/jdk8_tl/langtools/make/eclipse/langtools folder.
In addition for Langtools, change the following two tags at the top of the file from
<project name="langtools-netbeans" default="build" basedir="../../.."> <property name="langtools.properties" location="make/netbeans/langtools/nbproject/private/langtools.properties"/>
to
<project name="langtools-eclipse" default="build" basedir="../../.."> <property name="langtools.properties" location="make/eclipse/langtools/ecproject/private/langtools.properties"/>
Ensure the build.properties in the /home/openjdk/sources/jdk8_tl/langtools/make/ folder has the below line in it otherwise add/update it:
boot.java.home = usr/lib/jvm/java-7-openjdk-amd64
Build the project via the right-mouse click Run As > Ant Build option and wait for it to finish.
Build messages: logs
- A successful run of the build results in the output of the following log messages:
langtoolsInfraBuild.log
Build output: artefacts
The general Langtools build artefacts are a tree of directories as shown below and can be found at ~/sources/jdk8_tl/build/linux-x86_64-normal-server-release/langtools:
btclasses classes dist gensrc genstubs
Comments