From: <st...@us...> - 2011-06-22 14:39:47
|
Revision: 8650 http://smartfrog.svn.sourceforge.net/smartfrog/?rev=8650&view=rev Author: steve_l Date: 2011-06-22 14:39:37 +0000 (Wed, 22 Jun 2011) Log Message: ----------- SFOS-1613 <sfrun> not working as expected Modified Paths: -------------- trunk/core/extras/ant/src/org/smartfrog/tools/ant/DeployingTaskBase.java Modified: trunk/core/extras/ant/src/org/smartfrog/tools/ant/DeployingTaskBase.java =================================================================== --- trunk/core/extras/ant/src/org/smartfrog/tools/ant/DeployingTaskBase.java 2011-06-22 14:39:07 UTC (rev 8649) +++ trunk/core/extras/ant/src/org/smartfrog/tools/ant/DeployingTaskBase.java 2011-06-22 14:39:37 UTC (rev 8650) @@ -288,14 +288,11 @@ text = owner.getProject().replaceProperties(unexpandedText); //create a temp file File tempfile = FileUtils.getFileUtils().createTempFile("deploy", - ".sf", null); + ".sf", null, !owner.isDebug(), true); //mark for cleanup later if (owner.isDebug()) { owner.log("Application temporary files is " + tempfile); owner.log("This is not deleted in debug mode"); - } else { - //no debugging, kill the file after we exit ant. - tempfile.deleteOnExit(); } owner.log("Saving to temporary file " + tempfile, Project.MSG_VERBOSE); owner.log(text, Project.MSG_VERBOSE); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |