CODETOOLS-7902083: Simplify building jtreg
Jonathan Gibbons
jonathan.gibbons at oracle.com
Mon Dec 18 01:29:11 UTC 2017
Mani,
I know of no issues with respect to asmtools. When I build jtreg with
this script, all the self-tests pass. If you encounter issues with
asmtools, please let me know.
-- Jon
On 12/17/17 1:46 PM, Mani Sarkar wrote:
>
> Hi Jon,
>
> I remember that the versions before this release also included
> asmtools during the build process, but we found lately that the final
> artifact did not actually contain the asmtools commands inside the
> final jtreg artifact.
>
> Has this been resolved in the current version, I will soon be building
> it, and would like to be able to use jtreg features that make use of
> asmtools.
>
> Thanks.
>
> Cheers,
> Mani
>
>
> On Sun, 17 Dec 2017 21:04 Maurizio Cimadamore,
> <maurizio.cimadamore at oracle.com
> <mailto:maurizio.cimadamore at oracle.com>> wrote:
>
> Looks great - thanks for doing this.
>
> If there's interest, I could also put some effort in order to
> integrate
> the plugins build into the system. In principle, it should be
> doable, by
> adding a bunch of env variables (to point at the IDEA runtime jar). Of
> course that would be an optional part of the build.
>
> Cheers
> Maurizio
>
>
> On 14/12/17 00:32, Jonathan Gibbons wrote:
> > This is for folk who are interested in building jtreg from source.
> >
> > As some of you have (rightfully) commented over the past years,
> jtreg
> > has not been an easy tool to build from source.
> >
> > And, as some of you may have noticed, there has been some amount of
> > activity over the past weeks and months to address this issue. This
> > work has been led by Erik Helin (thanks, Erik!) and we're now
> getting
> > to the point where we can show what we have been working towards.
> >
> > The core of the work to build jtreg is still the Makefiles as
> before,
> > although as was recently noted, we've been simplifying the
> > specification of the dependencies.
> >
> > Separately, Erik has helped provide updates to the way that some of
> > the Code Tools dependencies can be built.
> >
> > Building on all that work, we can now get to the next stage, to
> > provide a script that will download binaries for some components
> > (JUnit, TestNG) and will download and build source for other
> > components (AsmTools, JCov, JTHarness), for which there are no
> > official binaries.
> >
> > To run the script, you just need to have Ant and a suitable
> "java" on
> > your path, and to specify the location of an install of JDK 1.8
> as an
> > argument to the script. wget is used to download files, which honors
> > proxy settings for those that need to use them. The script is
> > deliberately fairly simple, and suitable for use in a CI system.
> >
> > You can see a webrev for the script at
> > http://cr.openjdk.java.net/~jjg/7902083/webrev.00/
> <http://cr.openjdk.java.net/%7Ejjg/7902083/webrev.00/>
> >
> > Example of use:
> >
> > $ which ant
> > /opt/ant/1.9.4/bin/ant
> > $ which java
> > /opt/jdk/1.8.0/bin/java
> > $ sh make/build-all.sh /opt/jdk/1.8.0
> > ... build output ...
> > $ ls build/images/jtreg
> > bin COPYRIGHT doc legal lib LICENSE README release
> > $
> >
> >
> > Once this settles down a bit, I'll update the public docs on the
> jtreg
> > web pages.
> >
> > -- Jon
> >
> >
>
> --
>
> @theNeomatrix369 <http://twitter.com/theNeomatrix369> | Blog
> <http://neomatrix369.wordpress.com/> | @adoptopenjdk | Dev communities
>
> Meet-a-Project - MutabilityDetector
> <https://github.com/MutabilityDetector> | Github
> <https://github.com/neomatrix369> | Slideshare
> <https://www.slideshare.net/neomatrix369> |LinkedIn
> <http://uk.linkedin.com/pub/mani-sarkar/71/a77/39b>
>
> Come to Devoxx UK 2018:http://www.devoxx.co.uk/
>
>
> Don't chase success, rather aim for "Excellence", and success will
> come chasing after you!
>
More information about the code-tools-dev
mailing list