@Override protected void preUpdate(ModuleLocation module, File local) throws SVNException, IOException { listener.getLogger().println("Reverting " + local + " ignoreExternals: " + module.isIgnoreExternalsOption()); final SVNWCClient svnwc = manager.getWCClient(); svnwc.setIgnoreExternals(module.isIgnoreExternalsOption()); svnwc.doRevert(new File[]{local.getCanonicalFile()}, getSvnDepth(module.getDepthOption()), null); } }
@Override protected void preUpdate(ModuleLocation module, File local) throws SVNException, IOException { listener.getLogger().println("Reverting " + local + " ignoreExternals: " + module.isIgnoreExternalsOption()); final SVNWCClient svnwc = manager.getWCClient(); svnwc.setIgnoreExternals(module.isIgnoreExternalsOption()); svnwc.doRevert(new File[]{local.getCanonicalFile()}, getSvnDepth(module.getDepthOption()), null); } }
@Override protected void preUpdate(ModuleLocation module, File local) throws SVNException, IOException { listener.getLogger().println("Reverting " + local + " to depth " + module.getDepthOption() + " with ignoreExternals: " + module.isIgnoreExternalsOption()); final SVNWCClient svnwc = manager.getWCClient(); svnwc.setIgnoreExternals(module.isIgnoreExternalsOption()); svnwc.doRevert(new File[]{local.getCanonicalFile()}, module.getSvnDepthForRevert(), null); } }
/** * Returns an instance of the {@link SVNWCClient} class. * * <p> * If it's the first time this method is being called the object is * created, initialized and then returned. Further calls to this * method will get the same object instantiated at that moment of * the first call. <b>SVNClientManager</b> does not reinstantiate * its <b>SVN</b>*<b>Client</b> objects. * * @return an <b>SVNWCClient</b> instance */ public SVNWCClient getWCClient() { if (myWCClient == null) { myWCClient = new SVNWCClient(this, myOptions); myWCClient.setEventHandler(myEventHandler); myWCClient.setDebugLog(getDebugLog()); myWCClient.setIgnoreExternals(myIsIgnoreExternals); } return myWCClient; }
/** * Returns an instance of the {@link SVNWCClient} class. * * <p> * If it's the first time this method is being called the object is * created, initialized and then returned. Further calls to this * method will get the same object instantiated at that moment of * the first call. <b>SVNClientManager</b> does not reinstantiate * its <b>SVN</b>*<b>Client</b> objects. * * @return an <b>SVNWCClient</b> instance */ public SVNWCClient getWCClient() { if (myWCClient == null) { myWCClient = new SVNWCClient(this, myOptions); myWCClient.setEventHandler(myEventHandler); myWCClient.setDebugLog(getDebugLog()); myWCClient.setIgnoreExternals(myIsIgnoreExternals); } return myWCClient; }
myWCClient.setIgnoreExternals(myIsIgnoreExternals);
myWCClient.setIgnoreExternals(myIsIgnoreExternals);
myWCClient.setIgnoreExternals(myIsIgnoreExternals);