1
|
/*
|
2
|
* To change this license header, choose License Headers in Project Properties.
|
3
|
* To change this template file, choose Tools | Templates
|
4
|
* and open the template in the editor.
|
5
|
*/
|
6
|
package eu.dnetlib.usagestats.export;
|
7
|
|
8
|
import java.io.BufferedReader;
|
9
|
import java.io.File;
|
10
|
import java.io.FileInputStream;
|
11
|
import java.io.FileNotFoundException;
|
12
|
import java.io.FileReader;
|
13
|
import java.io.IOException;
|
14
|
import java.io.InputStream;
|
15
|
import java.sql.Connection;
|
16
|
import java.sql.DriverManager;
|
17
|
import java.sql.PreparedStatement;
|
18
|
import java.sql.ResultSet;
|
19
|
import java.sql.SQLException;
|
20
|
import java.util.ArrayList;
|
21
|
import java.util.Iterator;
|
22
|
import java.util.Properties;
|
23
|
import java.util.regex.Matcher;
|
24
|
import java.util.regex.Pattern;
|
25
|
|
26
|
/**
|
27
|
*
|
28
|
* @author dpie
|
29
|
*/
|
30
|
public class ExecuteWorkflow {
|
31
|
|
32
|
public static void main(String args[]) throws Exception {
|
33
|
|
34
|
Properties prop = new Properties();
|
35
|
InputStream propertiesInputStream = UsageStatsExporter.class.getClassLoader().getResourceAsStream("usagestats.properties");
|
36
|
prop.load(propertiesInputStream);
|
37
|
|
38
|
UsageStatsExporter usagestatsExport = new UsageStatsExporter(prop);
|
39
|
usagestatsExport.export();
|
40
|
}
|
41
|
}
|