|
From: <fu...@us...> - 2007-12-03 22:23:23
|
Revision: 550
http://cishell.svn.sourceforge.net/cishell/?rev=550&view=rev
Author: fugu13
Date: 2007-12-03 14:23:19 -0800 (Mon, 03 Dec 2007)
Log Message:
-----------
Fix bug that occurs when copying multiple directories. Neighboring directories had been copied as nesting directories, because the variable holding the directory to copy to was overwritten each time a subdirectory to copy was encountered.
Modified Paths:
--------------
trunk/templates/org.cishell.templates/src/org/cishell/templates/staticexecutable/StaticExecutableAlgorithmFactory.java
Modified: trunk/templates/org.cishell.templates/src/org/cishell/templates/staticexecutable/StaticExecutableAlgorithmFactory.java
===================================================================
--- trunk/templates/org.cishell.templates/src/org/cishell/templates/staticexecutable/StaticExecutableAlgorithmFactory.java 2007-11-14 17:23:59 UTC (rev 549)
+++ trunk/templates/org.cishell.templates/src/org/cishell/templates/staticexecutable/StaticExecutableAlgorithmFactory.java 2007-12-03 22:23:19 UTC (rev 550)
@@ -168,9 +168,9 @@
if (path.endsWith("/")) {
String dirName = getName(path);
- dir = new File(dir.getPath() + File.separator + dirName);
- dir.mkdirs();
- copyDir(dir, path);
+ File subDirectory = new File(dir.getPath() + File.separator + dirName);
+ subDirectory.mkdirs();
+ copyDir(subDirectory, path);
} else {
copyFile(dir, path);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|