dev@glassfish.java.net

strange behavior for a script

From: Vince Kraemer <vince.kraemer_at_oracle.com>
Date: Thu, 01 Aug 2013 13:26:11 -0700

Hi all,

I have a web app that is directory deployed onto GF 4.

It has an index.html file at its root.

If I run this script...

cat >>
/Users/vkraemer/NetBeansProjects/WebApplication59/build/web/index.html
<< EOI
AAAAAA
EOI
curl http://localhost:8080/WebApplication59/index.html
cat >>
/Users/vkraemer/NetBeansProjects/WebApplication59/build/web/index.html
<< EOI
BBBBBB
EOI
curl http://localhost:8080/WebApplication59/index.html
cat >>
/Users/vkraemer/NetBeansProjects/WebApplication59/build/web/index.html
<< EOI
CCCCCCC
EOI
curl http://localhost:8080/WebApplication59/index.html
cat >>
/Users/vkraemer/NetBeansProjects/WebApplication59/build/web/index.html
<< EOI
DDDDDDD
EOI
curl http://localhost:8080/WebApplication59/index.html

  ...

I expect to see the output of curl change each time... but it seems like
it only changes the first time.

It looks like there is a buffer that prevents GF from serving the
modified file.

Bug? Feature?

I am looking at this due to an NB bug:
https://netbeans.org/bugzilla/show_bug.cgi?id=231510&GoAheadAndLogIn=1

Thanks,
vbk