dev@glassfish.java.net

Re: 3rd party source build with dependencies

From: Bobby Bissett <Robert.Bissett_at_Sun.COM>
Date: Thu, 03 Dec 2009 10:54:13 -0500

On Dec 3, 2009, at 7:40 AM, Jane Young wrote:
> Have you tried the native build? Not sure if it's doable. At least
> there are links to download the tools. Looks like there are some
> manual steps like modifying the Makefile for mozilla and gecko
> environments. Can this be automated?
>
> Why do you need the Hudson job to debug? Can this be done on your
> local system?

There is no native build on mac, which is what I have. I have remote
access to an old (5.8?) solaris machine, but immediately ran into
troubles with make and couldn't find any answers. Side note:
apparently javahelp and jdic are no longer supported and we should not
use javahelp going forward unless someone wants to put me in charge of
it and give me time to fix it.

Rather than spend a week trying to figure out that one system and then
repeating the whole ordeal on the hudson machine with a different
configuration, I'd rather just do it once on the one server that *has*
to work. For the manual steps, I guess I can just store the modified
files in the source-build workspace and copy them into the jdic
download before building.

If we don't build jdic from source, javahelp will still build by
downloading the zip file it needs (this is what's happening now).
Technically, it downloads the windows version of the zip so, unless
the build machine is windows, we can't actually recreate exactly what
we're using now.

Here's the diff to start building jdic (and once it builds I'd need to
change the build file to actually use the jdic output):

hostname% svn diff javahelp.xml
Index: javahelp.xml
===================================================================
--- javahelp.xml (revision 34876)
+++ javahelp.xml (working copy)
@@ -57,7 +57,9 @@

    <target name="jdic.build" depends="jdic.checkout">
      <echo message="Attempting to build jdic. Keep your fingers
crossed." />
-
+ <ant antfile="${external.dir}/jdic/src/build.xml"
+ target="buildall"
+ inheritall="false"/>
    </target>

    <target name="jdic.checkout" depends="init">

We can always just give it a shot, right?

Thanks,
Bobby