diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-21 14:26:16 +0000 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-21 14:26:16 +0000 |
| commit | ff063bc7eb37a6af42a75c216f647db15cb858fe (patch) | |
| tree | 3642063b97b2fc69b68a0df2744525f28c2f828b /update/plugin/subversion/trunk/src | |
| parent | 1ef9b232d50523f3dac49e225d560bb9da0eb9b4 (diff) | |
| download | instadisc-ff063bc7eb37a6af42a75c216f647db15cb858fe.tar.gz instadisc-ff063bc7eb37a6af42a75c216f647db15cb858fe.tar.bz2 instadisc-ff063bc7eb37a6af42a75c216f647db15cb858fe.zip | |
Update: Added VerID bounce to Subversion
Also imported classpath libraries, for some reason they weren't previously added. Fixes #44
Diffstat (limited to 'update/plugin/subversion/trunk/src')
| -rw-r--r-- | update/plugin/subversion/trunk/src/com/fourisland/instadisc/update/svn/Main.java | 9 |
1 files changed, 7 insertions, 2 deletions
| 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 { | |||
| 53 | config.setServerURL(new URL(centralServer)); | 53 | config.setServerURL(new URL(centralServer)); |
| 54 | XmlRpcClient client = new XmlRpcClient(); | 54 | XmlRpcClient client = new XmlRpcClient(); |
| 55 | client.setConfig(config); | 55 | client.setConfig(config); |
| 56 | client.execute("InstaDisc.sendFromUpdate", new Object[]{username, | 56 | Integer resp = (Integer) client.execute("InstaDisc.sendFromUpdate", new Object[]{username, |
| 57 | (new MD5(username + ":" + (new MD5(password)).hash() + ":" + verID)).hash(), | 57 | (new MD5(username + ":" + (new MD5(password)).hash() + ":" + verID)).hash(), |
| 58 | verID, | 58 | verID, |
| 59 | subscription, | 59 | subscription, |
| @@ -62,6 +62,11 @@ public class Main { | |||
| 62 | path, | 62 | path, |
| 63 | "a:0:{}" | 63 | "a:0:{}" |
| 64 | }); | 64 | }); |
| 65 | |||
| 66 | if (resp == 2) | ||
| 67 | { | ||
| 68 | main(args); | ||
| 69 | } | ||
| 65 | } catch (XmlRpcException ex) | 70 | } catch (XmlRpcException ex) |
| 66 | { | 71 | { |
| 67 | Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex); | 72 | Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex); |
| @@ -72,7 +77,7 @@ public class Main { | |||
| 72 | } | 77 | } |
| 73 | 78 | ||
| 74 | public static String getArg(int arg, String[] args) { | 79 | public static String getArg(int arg, String[] args) { |
| 75 | if (args.length < (arg+1)) | 80 | if (args.length < (arg + 1)) |
| 76 | { | 81 | { |
| 77 | System.out.println("Program requires 7 arguments and you only provided " + arg); | 82 | System.out.println("Program requires 7 arguments and you only provided " + arg); |
| 78 | System.exit(1); | 83 | System.exit(1); |
