Revision 39139
branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/project/DefaultProject.java | ||
---|---|---|
54 | 54 |
import java.util.Map; |
55 | 55 |
import java.util.regex.Pattern; |
56 | 56 |
|
57 |
import org.apache.commons.io.FilenameUtils; |
|
57 | 58 |
import org.cresques.cts.IProjection; |
58 | 59 |
import org.slf4j.Logger; |
59 | 60 |
import org.slf4j.LoggerFactory; |
... | ... | |
643 | 644 |
if (file == null) { |
644 | 645 |
return null; |
645 | 646 |
} |
647 |
|
|
646 | 648 |
boolean isDir = false; |
647 | 649 |
// isDir = file.isDirectory(); |
648 | 650 |
isDir = rootFolder.isDirectory(); |
649 | 651 |
String basePath = rootFolder.getAbsolutePath(); |
650 |
String targetPath = file.getPath(); |
|
652 |
|
|
653 |
String targetPath = FilenameUtils.normalize(file.getPath()); |
|
654 |
|
|
651 | 655 |
String pathSeparator = File.separator; |
652 | 656 |
// We need the -1 argument to split to make sure we get a trailing |
653 | 657 |
// "" token if the base ends in the path separator and is therefore |
Also available in: Unified diff