views:

88

answers:

1

I have a large project which I am compiling with GWT. During this process GWT generates some cache files in C:\Documents and Settings\[UserDir]\Local Settings\Temp\. For example:

gwt60627byte-cache (86,321 KB)
gwt60628byte-cache (4,445 KB)
gwt60629byte-cache (53,773 KB)
gwt60696byte-cache (8,111 KB)
gwt60697byte-cache (572,777 KB)

I know GWT’s performance isn’t that great, and there are not a lot of things to do speed it up, but my project is on drive D: which is faster than C:, so I want to move these cache files on the same drive.

But that is not the primary reason. I am also concerned about the size of these files reported to the free space I have left on C: (which ain't much). I am not doing a full project compile yet, but when I do I don't think the HDD will handle it.

How can I have these cache files generated in another location?

Thank you.

A: 

The GWT compiler has a -workDir option that defaults to the system temp directory. You can change that to have the cache files written somewhere else.

Isaac Truett
This is the "by the book" solution. Also, a workaround that performed well for my setup was to change the TEMP environment variable as Mirko Nasato suggested in his comment.
dpb