https://glassfish.dev.java.net/issues/show_bug.cgi?id=12026
Requirement SYNC-007 says:
Provide a mechanism to exclude user created files from being removed by
cleaning process.
During normal synchronization, only a few subdirectories of the
instance directory are synchronized. In particular, config, applications,
generated (as a side effect of applications), lib, and docroot.
During full synchronization (--syncfull flag), *all* subdirectories of
the instance directory were being removed.
To satisfy the above requirement, I propose changing full synchronization
to only remove the same directories from the list above that normal
synchronization will synchronize. That means that any *other* directory
will be left alone. If you want to have user created files that aren't
touched during synchronization, create a (e.g.) "userdata" directory
under the instance directory and put your files there.
Note also that this means the logs directory will survive full synchronization,
which is probably a good thing.
Does that seem ok?