dev@glassfish.java.net

Re: lib/install/templates

From: Bill Shannon <bill.shannon_at_sun.com>
Date: Wed, 28 Mar 2007 16:16:18 -0700

Dinesh Patil wrote:
> This is the subtle difference documented on the glassfish build
> instructions.
>
> https://glassfish.dev.java.net/public/BuildGlassFish.html#maven_goals
> Goal Name
> Commonly used command
> Description
> bootstrap
> maven -Dmodules=admin bootstrap checkout build
> Dowload glassfish-image-SNAPSHOT.jar file and unzip the file under
> the ${glassfish.home}(Server Image) to build individual modules
> bootstrap-all
> maven checkout bootstrap-all build
> Install an empty glassfish image that only contains the binaries
> dependencies, then download individual binary dependencies and unzip
> them into ${glassfish.home} and builds all modules from Sources.
>
>

Interesting. Can't the behavior of "bootstrap" change based on whether
"modules" is
set to less than all the modules, or based on whether the workspace
contains less
than all the modules?

I guess the assumption is that, with bootstrap, some files will be
replaced as part
of the build so it doesn't matter if the snapshot contains old versions
of them,
but if you're building all modules you don't need any old versions of
the files
so it's better to get a clean build using bootstrap-all.