Skip to content

Commit

Permalink
Compile with UTF-8 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Mar 17, 2014
1 parent 41660bf commit a0e85ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions java/compile-and-delete-generated-i18n-code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@
# on OS X. So we'll launch it from a shell script instead.
# After compilation we delete the source so that Maven doesn't try to compile it.
#
# This script is only run when building on OS X. On other operating systems Maven
# will not run this script and compilation happens in the usual way.

set -e
mkdir -p target/classes
javac -classpath src/main/java -d target/classes `find target/generated-sources -name *.java`
javac -encoding UTF-8 -classpath src/main/java -d target/classes `find target/generated-sources -name *.java`

# Back up the bare minimum (English)
mv target/generated-sources/i18n/java/cucumber/api/java/en target/java-en
# Delete everything else
rm -rf target/generated-sources/i18n/java/cucumber/api/java/*
# Restore the backup
# Restore the backup of English sources so that compilation still works in the IDE.
mv target/java-en target/generated-sources/i18n/java/cucumber/api/java/en

0 comments on commit a0e85ec

Please sign in to comment.