===================================================================== Found a 27 line (139 tokens) duplication in the following files: Starting at line 241 of /home/tom/data/cf-dashboard/working/server/src/org/cougaar/tools/server/server/RemoteFileSystemImpl.java Starting at line 167 of /home/tom/data/cf-dashboard/working/server/src/org/cougaar/tools/server/server/RemoteFileSystemImpl.java throw new IllegalArgumentException( "Filename must start with \"./\", not \""+filename+"\""); } else if (filename.indexOf("..") > 0) { throw new IllegalArgumentException( "Filename can not contain \"..\": \""+filename+"\""); } else if (filename.indexOf("\\") > 0) { throw new IllegalArgumentException( "Filename must use the \"/\" path separator, not \"\\\": \""+ filename+"\""); } else if (filename.endsWith("/")) { throw new IllegalArgumentException( "Filename can not end in \"/\": \""+filename+"\""); } // other checks? Security manager? // fix the filename path to use the system path-separator and be // relative to the "tempPath" String sysFilename = filename; if (File.separatorChar != '/') { sysFilename = sysFilename.replace('/', File.separatorChar); } sysFilename = tempPath + sysFilename.substring(2); // open the file File f = new File(sysFilename); // make sure that the file is not a directory, etc