Skip to content

Commit

Permalink
Parse files in a dirctory
Browse files Browse the repository at this point in the history
  • Loading branch information
erssebaggala committed Feb 14, 2019
1 parent 2f870ab commit 9eaaf4d
Show file tree
Hide file tree
Showing 8 changed files with 560 additions and 99 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
/target/

nbactions.xml
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,29 @@ Below is the expected format of the input file:
# Usage
java -jar huaweicmmotreeparser.jar data.xml outputDirectory

```
usage: java -jar boda-huaweicmmotreeparser.jar
Parses Huawei MO Tree CM XML data to csv
-c,--parameter-config <PARAMETER_CONFIG> parameter configuration file
-h,--help show help
-i,--input-file <INPUT_FILE> input file or directory name
-o,--output-directory <OUTPUT_DIRECTORY> output directory name
-p,--extract-parameters extract only the managed
objects and parameters
-v,--version display version
Examples:
java -jar boda-huaweicmmotreeparser.jar -i dump_file -o out_folder
java -jar boda-huaweicmmotreeparser.jar -i input_folder -o out_folder
java -jar boda-huaweicmmotreeparser.jar -i input_folder -p
java -jar boda-huaweicmmotreeparser.jar -i input_folder -p -m
```
# Download and installation
The lastest compiled jar file is availabled in the dist directory. Alternatively, download it directly from [here](https://github.com/bodastage/boda-huaweicmmotreeparser/raw/master/dist/boda-huaweicmmotreeparser.jar).

# Requirements
To run the jar file, you need Java version 1.6 and above.
To run the jar file, you need Java version 1.8 and above.

# Getting help
To report issues with the application or request new features use the issue [tracker](https://github.com/bodastage/boda-huaweicmmotreeparser/issues). For help and customizations send an email to [email protected].
Expand Down
13 changes: 13 additions & 0 deletions boda-huaweicmmotreeparser/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.bodastage.cm</groupId>
<artifactId>boda-huaweicmmotreeparser</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
</project>
Binary file modified dist/boda-huaweicmmotreeparser.jar
Binary file not shown.
14 changes: 12 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.bodastage.boda_huaweicmmotreeparser</groupId>
<artifactId>boda-huaweicmmotreeparser</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
<name>boda-huaweicmmotreeparser</name>
<url>http://maven.apache.org</url>
<dependencies>
Expand All @@ -14,6 +14,16 @@
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.0.13</version>
</dependency>
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>1.4</version>
</dependency>
</dependencies>
<build>
<plugins>
Expand All @@ -22,7 +32,7 @@
<configuration>
<archive>
<manifest>
<mainClass>com.bodastage.boda_huaweicmmotreeparser.App</mainClass>
<mainClass>com.bodastage.boda_huaweicmmotreeparser.HuaweiCMMOTreeParser</mainClass>
</manifest>
</archive>
<descriptorRefs>
Expand Down
58 changes: 0 additions & 58 deletions src/main/java/com/bodastage/boda_huaweicmmotreeparser/App.java

This file was deleted.

Loading

0 comments on commit 9eaaf4d

Please sign in to comment.