1. Currently, "ant clean-app-server" deletes all files within the existing server and unzips a clean bundle in its place.
This has the side effect of deleting all properties and configuration files including:
data/* - Hypersonic database, Filesystem Files / Images
2. It might also be useful to keep server configurations. For example, when using Tomcat:
(It might be better to implement improvement #2 as another LPS ticket.)
ant clean-app-server can be updated to keep the existing files like LIFERAY_HOME/portal-ext.properties, system-ext.properties the Hypersonic database, files / images, etc. It might also be a good idea to make this behavior configurable via a property.