diff src/de/mpiwg/itgroup/eSciDoc/Tools/IngestVLPCall.java @ 0:c6929e63b0b8

first import
author dwinter
date Wed, 24 Nov 2010 16:52:07 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/de/mpiwg/itgroup/eSciDoc/Tools/IngestVLPCall.java	Wed Nov 24 16:52:07 2010 +0100
@@ -0,0 +1,31 @@
+package de.mpiwg.itgroup.eSciDoc.Tools;
+
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.regex.Pattern;
+
+import org.apache.xmlrpc.XmlRpcException;
+import org.jdom.JDOMException;
+
+public class IngestVLPCall {
+
+	/**
+	 * @param args
+	 * @throws IOException 
+	 * @throws JDOMException 
+	 * @throws XmlRpcException 
+	 */
+	public static void main(String[] args) throws IOException, XmlRpcException, JDOMException {
+		System.out.println("Starting VLP  call2");
+		String user=args[0];
+		String password=args[1];
+		
+		IngestECHO ie = new IngestVLP(user,password);
+		ie.ingestECHOResources(Pattern.compile(".*/library/data/.*"));
+		//ie.releaseECHORessources();
+		//ArrayList<String> ret = ie.getAllResources();
+		//for (String x : ret)
+		//	System.out.println(x);
+	}
+
+}