diff --git a/Dockerfile b/Dockerfile
index 596f57f5..3c1e8528 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -31,4 +31,4 @@ RUN yum install -y kde-l10n-Chinese &&\
ENV LANG zh_CN.UTF-8
ENV LC_ALL zh_CN.UTF-8
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"]
\ No newline at end of file
+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
diff --git a/jodconverter-core/src/main/java/org/artofsolving/jodconverter/office/OfficeUtils.java b/jodconverter-core/src/main/java/org/artofsolving/jodconverter/office/OfficeUtils.java
index f734707f..e6ab33ef 100644
--- a/jodconverter-core/src/main/java/org/artofsolving/jodconverter/office/OfficeUtils.java
+++ b/jodconverter-core/src/main/java/org/artofsolving/jodconverter/office/OfficeUtils.java
@@ -143,7 +143,7 @@ public class OfficeUtils {
public static String getCustomizedConfigPath() {
String homePath = OfficeUtils.getHomePath();
String separator = java.io.File.separator;
- String configFilePath = homePath + separator + "conf" + separator + "application.properties";
+ String configFilePath = homePath + separator + "config" + separator + "application.properties";
return configFilePath;
}
diff --git a/jodconverter-web/pom.xml b/jodconverter-web/pom.xml
index 736e418d..ef297e1c 100644
--- a/jodconverter-web/pom.xml
+++ b/jodconverter-web/pom.xml
@@ -194,7 +194,7 @@
true
- src/main/conf
+ src/main/config
${build.exclude.resource}
@@ -210,7 +210,7 @@
false
- src/main/resources/assembly.xml
+ src/main/assembly/assembly.xml
diff --git a/jodconverter-web/src/main/resources/assembly.xml b/jodconverter-web/src/main/assembly/assembly.xml
similarity index 75%
rename from jodconverter-web/src/main/resources/assembly.xml
rename to jodconverter-web/src/main/assembly/assembly.xml
index ee80fa17..647ad580 100644
--- a/jodconverter-web/src/main/resources/assembly.xml
+++ b/jodconverter-web/src/main/assembly/assembly.xml
@@ -11,18 +11,24 @@
true
- src/main/conf
- ${file.separator}conf
+ src/main/bin
+ ${file.separator}bin
+
+ *.sh
+
+ 755
+ unix
src/main/bin
${file.separator}bin
- 755
+
+ *.bat
+
- src/main/script
- ${file.separator}script
- 755
+ src/main/config
+ ${file.separator}config
src/main/log
diff --git a/jodconverter-web/src/main/script/install.sh b/jodconverter-web/src/main/bin/install.sh
similarity index 100%
rename from jodconverter-web/src/main/script/install.sh
rename to jodconverter-web/src/main/bin/install.sh
diff --git a/jodconverter-web/src/main/bin/startup.bat b/jodconverter-web/src/main/bin/startup.bat
index 616d4d5c..0a5acfbb 100644
--- a/jodconverter-web/src/main/bin/startup.bat
+++ b/jodconverter-web/src/main/bin/startup.bat
@@ -3,7 +3,7 @@ set "KKFILEVIEW_BIN_FOLDER=%cd%"
cd "%KKFILEVIEW_BIN_FOLDER%"
echo Using KKFILEVIEW_BIN_FOLDER %KKFILEVIEW_BIN_FOLDER%
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 If this project is helpful to you, please star it in https://gitee.com/kekingcn/file-online-preview
-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
\ No newline at end of file
+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=..\config\application.properties -jar kkFileView-2.2.0-SNAPSHOT.jar -> ..\log\kkFileView.log
\ No newline at end of file
diff --git a/jodconverter-web/src/main/bin/startup.sh b/jodconverter-web/src/main/bin/startup.sh
index c9cf8e20..f30e44f6 100644
--- a/jodconverter-web/src/main/bin/startup.sh
+++ b/jodconverter-web/src/main/bin/startup.sh
@@ -20,7 +20,7 @@ else
done
if [ ! -n "${FLAG}" ]; then
echo "Installing OpenOffice"
- sh ../script/install.sh
+ sh ./install.sh
else
echo "Detected office component has been installed in $OFFICE_HOME"
fi
@@ -28,5 +28,5 @@ fi
echo "Starting kkFileView..."
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 "If this project is helpful to you, please star it in https://gitee.com/kekingcn/file-online-preview"
-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 &
+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=../config/application.properties -jar kkFileView-2.2.0-SNAPSHOT.jar > ../log/kkFileView.log 2>&1 &
diff --git a/jodconverter-web/src/main/conf/application.properties b/jodconverter-web/src/main/config/application.properties
similarity index 100%
rename from jodconverter-web/src/main/conf/application.properties
rename to jodconverter-web/src/main/config/application.properties
diff --git a/jodconverter-web/src/main/resources/META-INF/app.properties b/jodconverter-web/src/main/resources/META-INF/app.properties
deleted file mode 100644
index ca9d3a6d..00000000
--- a/jodconverter-web/src/main/resources/META-INF/app.properties
+++ /dev/null
@@ -1 +0,0 @@
-app.id=file-preview