0
|
1 package de.mpiwg.itgroup.eSciDoc.Tools;
|
|
2
|
|
3 import java.io.IOException;
|
|
4 import java.util.ArrayList;
|
|
5 import java.util.regex.Pattern;
|
|
6
|
|
7 import org.apache.xmlrpc.XmlRpcException;
|
|
8 import org.jdom.JDOMException;
|
|
9
|
|
10 public class IngestVLPCall {
|
|
11
|
|
12 /**
|
|
13 * @param args
|
|
14 * @throws IOException
|
|
15 * @throws JDOMException
|
|
16 * @throws XmlRpcException
|
|
17 */
|
|
18 public static void main(String[] args) throws IOException, XmlRpcException, JDOMException {
|
|
19 System.out.println("Starting VLP call2");
|
|
20 String user=args[0];
|
|
21 String password=args[1];
|
|
22
|
|
23 IngestECHO ie = new IngestVLP(user,password);
|
|
24 ie.ingestECHOResources(Pattern.compile(".*/library/data/.*"));
|
|
25 //ie.releaseECHORessources();
|
|
26 //ArrayList<String> ret = ie.getAllResources();
|
|
27 //for (String x : ret)
|
|
28 // System.out.println(x);
|
|
29 }
|
|
30
|
|
31 }
|