Improve the API of the generic export
Ignore the exported directory in DebugBuild
Add a partial (skeleton only) implementation of Java exporting