aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>2017-10-12 14:47:09 +0000
committersubhash kumar singh <subhash.kumar.singh@huawei.com>2017-10-12 14:59:09 +0000
commitfdf9058ba5daeeb551b19190d41cf97635c018d7 (patch)
tree7aef400be30a1700a3e6ca65408cb3d8c503423b
parent245d2e92c401457b0b667aa6d2dd262fa6d1b045 (diff)
Fix exception logs from log4j at buildtime
Fix exception logs from log4j at buildtime. Fix logger filename. Issue-ID: CLI-51 Change-Id: Ia284bf2566792e1a381936382cab940c6d0182ac Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
-rw-r--r--framework/src/main/resources/log4j.properties2
-rw-r--r--pom.xml13
2 files changed, 12 insertions, 3 deletions
diff --git a/framework/src/main/resources/log4j.properties b/framework/src/main/resources/log4j.properties
index 72c290ca..1b352b5b 100644
--- a/framework/src/main/resources/log4j.properties
+++ b/framework/src/main/resources/log4j.properties
@@ -2,7 +2,7 @@ log4j.rootLogger=ERROR, file
# Redirect log messages to a log file, support file rolling.
log4j.appender.file=org.apache.log4j.RollingFileAppender
-log4j.appender.file.File=${ONAP_CLI_HOME}/logs/oclip.log
+log4j.appender.file.File=${ONAP_CLI_HOME}/logs/onap-cli.log
log4j.appender.file.MaxFileSize=5MB
log4j.appender.file.MaxBackupIndex=10
log4j.appender.file.layout=org.apache.log4j.PatternLayout
diff --git a/pom.xml b/pom.xml
index e72b0580..a4fd6216 100644
--- a/pom.xml
+++ b/pom.xml
@@ -34,7 +34,7 @@
<package.name>cli</package.name>
</properties>
- <modules>
+ <modules>
<module>framework</module>
<module>plugins</module>
<module>main</module>
@@ -51,7 +51,16 @@
<build>
<pluginManagement>
- <plugins>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <systemPropertyVariables>
+ <ONAP_CLI_HOME>.</ONAP_CLI_HOME>
+ </systemPropertyVariables>
+ </configuration>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>