Examples of closeDir()


Examples of org.tmatesoft.svn.core.io.ISVNEditor.closeDir()

            Map<String, String> props = new HashMap<String, String>();
            props.put(Params.Svn.DBURLPROP, dbUrl);
            ISVNEditor editor = getEditor("Setting " + Params.Svn.DBURLPROP + " to " + dbUrl);
            editor.openRoot(-1);
            SvnUtils.modifyFileProps(editor, "/", props);
            editor.closeDir();
            SVNCommitInfo info = editor.closeEdit();
            if (Log.isDebugEnabled(Geonet.SVN_MANAGER))
                Log.debug(Geonet.SVN_MANAGER, "Committed " + dbUrl + " as property " + Params.Svn.DBURLPROP + ":" + info);
        } else {
            // get database URL from root of repository and check against dbUrl
View Full Code Here

Examples of org.tmatesoft.svn.core.io.ISVNEditor.closeDir()

                for (Iterator<String> it = task.ids.iterator(); it.hasNext(); ) {
                    String id = it.next();
                    commitMetadata(id, editor);
                    it.remove();
                }
                editor.closeDir(); // close the root directory.
                if (Log.isDebugEnabled(Geonet.SVN_MANAGER))
                    Log.debug(Geonet.SVN_MANAGER, "Committed changes to subversion repository for metadata ids " + task.ids);
            } catch (Exception e) {
                Log.error(Geonet.SVN_MANAGER, "Failed to commit changes to subversion repository for metadata ids " + task.ids);
                e.printStackTrace();
View Full Code Here

Examples of org.tmatesoft.svn.core.io.ISVNEditor.closeDir()

            // Create an id/ directory item in the repository
            editor.openRoot(-1);
            SvnUtils.addDir(editor, id);
            if (Log.isDebugEnabled(Geonet.SVN_MANAGER))
                Log.debug(Geonet.SVN_MANAGER, "Directory for metadata " + id + " was added");
            editor.closeDir();
            editor.closeEdit();
        } catch (SVNException svne) {
            editor.abortEdit();
            svne.printStackTrace();
            throw svne;
View Full Code Here

Examples of org.tmatesoft.svn.core.io.ISVNEditor.closeDir()

                    commitEditor.abortEdit();
                } catch (SVNException e) {}
                return SVNCommitInfo.NULL;
            }
            for (int i = 0; i < newPaths.size(); i++) {
                commitEditor.closeDir();
            }
            info = commitEditor.closeEdit();
        } finally {
            if (!changed || info == null) {
                try {
View Full Code Here

Examples of org.tmatesoft.svn.core.io.ISVNEditor.closeDir()

                    commitEditor.abortEdit();
                } catch (SVNException e) {}
                return SVNCommitInfo.NULL;
            }
            for (int i = 0; i < newPaths.size(); i++) {
                commitEditor.closeDir();
            }
            info = commitEditor.closeEdit();
        } finally {
            if (!changed || info == null) {
                try {
View Full Code Here

Examples of org.tmatesoft.svn.core.io.ISVNEditor.closeDir()

                commitEditor.changeFileProperty("", propName, propValue);
                commitEditor.closeFile("", null);
            } else {
                commitEditor.changeDirProperty(propName, propValue);
            }
            commitEditor.closeDir();
        } catch (SVNException svne) {
            commitEditor.abortEdit();
        }
        if (handler != null) {
            handler.handleProperty(url, new SVNPropertyData(propName, propValue, getOptions()));
View Full Code Here

Examples of org.tmatesoft.svn.core.io.ISVNEditor.closeDir()

           
        logger.fine("Now calling editor.addDir(" + dirPath + ", ...)");
        editor.addDir(dirPath, null, -1);
        for (int i = 0; i < dirs.length; i++)
          if (dirs[i] != null && dirs[i].length() > 0)
            editor.closeDir();

        editor.closeEdit();
       
    }
   
View Full Code Here

Examples of org.tmatesoft.svn.core.io.ISVNEditor.closeDir()

        }
        editor.applyTextDelta(filePath, null);
        SVNDeltaGenerator deltaGenerator = new SVNDeltaGenerator();
        String checksum = deltaGenerator.sendDelta(filePath, new ByteArrayInputStream(data), editor, true);
        editor.closeFile(filePath, checksum);
        editor.closeDir();
        editor.closeEdit();
    }

    static interface AuthManagerMapper
    {
View Full Code Here

Examples of org.tmatesoft.svn.core.io.ISVNEditor.closeDir()

                commitEditor.changeFileProperty("", propName, propValue);
                commitEditor.closeFile("", null);
            } else {
                commitEditor.changeDirProperty(propName, propValue);
            }
            commitEditor.closeDir();
        } catch (SVNException svne) {
            commitEditor.abortEdit();
        }
        if (handler != null) {
            handler.handleProperty(url, new SVNPropertyData(propName, propValue, getOptions()));
View Full Code Here

Examples of org.tmatesoft.svn.core.io.ISVNEditor.closeDir()

                    commitEditor.abortEdit();
                } catch (SVNException e) {}
                return SVNCommitInfo.NULL;
            }
            for (int i = 0; i < newPaths.size(); i++) {
                commitEditor.closeDir();
            }
            info = commitEditor.closeEdit();
        } finally {
            if (!changed || info == null) {
                try {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.