Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > subclipse commit: rev 23 - trunk/svnClientAdapter/src/main/org/tigris/subversion/svnclientadapter

subclipse
Discussion topic

Back to topic list

subclipse commit: rev 23 - trunk/svnClientAdapter/src/main/org/tigris/subversion/svnclientadapter

Author cchab
Full name chabanois cédric
Date 2003-07-01 13:17:43 PDT
Message Author: cchab
Date: Tue Jul 1 15:17:41 2003
New Revision: 23

Modified:
   trunk/svnClientAdapt​er/src/main/org/tigr​is/subversion/svncli​entadapter/SVNClient​Adapter.java
Log:
SVNClientAdapter.remove now takes an array of url or files
SVNAnt changed occordingly

Modified: trunk/svnClientAdapt​er/src/main/org/tigr​is/subversion/svncli​entadapter/SVNClient​Adapter.java
====================​====================​====================​==================
--- trunk/svnClientAdapt​er/src/main/org/tigr​is/subversion/svncli​entadapter/SVNClient​Adapter.java (original)
+++ trunk/svnClientAdapt​er/src/main/org/tigr​is/subversion/svncli​entadapter/SVNClient​Adapter.java Tue Jul 1 15:17:41 2003
@@ -467,15 +467,20 @@
      * @param message
      * @throws ClientException
      */
- public void remove(URL url, String message) throws ClientException {
+ public void remove(URL url[], String message) throws ClientException {
         try {
             notificationHandler.​setCommand(ISVNNotif​yListener.COMMAND_RE​MOVE);
 
- String src = urlToSVNUrl(url);
- notificationHandler.​setCommandLine(
- "delete -m \""+message+"\" "+src);
-
- svnClient.remove(new String[] { src },message,false);
+ String commandLine = "delete -m \""+message+"\"";
+
+ String targets[] = new String[url.length];
+ for (int i = 0; i < url.length;i++) {
+ targets[i] = urlToSVNUrl(url[i]);
+ commandLine += " "+targets[i];
+ }
+ notificationHandler.​setCommandLine(comma​ndLine);
+ svnClient.remove(tar​gets,message,false);​
+
         } catch (ClientException e) {
             notificationHandler.​setException(e);
             throw e;
@@ -492,15 +497,21 @@
      * @param force
      * @throws ClientException
      */
- public void remove(File file, boolean force) throws ClientException {
+ public void remove(File file[], boolean force) throws ClientException {
         try {
             notificationHandler.​setCommand(ISVNNotif​yListener.COMMAND_RE​MOVE);
- String src = fileToSVNPath(file);
- notificationHandler.​setCommandLine(
- "delete "+
- (force?" --force ":"")+
- src);
- svnClient.remove(new String[] { src },"",force);
+
+ String commandLine = "delete"+(force?" --force":"");
+ String targets[] = new String[file.length];
+
+ for (int i = 0; i < file.length;i++) {
+ targets[i] = fileToSVNPath(file[i]);
+ commandLine += " "+targets[i];
+ }
+
+ notificationHandler.​setCommandLine(comma​ndLine);
+
+ svnClient.remove(tar​gets,"",force);
         } catch (ClientException e) {
             notificationHandler.​setException(e);
             throw e;

--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@subc​lipse.tigris.org
For additional commands, e-mail: cvs-help at subclipse dot tigris dot org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

subclipse commit: rev 23 - trunk/svnClientAdapter/src/main/org/tigris/subversion/svnclientadapter cchab chabanois cédric 2003-07-01 13:17:43 PDT
Messages per page: