UseSWIG fails for java when interface file removes a class
I'm using UseSWIG to generate output for java. My foo.i file includes code like:
typedef bar string; %template(bar) string;
Swig generates output files foo.java and bar.java;
If I then edit the foo.i file to remove bar and rebuild, javac compilation will fail because bar.java still exists and the native declarations in foo.java don't.
A solution would be to add a command to the custom command that cleans swig_outdir after it's been created, since everything in that dir will be regenerated if the target executes.