Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vitalegi/properties-analyzer


https://github.com/vitalegi/properties-analyzer

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

        

# README

Aim of this project is to compare different properties file, searching for properties that don't match.

## Compile

```bash
set PATH=C:\a\software\apache-maven-3.5.0\bin;C:\Program Files\Java\jdk1.8.0_131\bin;%PATH%
set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_131
mvn clean package
```

## Run

```bash
set PATH=C:\Program Files\Java\jdk1.8.0_131\bin;%PATH%
java -jar .\target\properties-analyzer-0.0.2.jar
```

### OPTIONS

`--a=alias1 --f=path\to\file1.properties --a=alias2 --f=path\to\file2.properties --a=alias3 --f=path\to\file3.properties --m=mode --o=path\to\output\file`

`--a` _alias_

Alias of the next properties file declared.

`--f` _filepath_

Path where properties file is located.

`--m` _mode_

Mode to use. Possible values:

- list
- tabular

`--o` _filepath_

Path where to store the resulting analysis

#### Example usage

`--a=test --f=test-application.properties --a=uat --f=uat-application.properties --a=preprod --f=preprod-application.properties --a=prod --f=prod-application.properties --m=tabular --o=diffs.html`

Will analyze the files _test-application.properties_ (test), _uat-application.properties_ (uat), _preprod-application.properties_ (preprod), _prod-application.properties_ (prod), printing the results to file _diffs.html_.