Skip to content

Commit 6313dab

Browse files
author
Bernhard Grünewaldt
committed
initial structure
1 parent d92d731 commit 6313dab

File tree

6 files changed

+176
-1
lines changed

6 files changed

+176
-1
lines changed

.editorconfig

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
11+
# Matches multiple files with brace expansion notation
12+
# Set default charset
13+
[*.{js,py,xml,java}]
14+
charset = utf-8
15+
16+
# 4 space indentation
17+
[*.xml]
18+
indent_style = space
19+
indent_size = 2
20+
21+
[*.java]
22+
indent_style = space
23+
indent_size = 4
24+
25+
# Tab indentation (no size specified)
26+
[Makefile]
27+
indent_style = tab
28+
29+
# Indentation override for all JS under lib directory
30+
[lib/**.js]
31+
indent_style = space
32+
indent_size = 2
33+
34+
# Matches the exact files either package.json or .travis.yml
35+
[{package.json,.travis.yml}]
36+
indent_style = space
37+
indent_size = 2

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.iml
2+
.idea
3+
target

DEVELOPMENT.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Development
2+
3+
### Build
4+
5+
```
6+
mvn package -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
7+
java -jar target/java-junit-xml-merger-0.0.1-jar-with-dependencies.jar
8+
```

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,22 @@
1-
# java-junit-xml-merger
1+
# java-junit-xml-merger
2+
3+
:bangbang: WORK IN PROGRESS
4+
5+
----
6+
 
7+
8+
### Usage
9+
10+
```
11+
java -jar java-junit-xml-merger-0.0.1-jar-with-dependencies.jar \
12+
-i junit-report-1.xml \
13+
-i junit-report-2.xml \
14+
-o junit-all.xml
15+
```
16+
17+
-----
18+
 
19+
20+
### License
21+
22+
[MIT](https://github.com/cloutainer/k8s-jenkins-slave-deploy/blob/master/LICENSE) © [Bernhard Grünewaldt](https://github.com/clouless)

pom.xml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<groupId>io.codeclou</groupId>
6+
<artifactId>java-junit-xml-merger</artifactId>
7+
<version>0.0.1</version>
8+
<organization>
9+
<name>codeclou.io</name>
10+
<url>http://codeclou.io/</url>
11+
</organization>
12+
<licenses>
13+
<license>
14+
<name>MIT</name>
15+
<url>https://github.com/codeclou/java-junit-xml-merger/blob/master/LICENSE</url>
16+
</license>
17+
</licenses>
18+
<name>java-junit-xml-merger</name>
19+
<description>java-junit-xml-merger</description>
20+
<packaging>jar</packaging>
21+
<dependencies>
22+
<dependency>
23+
<groupId>commons-cli</groupId>
24+
<artifactId>commons-cli</artifactId>
25+
<version>1.4</version>
26+
</dependency>
27+
</dependencies>
28+
<build>
29+
<plugins>
30+
<plugin>
31+
<artifactId>maven-assembly-plugin</artifactId>
32+
<version>3.1.0</version>
33+
<configuration>
34+
<archive>
35+
<manifest>
36+
<mainClass>io.codeclou.java.junit.xml.merger.Merger</mainClass>
37+
</manifest>
38+
</archive>
39+
<descriptorRefs>
40+
<descriptorRef>jar-with-dependencies</descriptorRef>
41+
</descriptorRefs>
42+
</configuration>
43+
<executions>
44+
<execution>
45+
<id>make-assembly</id>
46+
<phase>package</phase>
47+
<goals>
48+
<goal>single</goal>
49+
</goals>
50+
</execution>
51+
</executions>
52+
</plugin>
53+
</plugins>
54+
</build>
55+
</project>
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* MIT License
3+
*
4+
* Copyright (c) 2017 codeclou.io
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
*/
24+
package io.codeclou.java.junit.xml.merger;
25+
26+
import org.apache.commons.cli.*;
27+
28+
public class Merger {
29+
private static CommandLineParser parser = new DefaultParser();
30+
private static Options options = new Options();
31+
32+
33+
public static void main(String [] args) throws ParseException {
34+
Option option = new Option("i", "input", true, "input files");
35+
option.setArgs(1000); // allow multiple
36+
options.addOption(option);
37+
options.addOption("o", "output", true, "output file");
38+
CommandLine cmd = parser.parse( options, args);
39+
40+
System.out.println("Java Junit Xml Merger");
41+
if(cmd.hasOption("input")) {
42+
System.out.println("input ok");
43+
for (Option o : cmd.getOptions()) {
44+
System.out.println(o.getOpt() + " - " + o.getValue());
45+
}
46+
} else {
47+
System.out.println("input fail");
48+
}
49+
}
50+
51+
}

0 commit comments

Comments
 (0)