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

This commit is contained in:
陈精华 2019-10-24 16:22:02 +08:00 committed by kl
parent 19d1ba6cf9
commit a4bfde68bd
9 changed files with 22 additions and 17 deletions

View File

@ -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"]

View File

@ -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;
} }

View File

@ -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 @@
<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>

View File

@ -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>

View File

@ -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

View File

@ -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
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 &

View File

@ -1 +0,0 @@
app.id=file-preview