Fix exception logs from log4j at buildtime 65/18565/2
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>
Thu, 12 Oct 2017 14:47:09 +0000 (14:47 +0000)
committersubhash kumar singh <subhash.kumar.singh@huawei.com>
Thu, 12 Oct 2017 14:59:09 +0000 (14:59 +0000)
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>
framework/src/main/resources/log4j.properties
pom.xml

index 72c290c..1b352b5 100644 (file)
@@ -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 e72b058..a4fd621 100644 (file)
--- 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>
 
     <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>