3881 |
27 Apr 16 |
nicklas |
== Requirements == |
3881 |
27 Apr 16 |
nicklas |
2 |
|
3881 |
27 Apr 16 |
nicklas |
1. JRE 8 |
3881 |
27 Apr 16 |
nicklas |
4 |
|
3881 |
27 Apr 16 |
nicklas |
== Introduction == |
3881 |
27 Apr 16 |
nicklas |
6 |
|
3881 |
27 Apr 16 |
nicklas |
This is a program that converts an XML file exported from INCA |
3881 |
27 Apr 16 |
nicklas |
into a tab-separated file. |
3881 |
27 Apr 16 |
nicklas |
9 |
|
3881 |
27 Apr 16 |
nicklas |
== Installation and updating == |
3881 |
27 Apr 16 |
nicklas |
11 |
|
3898 |
28 Apr 16 |
nicklas |
1. Download the IncaXml2Csv-*.tar.gz file. |
3881 |
27 Apr 16 |
nicklas |
2. Unpack the downloaded file to a directory of your choice. |
3881 |
27 Apr 16 |
nicklas |
3. Done. |
3881 |
27 Apr 16 |
nicklas |
15 |
|
3881 |
27 Apr 16 |
nicklas |
== Using == |
3881 |
27 Apr 16 |
nicklas |
17 |
|
3896 |
28 Apr 16 |
nicklas |
Run the program by double clicking the IncaXml2Csv.jar file or by |
3881 |
27 Apr 16 |
nicklas |
typing the following in a command window: |
3881 |
27 Apr 16 |
nicklas |
20 |
|
3897 |
28 Apr 16 |
nicklas |
21 |
{{{ |
3896 |
28 Apr 16 |
nicklas |
java -jar IncaXml2Csv.jar |
3897 |
28 Apr 16 |
nicklas |
23 |
}}} |
3881 |
27 Apr 16 |
nicklas |
24 |
|
3898 |
28 Apr 16 |
nicklas |
The program will ask for 2 input files and 1 output file: |
3896 |
28 Apr 16 |
nicklas |
26 |
|
3896 |
28 Apr 16 |
nicklas |
1. The TSV file exported from SCANB containing personal numbers. |
3896 |
28 Apr 16 |
nicklas |
The first line must be a header line and must contain a column |
3897 |
28 Apr 16 |
nicklas |
called `PersonalNo`. |
3896 |
28 Apr 16 |
nicklas |
30 |
|
3896 |
28 Apr 16 |
nicklas |
2. The XML file exported from INCA. |
3896 |
28 Apr 16 |
nicklas |
32 |
|
3896 |
28 Apr 16 |
nicklas |
3. The CSV file that should be created. By default this file |
3896 |
28 Apr 16 |
nicklas |
is placed in the same directory as the SCANB TSV file with |
3896 |
28 Apr 16 |
nicklas |
the same name as as the INCA XML file but .xml has been |
3896 |
28 Apr 16 |
nicklas |
replaced with .csv. |
3896 |
28 Apr 16 |
nicklas |
37 |
|
3896 |
28 Apr 16 |
nicklas |
38 |
|
3881 |
27 Apr 16 |
nicklas |
== Compiling == |
3881 |
27 Apr 16 |
nicklas |
40 |
|
3881 |
27 Apr 16 |
nicklas |
To compile this package you also need: |
3881 |
27 Apr 16 |
nicklas |
42 |
|
3881 |
27 Apr 16 |
nicklas |
1. Ant 1.9 |
3881 |
27 Apr 16 |
nicklas |
2. Java 1.8 (JDK) |
3881 |
27 Apr 16 |
nicklas |
45 |
|
3881 |
27 Apr 16 |
nicklas |
Follow these instructions: |
3881 |
27 Apr 16 |
nicklas |
47 |
|
3881 |
27 Apr 16 |
nicklas |
1. Download the source code from the subversion repository. See |
3881 |
27 Apr 16 |
nicklas |
http://baseplugins.thep.lu.se/wiki/net.sf.basedb.inca for instructions. |
3881 |
27 Apr 16 |
nicklas |
50 |
|
3898 |
28 Apr 16 |
nicklas |
2. Type `ant` to compile the code and generate the `IncaXml2Csv.jar` file |
3881 |
27 Apr 16 |
nicklas |
in the project directory. |
3881 |
27 Apr 16 |
nicklas |
53 |
|
3881 |
27 Apr 16 |
nicklas |
3. Use 'ant package' to create a downloadable tar.gz package. |
3881 |
27 Apr 16 |
nicklas |
55 |
|
3881 |
27 Apr 16 |
nicklas |
Tip: If you need different values for any of the properties defined in |
3898 |
28 Apr 16 |
nicklas |
the `build.xml` file, create a file named `build.properties` and set |
3881 |
27 Apr 16 |
nicklas |
the values there. |
3881 |
27 Apr 16 |
nicklas |
59 |
|