Community
Participate
Working Groups
Currently, the DirectoryCleaner deletes all files in a directory. This causes a lot of troule with versioning systems that store version information in the same directory as the versioned files (CVS, SVN). As the versioning information is deleted, all files are considered completely new, causing a lot of overhead in the repository. An exclude property (similar to ant) can solve this issue. Consider putting .CVS and .svn in the defaults.
This has been implemented for 4.3.1 as requested by Markus Völter, but still has to be merged into EMFT MWE.
Created attachment 124277 [details] 4.3.1 directorycleaner patch There is a bug in the implementation of DirectoryCleaner in oAW 4.3.1. The component doesn't work if the target directory contains subdirectories which in turn contain files or folders to be ignored. The attached patch fixes the problem.
Fixed in HEAD of oAW 4.x and in MWE.
It would probably make sense to reuse the DirectoryCleaner logic in the TMF Xtext class org.eclipse.xtext.GeneratorFacade#cleanFolder(String). Then it would also work with SVN as well as delete empty folders.
Good idea. I have implemented that.
Verified bugs closed