Skip to content

Commit 0aa366c

Browse files
committed
Add simple and basic logging
1 parent 7019ccd commit 0aa366c

File tree

2 files changed

+43
-36
lines changed

2 files changed

+43
-36
lines changed

pom.xml

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -20,36 +20,43 @@
2020
</properties>
2121

2222
<dependencies>
23-
<dependency>
24-
<groupId>org.utplsql</groupId>
25-
<artifactId>java-api</artifactId>
26-
<version>3.1.2</version>
27-
<scope>compile</scope>
28-
<exclusions>
29-
<exclusion>
30-
<groupId>com.oracle.jdbc</groupId>
31-
<artifactId>ucp</artifactId>
32-
</exclusion>
33-
</exclusions>
34-
</dependency>
35-
<dependency>
36-
<groupId>com.beust</groupId>
37-
<artifactId>jcommander</artifactId>
38-
<version>1.72</version>
39-
<scope>compile</scope>
40-
</dependency>
41-
<dependency>
42-
<groupId>com.zaxxer</groupId>
43-
<artifactId>HikariCP</artifactId>
44-
<version>2.7.2</version>
45-
<scope>compile</scope>
46-
</dependency>
4723
<dependency>
48-
<groupId>org.slf4j</groupId>
49-
<artifactId>slf4j-nop</artifactId>
50-
<version>1.7.25</version>
24+
<groupId>org.utplsql</groupId>
25+
<artifactId>java-api</artifactId>
26+
<version>3.1.3-SNAPSHOT</version>
5127
<scope>compile</scope>
28+
<exclusions>
29+
<exclusion>
30+
<groupId>com.oracle.jdbc</groupId>
31+
<artifactId>ucp</artifactId>
32+
</exclusion>
33+
</exclusions>
5234
</dependency>
35+
<dependency>
36+
<groupId>com.beust</groupId>
37+
<artifactId>jcommander</artifactId>
38+
<version>1.72</version>
39+
<scope>compile</scope>
40+
</dependency>
41+
<dependency>
42+
<groupId>com.zaxxer</groupId>
43+
<artifactId>HikariCP</artifactId>
44+
<version>2.7.2</version>
45+
<scope>compile</scope>
46+
</dependency>
47+
<dependency>
48+
<groupId>javax.xml.bind</groupId>
49+
<artifactId>jaxb-api</artifactId>
50+
<version>2.3.0</version>
51+
</dependency>
52+
<dependency>
53+
<groupId>ch.qos.logback</groupId>
54+
<artifactId>logback-classic</artifactId>
55+
<version>1.2.3</version>
56+
<scope>test</scope>
57+
</dependency>
58+
59+
<!-- Test -->
5360
<dependency>
5461
<groupId>org.junit.jupiter</groupId>
5562
<artifactId>junit-jupiter-api</artifactId>
@@ -62,11 +69,7 @@
6269
<version>${junit.jupiter.version}</version>
6370
<scope>test</scope>
6471
</dependency>
65-
<dependency>
66-
<groupId>javax.xml.bind</groupId>
67-
<artifactId>jaxb-api</artifactId>
68-
<version>2.3.0</version>
69-
</dependency>
72+
7073
</dependencies>
7174

7275
<build>

src/main/java/org/utplsql/cli/RunCommand.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
import com.beust.jcommander.Parameter;
44
import com.beust.jcommander.Parameters;
5-
import org.utplsql.api.FileMapperOptions;
6-
import org.utplsql.api.KeyValuePair;
7-
import org.utplsql.api.TestRunner;
8-
import org.utplsql.api.Version;
5+
import org.slf4j.Logger;
6+
import org.slf4j.LoggerFactory;
7+
import org.utplsql.api.*;
98
import org.utplsql.api.compatibility.CompatibilityProxy;
109
import org.utplsql.api.exception.DatabaseNotCompatibleException;
1110
import org.utplsql.api.exception.SomeTestsFailedException;
@@ -34,6 +33,8 @@
3433
@Parameters(separators = "=", commandDescription = "run tests")
3534
public class RunCommand implements ICommand {
3635

36+
private static final Logger logger = LoggerFactory.getLogger(RunCommand.class);
37+
3738
@Parameter(
3839
required = true,
3940
converter = ConnectionInfo.ConnectionStringConverter.class,
@@ -114,6 +115,9 @@ public List<String> getTestPaths() {
114115

115116
public int run() {
116117

118+
logger.info(CliVersionInfo.getInfo());
119+
logger.info(JavaApiVersionInfo.getInfo());
120+
117121
try {
118122

119123
final List<Reporter> reporterList;

0 commit comments

Comments
 (0)