diff options
-rw-r--r-- | update/plugin/subversion/trunk/lib/commons-logging-1.1.jar | bin | 0 -> 52915 bytes | |||
-rw-r--r-- | update/plugin/subversion/trunk/lib/ws-commons-util-1.0.2.jar | bin | 0 -> 34407 bytes | |||
-rw-r--r-- | update/plugin/subversion/trunk/lib/xmlrpc-client-3.1.jar | bin | 0 -> 45124 bytes | |||
-rw-r--r-- | update/plugin/subversion/trunk/lib/xmlrpc-common-3.1.jar | bin | 0 -> 104038 bytes | |||
-rw-r--r-- | update/plugin/subversion/trunk/lib/xmlrpc-server-3.1.jar | bin | 0 -> 75310 bytes | |||
-rw-r--r-- | update/plugin/subversion/trunk/nbproject/project.properties | 16 | ||||
-rw-r--r-- | update/plugin/subversion/trunk/src/com/fourisland/instadisc/update/svn/Main.java | 9 |
7 files changed, 18 insertions, 7 deletions
diff --git a/update/plugin/subversion/trunk/lib/commons-logging-1.1.jar b/update/plugin/subversion/trunk/lib/commons-logging-1.1.jar new file mode 100644 index 0000000..2ff9bbd --- /dev/null +++ b/update/plugin/subversion/trunk/lib/commons-logging-1.1.jar | |||
Binary files differ | |||
diff --git a/update/plugin/subversion/trunk/lib/ws-commons-util-1.0.2.jar b/update/plugin/subversion/trunk/lib/ws-commons-util-1.0.2.jar new file mode 100644 index 0000000..3fc364e --- /dev/null +++ b/update/plugin/subversion/trunk/lib/ws-commons-util-1.0.2.jar | |||
Binary files differ | |||
diff --git a/update/plugin/subversion/trunk/lib/xmlrpc-client-3.1.jar b/update/plugin/subversion/trunk/lib/xmlrpc-client-3.1.jar new file mode 100644 index 0000000..a76e6ec --- /dev/null +++ b/update/plugin/subversion/trunk/lib/xmlrpc-client-3.1.jar | |||
Binary files differ | |||
diff --git a/update/plugin/subversion/trunk/lib/xmlrpc-common-3.1.jar b/update/plugin/subversion/trunk/lib/xmlrpc-common-3.1.jar new file mode 100644 index 0000000..862098b --- /dev/null +++ b/update/plugin/subversion/trunk/lib/xmlrpc-common-3.1.jar | |||
Binary files differ | |||
diff --git a/update/plugin/subversion/trunk/lib/xmlrpc-server-3.1.jar b/update/plugin/subversion/trunk/lib/xmlrpc-server-3.1.jar new file mode 100644 index 0000000..bb64a50 --- /dev/null +++ b/update/plugin/subversion/trunk/lib/xmlrpc-server-3.1.jar | |||
Binary files differ | |||
diff --git a/update/plugin/subversion/trunk/nbproject/project.properties b/update/plugin/subversion/trunk/nbproject/project.properties index 97cccc2..5c1f30f 100644 --- a/update/plugin/subversion/trunk/nbproject/project.properties +++ b/update/plugin/subversion/trunk/nbproject/project.properties | |||
@@ -18,10 +18,19 @@ dist.dir=dist | |||
18 | dist.jar=${dist.dir}/InstaDiscUpdateSVN.jar | 18 | dist.jar=${dist.dir}/InstaDiscUpdateSVN.jar |
19 | dist.javadoc.dir=${dist.dir}/javadoc | 19 | dist.javadoc.dir=${dist.dir}/javadoc |
20 | excludes= | 20 | excludes= |
21 | file.reference.commons-logging-1.1.jar=lib/commons-logging-1.1.jar | ||
22 | file.reference.ws-commons-util-1.0.2.jar=lib/ws-commons-util-1.0.2.jar | ||
23 | file.reference.xmlrpc-client-3.1.jar=lib/xmlrpc-client-3.1.jar | ||
24 | file.reference.xmlrpc-common-3.1.jar=lib/xmlrpc-common-3.1.jar | ||
25 | file.reference.xmlrpc-server-3.1.jar=lib/xmlrpc-server-3.1.jar | ||
21 | includes=** | 26 | includes=** |
22 | jar.compress=false | 27 | jar.compress=false |
23 | javac.classpath=\ | 28 | javac.classpath=\ |
24 | ${libs.XML-RPC2.classpath} | 29 | ${file.reference.commons-logging-1.1.jar}:\ |
30 | ${file.reference.ws-commons-util-1.0.2.jar}:\ | ||
31 | ${file.reference.xmlrpc-client-3.1.jar}:\ | ||
32 | ${file.reference.xmlrpc-common-3.1.jar}:\ | ||
33 | ${file.reference.xmlrpc-server-3.1.jar} | ||
25 | # Space-separated list of extra javac options | 34 | # Space-separated list of extra javac options |
26 | javac.compilerargs= | 35 | javac.compilerargs= |
27 | javac.deprecation=false | 36 | javac.deprecation=false |
@@ -44,13 +53,10 @@ javadoc.use=true | |||
44 | javadoc.version=false | 53 | javadoc.version=false |
45 | javadoc.windowtitle= | 54 | javadoc.windowtitle= |
46 | jnlp.codebase.type=local | 55 | jnlp.codebase.type=local |
47 | jnlp.codebase.url=file:/home/hatkirby/NetBeansProjects/InstaDiscUpdateSVN/dist/ | 56 | jnlp.codebase.url=file:/home/hatkirby/NetBeansProjects/InstaDiscUpdateSVN/dist |
48 | jnlp.enabled=false | 57 | jnlp.enabled=false |
49 | jnlp.offline-allowed=false | 58 | jnlp.offline-allowed=false |
50 | jnlp.signed=false | 59 | jnlp.signed=false |
51 | # Property libs.XML-RPC2.classpath is set here just to make sharing of project simpler. | ||
52 | # The library definition has always preference over this property. | ||
53 | libs.XML-RPC2.classpath=lib/commons-logging-1.1.jar:lib/ws-commons-util-1.0.2.jar:lib/xmlrpc-client-3.1.jar:lib/xmlrpc-common-3.1.jar:lib/xmlrpc-server-3.1.jar | ||
54 | main.class=com.fourisland.instadisc.update.svn.Main | 60 | main.class=com.fourisland.instadisc.update.svn.Main |
55 | manifest.file=manifest.mf | 61 | manifest.file=manifest.mf |
56 | meta.inf.dir=${src.dir}/META-INF | 62 | meta.inf.dir=${src.dir}/META-INF |
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); |