For the question of sharing compiled files it would be good if the destination directory of the compiled files (ie: dist directory) could possibly be a link.
In this case, concerning the dist folder:
-
Only create it if it does not exist before any new compilation.
-
Only delete its content if it exists before any new compilation.
Besides, I wonder if deleting its contents really makes sense. Maybe deleting only the compiled file is enough.
It should be noted that having a symbolic link as a dist folder is possible for a Java project in Eclipse.
For the question of sharing compiled files it would be good if the destination directory of the compiled files (ie: dist directory) could possibly be a link.
In this case, concerning the dist folder:
Only create it if it does not exist before any new compilation.
Only delete its content if it exists before any new compilation.
Besides, I wonder if deleting its contents really makes sense. Maybe deleting only the compiled file is enough.
It should be noted that having a symbolic link as a dist folder is possible for a Java project in Eclipse.