Commit a4bfde68 authored by 陈精华's avatar 陈精华 Committed by kl

优化:目录调整,符合maven规范;maven编译指定.sh脚本换行符为unix换行

parent 19d1ba6c
...@@ -31,4 +31,4 @@ RUN yum install -y kde-l10n-Chinese &&\ ...@@ -31,4 +31,4 @@ RUN yum install -y kde-l10n-Chinese &&\
ENV LANG zh_CN.UTF-8 ENV LANG zh_CN.UTF-8
ENV LC_ALL zh_CN.UTF-8 ENV LC_ALL zh_CN.UTF-8
ENV KKFILEVIEW_BIN_FOLDER /opt/kkFileView-2.2.0-SNAPSHOT/bin ENV KKFILEVIEW_BIN_FOLDER /opt/kkFileView-2.2.0-SNAPSHOT/bin
ENTRYPOINT ["java","-Dfile.encoding=UTF-8","-Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider","-Dspring.config.location=/opt/kkFileView-2.2.0-SNAPSHOT/conf/application.properties","-jar","/opt/kkFileView-2.2.0-SNAPSHOT/bin/kkFileView-2.2.0-SNAPSHOT.jar"] ENTRYPOINT ["java","-Dfile.encoding=UTF-8","-Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider","-Dspring.config.location=/opt/kkFileView-2.2.0-SNAPSHOT/config/application.properties","-jar","/opt/kkFileView-2.2.0-SNAPSHOT/bin/kkFileView-2.2.0-SNAPSHOT.jar"]
\ No newline at end of file \ No newline at end of file
...@@ -143,7 +143,7 @@ public class OfficeUtils { ...@@ -143,7 +143,7 @@ public class OfficeUtils {
public static String getCustomizedConfigPath() { public static String getCustomizedConfigPath() {
String homePath = OfficeUtils.getHomePath(); String homePath = OfficeUtils.getHomePath();
String separator = java.io.File.separator; String separator = java.io.File.separator;
String configFilePath = homePath + separator + "conf" + separator + "application.properties"; String configFilePath = homePath + separator + "config" + separator + "application.properties";
return configFilePath; return configFilePath;
} }
......
...@@ -194,7 +194,7 @@ ...@@ -194,7 +194,7 @@
<filtering>true</filtering> <filtering>true</filtering>
</resource> </resource>
<resource> <resource>
<directory>src/main/conf</directory> <directory>src/main/config</directory>
<excludes> <excludes>
<exclude>${build.exclude.resource}</exclude> <exclude>${build.exclude.resource}</exclude>
</excludes> </excludes>
...@@ -210,7 +210,7 @@ ...@@ -210,7 +210,7 @@
<configuration> <configuration>
<appendAssemblyId>false</appendAssemblyId> <appendAssemblyId>false</appendAssemblyId>
<descriptors> <descriptors>
<descriptor>src/main/resources/assembly.xml</descriptor> <descriptor>src/main/assembly/assembly.xml</descriptor>
</descriptors> </descriptors>
</configuration> </configuration>
<executions> <executions>
......
...@@ -11,18 +11,24 @@ ...@@ -11,18 +11,24 @@
<includeBaseDirectory>true</includeBaseDirectory> <includeBaseDirectory>true</includeBaseDirectory>
<fileSets> <fileSets>
<fileSet> <fileSet>
<directory>src/main/conf</directory> <directory>src/main/bin</directory>
<outputDirectory>${file.separator}conf</outputDirectory> <outputDirectory>${file.separator}bin</outputDirectory>
<includes>
<include>*.sh</include>
</includes>
<fileMode>755</fileMode>
<lineEnding>unix</lineEnding>
</fileSet> </fileSet>
<fileSet> <fileSet>
<directory>src/main/bin</directory> <directory>src/main/bin</directory>
<outputDirectory>${file.separator}bin</outputDirectory> <outputDirectory>${file.separator}bin</outputDirectory>
<fileMode>755</fileMode> <includes>
<include>*.bat</include>
</includes>
</fileSet> </fileSet>
<fileSet> <fileSet>
<directory>src/main/script</directory> <directory>src/main/config</directory>
<outputDirectory>${file.separator}script</outputDirectory> <outputDirectory>${file.separator}config</outputDirectory>
<fileMode>755</fileMode>
</fileSet> </fileSet>
<fileSet> <fileSet>
<directory>src/main/log</directory> <directory>src/main/log</directory>
......
...@@ -3,7 +3,7 @@ set "KKFILEVIEW_BIN_FOLDER=%cd%" ...@@ -3,7 +3,7 @@ set "KKFILEVIEW_BIN_FOLDER=%cd%"
cd "%KKFILEVIEW_BIN_FOLDER%" cd "%KKFILEVIEW_BIN_FOLDER%"
echo Using KKFILEVIEW_BIN_FOLDER %KKFILEVIEW_BIN_FOLDER% echo Using KKFILEVIEW_BIN_FOLDER %KKFILEVIEW_BIN_FOLDER%
echo Starting kkFileView... echo Starting kkFileView...
echo Please check log file in ./log/kkFileView.log for more information echo Please check log file in ../log/kkFileView.log for more information
echo You can get help in our official homesite: https://kkFileView.keking.cn echo You can get help in our official homesite: https://kkFileView.keking.cn
echo If this project is helpful to you, please star it in https://gitee.com/kekingcn/file-online-preview echo If this project is helpful to you, please star it on https://gitee.com/kekingcn/file-online-preview/stargazers
java -Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider -Dspring.config.location=..\conf\application.properties -jar kkFileView-2.2.0-SNAPSHOT.jar -> ..\log\kkFileView.log java -Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider -Dspring.config.location=..\config\application.properties -jar kkFileView-2.2.0-SNAPSHOT.jar -> ..\log\kkFileView.log
\ No newline at end of file \ No newline at end of file
...@@ -20,7 +20,7 @@ else ...@@ -20,7 +20,7 @@ else
done done
if [ ! -n "${FLAG}" ]; then if [ ! -n "${FLAG}" ]; then
echo "Installing OpenOffice" echo "Installing OpenOffice"
sh ../script/install.sh sh ./install.sh
else else
echo "Detected office component has been installed in $OFFICE_HOME" echo "Detected office component has been installed in $OFFICE_HOME"
fi fi
...@@ -28,5 +28,5 @@ fi ...@@ -28,5 +28,5 @@ fi
echo "Starting kkFileView..." echo "Starting kkFileView..."
echo "Please execute ./showlog.sh to check log for more information" echo "Please execute ./showlog.sh to check log for more information"
echo "You can get help in our official homesite: https://kkFileView.keking.cn" echo "You can get help in our official homesite: https://kkFileView.keking.cn"
echo "If this project is helpful to you, please star it in https://gitee.com/kekingcn/file-online-preview" echo "If this project is helpful to you, please star it on https://gitee.com/kekingcn/file-online-preview/stargazers"
nohup java -Dfile.encoding=UTF-8 -Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider -Dspring.config.location=../conf/application.properties -jar kkFileView-2.2.0-SNAPSHOT.jar > ../log/kkFileView.log 2>&1 & nohup java -Dfile.encoding=UTF-8 -Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider -Dspring.config.location=../config/application.properties -jar kkFileView-2.2.0-SNAPSHOT.jar > ../log/kkFileView.log 2>&1 &
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment