Generated files should be safely deletable (1)
It is desirable that all generated files should be deletable without negative consequences. For example the following wildcards should be safe to delete:
include/* lib/*.generated.str lib-refactoring/*.generated.str
Currently, if these files are deleted the project no longer builds. The solution to getting the project to build again is to manually invoke the sdf2imp Ant task and then run the full build again. The sdf2imp task recreates all of the automatically generated files. To work around this a change to the build order is required.
Related to Spoofax/275, Spoofax/208, Spoofax/171, Spoofax/141, Spoofax/63, Spoofax/188, Spoofax/577, Spoofax/573.
Submitted by Vlad Vergu on 6 December 2012 at 14:05
Issue Log
Progress update
r25755 partially implements a solution. Aclean
task was added that does a more thorough job. It should become available in build.generated.xml after the first rebuild.
Progress update:
r25758 resolves the previous build issue and links the Project > Clean menu to the mentioned
clean
task. This connection unfortunately does not become available for existing projects.Issue remaining:
Add selective re-generation of files, such as the launcher for cleaning, project file, etc. This will allow updating older projects and would permit including
build.generated.xml
in the cleanup.
This is solved now right? Regenerating files (through wizards) is a separate issue.
Fixed except for https://yellowgrass.org/issue/Spoofax/603
Log in to post comments