dev@glassfish.java.net

Re: Flag Day 10/18: incompatible change: create-node-* --installdir

From: Vince Kraemer <vince.kraemer_at_oracle.com>
Date: Fri, 15 Oct 2010 11:24:54 -0700

Hi Joe,

I have to ask... why does this change need to be incompatible?

What prevents the command that gets the installdir argument from
checking the value that it got from the user for the two cases and doing
the right thing automagically for the user?

Case 1: i got a directory named glassfish that has the right siblings
(javadb,mq,bin,pkg)
Case 2: I got a directory that has the children: bin, glassfish, javadb,
mq and pkg...

vbk

Joe Di Pol wrote:
>
> On Monday Oct 18th I will be checking in a fix for:
>
> 13834 create-node-*: --installdir should be changed to top level GF
> directory
>
> This fix will break compatibility with previous builds for the
> create-node-* and update-node-* commands (as well as domain.xml).
>
> These commands support the "--installdir" parameter to specify
> the location of a GlassFish installation. Currently it must
> point to the lower "glassfish" directory, as in
> /opt/glassfish3/glassfish. But after my fix it must point to
> the upper "glassfish3" directory. Before the change:
>
> create-node-ssh --nodehost myhost --installdir
> /opt/glassfish3/glassfish n1
>
> after the change:
>
> create-node-ssh --nodehost myhost --installdir /opt/glassfish3 n1
>
> This change breaks compatibility with earlier builds. Previous
> domain.xml files won't work. Any scripts or tests that use the
> "--installdir" option may need to be changed to remove the trailing
> "glassfish".
>
> I will be updating the admin CLI dev tests, and will run those and
> quicklook before checking in.
>
> Apologies for the inconvenience, but better that we fix this now
> while we can.
>
> Joe
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>