JBIDE-16507 - not using agreed upon temp folder during publish

JBIDE-16507 - not using agreed upon temp file

JBIDE-16507 - add test case