dev@glassfish.java.net

Re: GlassFish developer scripts

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Mon, 07 Jun 2010 14:41:16 -0700

Yamini,

If you never reinstall GF, won't you miss any updates to anything else in the GF
structure, like the domain.xml?

thanks,
-marina

Yamini K B wrote:
> Hi,
>
> I would like to share some scripts which I'm sure would help those who
> are new to GlassFish development.
>
> When I first started trying out changes to the code, I used to forget to
> copy the built jar into the installation modules folder at times and
> would end up wasting a lot of time in trying to figure out what went
> wrong. And then, I started to link the concerned jars. However, whenever
> I updated and built the complete workspace (which I do almost everyday),
> I had to erase the exiting installation and unzip the distribution again
> which I found very annoying.
>
> Unfortunately, Justin's scripts (see mail thread here
> <https://glassfish.dev.java.net/servlets/ReadMsg?list=dev&msgNo=17159>)
> didn't work for me, so I wrote my own scripts.
>
> 1. reinstall.sh: My first attempt was a simple script to parse 'svn
> update' output to identify changed modules and copy the updated jars
> into the installation folder. This script requires some pre-steps. (I
> don't actually use this script anymore!)
> 2. linkme.sh: My next script creates links only for specific module jar(s)
> 3. linkall.sh: After that, I went a step further and thought why not
> link all jars.
>
> So now, my installation is always up to date no matter how many times I
> update/build my workspace or modules :)
>
> Regards,
> -Yamini
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net