Author: dgolovin
Date: 2007-10-29 19:48:35 -0400 (Mon, 29 Oct 2007)
New Revision: 4572
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/AntCopyUtils.java
Log:
http://jira.jboss.org/jira/browse/JBIDE-1141 is fixed.
AntCopyUtils.copyFileToFolder() now compares canonical file path before copying.
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/AntCopyUtils.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/AntCopyUtils.java 2007-10-29
22:49:28 UTC (rev 4571)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/AntCopyUtils.java 2007-10-29
23:48:35 UTC (rev 4572)
@@ -174,7 +174,7 @@
public static void copyFileToFolder(File source, File dest, FilterSetCollection
filterSetCollection, boolean override ) {
try {
File destFile = new File(dest,source.getName());
- if(!source.equals(destFile)) {
+ if(!source.getCanonicalPath().equals(destFile.getCanonicalPath())) {
FileUtils.getFileUtils().copyFile(source, destFile ,filterSetCollection,override);
}
} catch (IOException e) {