dev@glassfish.java.net

Re: [GFv3] No domain1 dir in glassfish.zip

From: Sahoo <Sahoo_at_Sun.COM>
Date: Thu, 23 Jul 2009 10:21:07 +0530

Snjezana Sevo-Zenzerovic wrote:
> Removing the domain directory from the staging area will work, but
> this also means that build will need to recreate the domain each time
> distributions module is built and that's something we originally
> wanted to avoid for incremental builds. So, other option would be to
> look for the presence of the default domain directory and skip the
> domain creation step in that scenario.

This optimisation can cause problems. Imagine a user updates the
workspace and now create-domain produces different set of files (let's
say a different domain.xml). Because of the above optimization, we won't
run create-domain and hence would end up using old files.

Sahoo