From: Jean-Marc V. <jm...@us...> - 2004-08-29 07:11:13
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/ant In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27986/src/org/exist/ant Modified Files: XMLDBStoreTask.java Log Message: bug when specifying the subcollections="true" attribute on a filesystem where the separatorChar is not '/'. Index: XMLDBStoreTask.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/ant/XMLDBStoreTask.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** XMLDBStoreTask.java 25 May 2004 13:00:54 -0000 1.3 --- XMLDBStoreTask.java 29 Aug 2004 07:11:04 -0000 1.4 *************** *** 100,103 **** --- 100,105 ---- if (p > -1) { relDir = files[i].substring(0, p); + // It's necessary to do this translation on Windows, and possibly MacOS: + relDir = relDir.replace(File.separatorChar, '/'); if (createSubcollections && (prevDir == null || (!relDir.equals(prevDir)))) { collection = mkcol(root, baseURI, "/db" + path, relDir); |