Moved temporary files to CMakeFiles directories for Java and J2E targets