seba--/sugarj — pull request #41 by bobd91 (2013-05-09 15:33:20+00:00)
Title: Write non-LanguageLib generated files to separate directory

Hi Sebastian,

separating out the non-LanguageLib file to a different directiory was straightforward as you thought. All of the model, .dep, .gen, .str, .sdf files are stored in .sugarjcache/gen but that is easy to change if you would prefer them elsewhere. The only files that get written to bin are those generated by LanguageLibs, and these files are only written on a build.

The only slight problem was when building after a parse, The parse doesn't write the LanguageLib generated files but the result says that it is up to date. During a build the result says the file is up to date so the LanguageLib files are never generated.

I added an extra flag to .dep files to say if a file would have generated LanguageLib files but didn't as it was only a parse. A file with this flag set would say that it is up to date when parsing but not up to date when building.

Bob