Skip to content

Commit

Permalink
build: Removed unnecessary file.encoding property (default is UTF-8)
Browse files Browse the repository at this point in the history
  • Loading branch information
cederberg committed Jan 14, 2025
1 parent d630a4b commit 3efed02
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions bin/rapidcontext
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ else
fi
done
if [[ "$JAVA_HOME" == "" ]] ; then
echo "ERROR: Failed to find java version 1.4 or higher." >&2
echo "ERROR: Failed to find java 21 or higher." >&2
exit 1
fi
JAVA=$JAVA_HOME/bin/java
Expand All @@ -66,7 +66,6 @@ LOGGING="lib/logging.properties"
if [[ "$JAVA_TOOL_OPTIONS" == *DEBUG* ]] ; then
LOGGING="lib/debug.properties"
fi
JAVA_TOOL_OPTIONS="$JAVA_TOOL_OPTIONS -Dfile.encoding=UTF-8"
JAVA_TOOL_OPTIONS="$JAVA_TOOL_OPTIONS -Djava.util.logging.config.file=$LOGGING"
JAVA_TOOL_OPTIONS="$JAVA_TOOL_OPTIONS -Dorg.eclipse.jetty.server.Request.maxFormContentSize=1000000"
JAVA_TOOL_OPTIONS="$JAVA_TOOL_OPTIONS --add-opens=java.base/java.net=ALL-UNNAMED"
Expand Down
1 change: 0 additions & 1 deletion bin/rapidcontext.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ set _CONF=lib\debug.properties

::Set options
:CONFIG
set JAVA_TOOL_OPTIONS=%JAVA_TOOL_OPTIONS% -Dfile.encoding=UTF-8
set JAVA_TOOL_OPTIONS=%JAVA_TOOL_OPTIONS% -Djava.util.logging.config.file=%_CONF%
set JAVA_TOOL_OPTIONS=%JAVA_TOOL_OPTIONS% -Dorg.eclipse.jetty.server.Request.maxFormContentSize=1000000
set JAVA_TOOL_OPTIONS=%JAVA_TOOL_OPTIONS% --add-opens=java.base/java.net=ALL-UNNAMED
Expand Down
1 change: 0 additions & 1 deletion share/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ WORKDIR /opt/rapidcontext/
# EXPOSE 80/tcp
# VOLUME /opt/local
ENV JAVA_TOOL_OPTIONS \
-Dfile.encoding=UTF-8 \
-Djava.util.logging.config.file=lib/logging.properties \
-Dorg.eclipse.jetty.server.Request.maxFormContentSize=1000000 \
--add-opens=java.base/java.net=ALL-UNNAMED \
Expand Down

0 comments on commit 3efed02

Please sign in to comment.