Projekt

Obecné

Profil

« Předchozí | Další » 

Revize a5356f12

Přidáno uživatelem Vít Mazín před více než 5 roky(ů)

Added module for DOT converter

Added module for DOT converter

Zobrazit rozdíly:

.gitignore
4 4
sources/*/target/
5 5
sources/*/logs/
6 6
sources/imiger-core/src/main/webapp/node_modules/
7

  
8
**/.DS_Store
9
.DS_Store
10
.DS_Store
sources/classes/production/imiger-dot-converter/META-INF/services/cz.zcu.kiv.imiger.spi.IModule
1
cz.zcu.kiv.imiger.plugin.dot.DOT
sources/classes/production/imiger-dot-converter/log4j2.properties
1
name=PropertiesConfig
2
property.filename = logs
3
appenders = console, file
4

  
5
appender.console.type = Console
6
appender.console.name = STDOUT
7
appender.console.layout.type = PatternLayout
8
appender.console.layout.pattern=%d{yy-MM-dd HH:mm:ss:SSS} %-6p [%c:%M:%L] - %m%n
9

  
10
appender.file.type = File
11
appender.file.name = LOGFILE
12
appender.file.fileName=${filename}/propertieslogs.log
13
appender.file.layout.type=PatternLayout
14
appender.file.layout.pattern=%d{yy-MM-dd HH:mm:ss:SSS} %-6p [%c:%M:%L] - %m%n
15

  
16
rootLogger.level = debug
17
rootLogger.appenderRefs = stdout
18
rootLogger.appenderRef.stdout.ref = STDOUT
sources/imiger-core/pom.xml
92 92
            <artifactId>imiger-spade-converter</artifactId>
93 93
            <version>1.0-SNAPSHOT</version>
94 94
        </dependency>
95
        <dependency>
96
            <groupId>cz.zcu.kiv</groupId>
97
            <artifactId>imiger-dot-converter</artifactId>
98
            <version>1.0-SNAPSHOT</version>
99
        </dependency>
95 100

  
96 101
        <dependency>
97 102
            <groupId>org.apache.logging.log4j</groupId>
sources/imiger-dot-converter/pom.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0"
3
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
    <parent>
6
        <artifactId>imiger</artifactId>
7
        <groupId>cz.zcu.kiv</groupId>
8
        <version>0.1.2-SNAPSHOT</version>
9
        <relativePath>../pom.xml</relativePath>
10
    </parent>
11
    <modelVersion>4.0.0</modelVersion>
12

  
13
    <artifactId>imiger-dot-converter</artifactId>
14
    <version>1.0-SNAPSHOT</version>
15
    <packaging>jar</packaging>
16

  
17
    <properties>
18
        <maven.compiler.source>1.8</maven.compiler.source>
19
        <maven.compiler.target>1.8</maven.compiler.target>
20
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21
    </properties>
22

  
23
    <build>
24
        <plugins>
25
            <plugin>
26
                <groupId>org.apache.maven.plugins</groupId>
27
                <artifactId>maven-assembly-plugin</artifactId>
28
                <configuration>
29
                    <descriptorRefs>
30
                        <descriptorRef>jar-with-dependencies</descriptorRef>
31
                    </descriptorRefs>
32
                </configuration>
33
                <executions>
34
                    <execution>
35
                        <id>make-assembly</id> <!-- this is used for inheritance merges -->
36
                        <phase>package</phase> <!-- bind to the packaging phase -->
37
                        <goals>
38
                            <goal>single</goal>
39
                        </goals>
40
                    </execution>
41
                </executions>
42
            </plugin>
43
        </plugins>
44
    </build>
45

  
46
    <dependencies>
47
        <dependency>
48
            <groupId>cz.zcu.kiv</groupId>
49
            <artifactId>imiger-module</artifactId>
50
            <version>0.1.2-SNAPSHOT</version>
51
        </dependency>
52

  
53
        <dependency>
54
            <groupId>com.paypal.digraph</groupId>
55
            <artifactId>digraph-parser</artifactId>
56
            <version>1.0</version>
57
        </dependency>
58

  
59
        <!-- Lib for JSON handling -->
60
        <dependency>
61
            <groupId>com.google.code.gson</groupId>
62
            <artifactId>gson</artifactId>
63
            <version>2.8.5</version>
64
        </dependency>
65

  
66
        <!-- Lib for loading file -->
67
        <dependency>
68
            <groupId>commons-io</groupId>
69
            <artifactId>commons-io</artifactId>
70
            <version>2.6</version>
71
        </dependency>
72

  
73
        <!-- Libs for Logging -->
74
        <dependency>
75
            <groupId>org.apache.logging.log4j</groupId>
76
            <artifactId>log4j-api</artifactId>
77
            <version>2.11.1</version>
78
        </dependency>
79
        <dependency>
80
            <groupId>org.apache.logging.log4j</groupId>
81
            <artifactId>log4j-core</artifactId>
82
            <version>2.11.1</version>
83
        </dependency>
84

  
85
        <!-- Libs for Unit testing -->
86
        <dependency>
87
            <groupId>org.junit.jupiter</groupId>
88
            <artifactId>junit-jupiter-api</artifactId>
89
            <version>5.3.2</version>
90
            <scope>test</scope>
91
        </dependency>
92
    </dependencies>
93
</project>
sources/imiger-dot-converter/src/main/java/cz/zcu/kiv/imiger/plugin/dot/DOT.java
1
package cz.zcu.kiv.imiger.plugin.dot;
2

  
3
import cz.zcu.kiv.imiger.spi.IModule;
4

  
5
public class DOT implements IModule {
6
    @Override
7
    public String getModuleName() {
8
        return "DOT file";
9
    }
10

  
11
    @Override
12
    public String getRawJson(String stringToConvert) {
13
        return null;
14
    }
15
}
sources/imiger-dot-converter/src/main/resources/META-INF/services/cz.zcu.kiv.imiger.spi.IModule
1
cz.zcu.kiv.imiger.plugin.dot.DOT
sources/imiger-dot-converter/src/main/resources/log4j2.properties
1
name=PropertiesConfig
2
property.filename = logs
3
appenders = console, file
4

  
5
appender.console.type = Console
6
appender.console.name = STDOUT
7
appender.console.layout.type = PatternLayout
8
appender.console.layout.pattern=%d{yy-MM-dd HH:mm:ss:SSS} %-6p [%c:%M:%L] - %m%n
9

  
10
appender.file.type = File
11
appender.file.name = LOGFILE
12
appender.file.fileName=${filename}/propertieslogs.log
13
appender.file.layout.type=PatternLayout
14
appender.file.layout.pattern=%d{yy-MM-dd HH:mm:ss:SSS} %-6p [%c:%M:%L] - %m%n
15

  
16
rootLogger.level = debug
17
rootLogger.appenderRefs = stdout
18
rootLogger.appenderRef.stdout.ref = STDOUT
sources/pom.xml
16 16
        <module>imiger-core</module>
17 17
        <module>imiger-module</module>
18 18
        <module>imiger-spade-converter</module>
19
        <module>imiger-dot-converter</module>
19 20
    </modules>
20 21

  
21 22
    <properties>

Také k dispozici: Unified diff