Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build-jar.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
if git submodule status | grep \( > /dev/null ; then
mkdir -p build
find src -name "*.java" | xargs javac -d build
find src -name "*.java" | xargs javac -encoding utf-8 -d build
if [[ "$OSTYPE" == "darwin"* ]]; then
find src -type f -not -name "*.java" -exec rsync -R {} build \;
else
Expand Down
8 changes: 6 additions & 2 deletions test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
javac -cp rars.jar test/Test.java
java -cp test:rars.jar Test
javac -encoding utf-8 -cp rars.jar test/Test.java
if [[ "$OSTYPE" == "msys" ]] || [[ "$OSTYPE" == "cygwin" ]]; then
java -Dfile.encoding=UTF8 -cp "test;rars.jar" Test
else
java -Dfile.encoding=UTF8 -cp test:rars.jar Test
fi
rm test/Test.class