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

On 6 December 2012 at 14:05 Vlad Vergu tagged @vvergu

On 6 December 2012 at 19:02 Vlad Vergu commented:

Progress update

r25755 partially implements a solution . A clean task was added that does a more thorough job. It should become available in build.generated.xml after the first rebuild.


On 6 December 2012 at 20:22 Vlad Vergu commented:

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.


On 10 December 2012 at 21:38 Vlad Vergu removed tag @vvergu

On 10 December 2012 at 21:38 Vlad Vergu tagged !vvergu

On 11 December 2012 at 11:48 Gabriël Konat commented:

This is solved now right? Regenerating files (through wizards) is a separate issue.


On 8 January 2013 at 13:26 Eelco Visser tagged build

On 8 January 2013 at 13:44 Eelco Visser commented:

Fixed except for https://yellowgrass.org/issue/Spoofax/603


On 8 January 2013 at 13:44 Eelco Visser closed this issue.

On 8 January 2013 at 17:31 Gabriël Konat tagged 1.1

Log in to post comments