Revision 8653

View differences:

trunk/extensions/extCAD/src/com/iver/cit/gvsig/ExportTo.java
712 712
		IndexedShpDriver drv = new IndexedShpDriver();
713 713
		if (!fileShp.exists()) {
714 714
			fileShp.createNewFile();
715
			File newFileSHX=new File(fileShp.getAbsolutePath().replaceAll(".shp",".shx"));
715
			File newFileSHX=new File(fileShp.getAbsolutePath().replaceAll("[.]shp",".shx"));
716 716
			newFileSHX.createNewFile();
717
			File newFileDBF=new File(fileShp.getAbsolutePath().replaceAll(".shp",".dbf"));
717
			File newFileDBF=new File(fileShp.getAbsolutePath().replaceAll("[.]shp",".dbf"));
718 718
			newFileDBF.createNewFile();
719 719
		}
720 720
		drv.open(fileShp);

Also available in: Unified diff