Revision 41861

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.file/org.gvsig.fmap.dal.file.shp/src/main/java/org/gvsig/fmap/dal/store/shp/SHPStoreProvider.java
508 508
                        resourceCloseRequest();
509 509

  
510 510
                        if (!shpParams.getDBFFile().delete()) {
511
                            throw new IOException("Can't delete dbf '"+FilenameUtils.getBaseName(shpParams.getDBFFileName())+"' file to replace with the new dbf. The new dbf is in temporary file '"+str_base+"'");
511
                            logger.debug("Can't delete dbf file '"+shpParams.getDBFFile()+"'.");
512
                            throw new IOException("Can't delete dbf '"+FilenameUtils.getBaseName(shpParams.getDBFFileName())+"' file to replace with the new dbf.\nThe new dbf is in temporary file '"+str_base+"'");
512 513
                        }
513 514
                        if (!shpParams.getSHPFile().delete()) {
514
                            throw new IOException("Can't delete shp '"+FilenameUtils.getBaseName(shpParams.getSHPFileName())+"' file to replace with the new shp. The new shp is in temporary file '"+str_base+"'");
515
                            logger.debug("Can't delete dbf file '"+shpParams.getSHPFile()+"'.");
516
                            throw new IOException("Can't delete shp '"+FilenameUtils.getBaseName(shpParams.getSHPFileName())+"' file to replace with the new shp.\nThe new shp is in temporary file '"+str_base+"'");
515 517
                        }
516 518
                        if (!shpParams.getSHXFile().delete()) {
517
                            throw new IOException("Can't delete shx '"+FilenameUtils.getBaseName(shpParams.getSHXFileName())+"' file to replace with the new shx. The new shx is in temporary file '"+str_base+"'");
519
                            logger.debug("Can't delete dbf file '"+shpParams.getSHXFile()+"'.");
520
                            throw new IOException("Can't delete shx '"+FilenameUtils.getBaseName(shpParams.getSHXFileName())+"' file to replace with the new shx.\nThe new shx is in temporary file '"+str_base+"'");
518 521
                        }
519 522
                        FileUtils.moveFile(
520 523
                                tmpParams.getDBFFile(),

Also available in: Unified diff