From ff063bc7eb37a6af42a75c216f647db15cb858fe Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 21 Aug 2008 14:26:16 +0000 Subject: Update: Added VerID bounce to Subversion Also imported classpath libraries, for some reason they weren't previously added. Fixes #44 --- .../trunk/src/com/fourisland/instadisc/update/svn/Main.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'update/plugin/subversion/trunk/src/com/fourisland') diff --git a/update/plugin/subversion/trunk/src/com/fourisland/instadisc/update/svn/Main.java b/update/plugin/subversion/trunk/src/com/fourisland/instadisc/update/svn/Main.java index 1bc9a07..16e2dd1 100644 --- a/update/plugin/subversion/trunk/src/com/fourisland/instadisc/update/svn/Main.java +++ b/update/plugin/subversion/trunk/src/com/fourisland/instadisc/update/svn/Main.java @@ -53,7 +53,7 @@ public class Main { config.setServerURL(new URL(centralServer)); XmlRpcClient client = new XmlRpcClient(); client.setConfig(config); - client.execute("InstaDisc.sendFromUpdate", new Object[]{username, + Integer resp = (Integer) client.execute("InstaDisc.sendFromUpdate", new Object[]{username, (new MD5(username + ":" + (new MD5(password)).hash() + ":" + verID)).hash(), verID, subscription, @@ -62,6 +62,11 @@ public class Main { path, "a:0:{}" }); + + if (resp == 2) + { + main(args); + } } catch (XmlRpcException ex) { Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex); @@ -72,7 +77,7 @@ public class Main { } public static String getArg(int arg, String[] args) { - if (args.length < (arg+1)) + if (args.length < (arg + 1)) { System.out.println("Program requires 7 arguments and you only provided " + arg); System.exit(1); -- cgit 1.4.1