Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Purpose of Glassfish's "generated" directory

I need to better understand what goes into the "generated" directory inside a domain folder of Glassfish. I can see that deployed applications store some resource files in there, (xmls, properties, manifests...) but don't really understand why. Google was not very useful this time. Could someone point me to some relevant documentation? Thanks.

Edit: I need to know these details because i want/need to delete this folder when restarting the server.

like image 796
sebi Avatar asked Jun 11 '13 09:06

sebi


2 Answers

After experimenting a bit i found that i could delete all of the following directories inside the GF domain and have them created when GF starts:

applications
autodeploy
generated
logs
osgi-cache

The first 2, of course, if you redeploy your applications. I usually delete these in development after a GF crash.

To complement sebi's answer, make sure your server is stopped when you delete those directories. Doing this while it's running may damage the domain you are working with.

like image 171
Victor Ferrucy Avatar answered Oct 02 '22 17:10

Victor Ferrucy


After experimenting a bit i found that i could delete all of the following directories inside the GF domain and have them created when GF starts:

  • applications
  • autodeploy
  • generated
  • logs
  • osgi-cache

The first 2, of course, if you redeploy your applications. I usually delete these in development after a GF crash.

like image 24
sebi Avatar answered Oct 02 '22 15:10

sebi