about summary refs log tree commit diff stats
path: root/update/plugin/subversion/trunk/src
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2008-09-06 23:21:39 +0000
committerKelly Rauchenberger <fefferburbia@gmail.com>2008-09-06 23:21:39 +0000
commit3166001db473c46ff8100cc94486aff8692f5bbf (patch)
treeb8a6209245739f0b60d4238d1b9953185734a9ae /update/plugin/subversion/trunk/src
parent54595b14c1f67b9296ea96dad0741c900d01d1fb (diff)
downloadinstadisc-3166001db473c46ff8100cc94486aff8692f5bbf.tar.gz
instadisc-3166001db473c46ff8100cc94486aff8692f5bbf.tar.bz2
instadisc-3166001db473c46ff8100cc94486aff8692f5bbf.zip
Update: Centralized Central in Subversion
Refs #52
Diffstat (limited to 'update/plugin/subversion/trunk/src')
-rw-r--r--update/plugin/subversion/trunk/src/com/fourisland/instadisc/update/svn/Main.java18
1 files changed, 7 insertions, 11 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 45c7485..bc80376 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
@@ -24,13 +24,11 @@ public class Main {
24 public static void main(String[] args) { 24 public static void main(String[] args) {
25 try 25 try
26 { 26 {
27 String username = getArg(0, args); 27 String pathScheme = getArg(1, args);
28 String password = getArg(1, args); 28 String author = getArg(2, args);
29 String centralServer = getArg(2, args); 29 String seriesURL = getArg(3, args);
30 String pathScheme = getArg(3, args); 30 String subscriptionID = getArg(4, args);
31 String author = getArg(4, args); 31 String revision = getArg(5, args);
32 String subscription = getArg(5, args);
33 String revision = getArg(6, args);
34 32
35 StringBuilder messBuilder = new StringBuilder(); 33 StringBuilder messBuilder = new StringBuilder();
36 byte rs = 0; 34 byte rs = 0;
@@ -101,10 +99,8 @@ public class Main {
101 config.setServerURL(new URL(centralServer)); 99 config.setServerURL(new URL(centralServer));
102 XmlRpcClient client = new XmlRpcClient(); 100 XmlRpcClient client = new XmlRpcClient();
103 client.setConfig(config); 101 client.setConfig(config);
104 Integer resp = (Integer) client.execute("InstaDisc.sendFromUpdate", new Object[]{username, 102 Integer resp = (Integer) client.execute("InstaDisc.sendFromUpdate", new Object[]{seriesURL,
105 (new MD5(username + ":" + (new MD5(password)).hash() + ":" + verID)).hash(), 103 subscriptionID,
106 verID,
107 subscription,
108 message, 104 message,
109 author, 105 author,
110 path, 106 path,