Skip to content

Commit

Permalink
Merge pull request dadoonet#1271 from NickUfer/fix_jpeg2000
Browse files Browse the repository at this point in the history
fix: not working optional libraries (e.g. jpeg2000)
  • Loading branch information
dadoonet authored Oct 12, 2021
2 parents d44afec + 7c9f530 commit 79863c8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
<docker.ocr.assembly.descriptor>${docker.noocr.assembly.descriptor}</docker.ocr.assembly.descriptor>
<docker.ocr.assembly.mode>${docker.noocr.assembly.mode}</docker.ocr.assembly.mode>
<docker.ocr.args.langsPkg>imagemagick tesseract-ocr tesseract-ocr-all</docker.ocr.args.langsPkg>

<distribution.mainClassName>fr.pilato.elasticsearch.crawler.fs.cli.FsCrawler</distribution.mainClassName>
</properties>

<dependencies>
Expand Down Expand Up @@ -85,8 +87,7 @@
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>fr.pilato.elasticsearch.crawler.fs.cli.FsCrawler</mainClass>
<mainClass>${distribution.mainClassName}</mainClass>
</manifest>
</archive>
</configuration>
Expand Down
2 changes: 1 addition & 1 deletion distribution/src/main/scripts/fscrawler
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ esac
# If the user defined FS_JAVA_OPTS, we will use it to start the crawler
JAVA_OPTS="$JAVA_OPTS $FS_JAVA_OPTS"

exec "$JAVA" ${JAVA_OPTS} -cp "$FS_CLASSPATH" -jar "$FS_HOME/lib/${project.build.finalName}.jar" "$@"
exec "$JAVA" ${JAVA_OPTS} -cp "$FS_CLASSPATH" "${distribution.mainClassName}" "$@"
2 changes: 1 addition & 1 deletion distribution/src/main/scripts/fscrawler.bat
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ FOR /F "usebackq tokens=1* delims= " %%A IN (!params!) DO (
)
)

%JAVA% %JAVA_OPTS% -cp "%FS_CLASSPATH%" -jar "%FS_HOME%/lib/${project.build.finalName}.jar" !newparams!
%JAVA% %JAVA_OPTS% -cp "%FS_CLASSPATH%" "${distribution.mainClassName}" !newparams!
REM Return to original directory
POPD
ENDLOCAL

0 comments on commit 79863c8

Please sign in to comment.