Skip to content

Commit

Permalink
build: 🛠 change log name and keep dual war name
Browse files Browse the repository at this point in the history
  • Loading branch information
hks2002 committed Dec 19, 2024
1 parent 1d32314 commit fca19d0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"editor.codeActionsOnSave": {
"source.organizeImports": true
"source.organizeImports": "explicit"
},
"java.compile.nullAnalysis.mode": "automatic",
"java.configuration.updateBuildConfiguration": "automatic",
Expand Down
19 changes: 19 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,25 @@
</resource>
</resources>
<plugins>
<!-- keep war with version and no version at same times -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<copy tofile="${project.build.directory}/${project.artifactId}.war" file="${project.build.directory}/${project.artifactId}-${project.version}.war" />
</target>
</configuration>
</execution>
</executions>
</plugin>
<!-- Skip test -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
the config -->
<Configuration status="OFF">
<Properties>
<Property name="LOG_HOME">/var/log/RptSrv</Property>
<Property name="LOG_HOME">/var/log/crystal-report-server-java</Property>
<Property name="patternConsole">%d{HH:mm:ss.SSS} %highlight{[%-5level]} [%c{36}] %msg%n</Property>
<Property name="patternFile">%d{yyyy-MM-dd HH:mm:ss.SSS} [%-5level] [%c{36}] %msg%n</Property>
</Properties>
Expand All @@ -15,7 +15,7 @@
<Pattern>${patternConsole}</Pattern>
</PatternLayout>
</Console>
<RollingFile name="RollingFile" fileName="${LOG_HOME}/RptSrv.log" filePattern="${LOG_HOME}/RptSrv.%d{yyyy-MM-dd}.log" append="true">
<RollingFile name="RollingFile" fileName="${LOG_HOME}/crystal-report-server-java.log" filePattern="${LOG_HOME}/crystal-report-server-java.%d{yyyy-MM-dd}.log" append="true">
<ThresholdFilter level="WARN" onMatch="ACCEPT" onMismatch="DENY" />
<PatternLayout>
<Pattern>${patternFile}</Pattern>
Expand Down

0 comments on commit fca19d0

Please sign in to comment.