Skip to content

Commit

Permalink
fix appveyor build by setting jvm parameter file.encoding to UTF-8
Browse files Browse the repository at this point in the history
use java.io canonical name UTF8 to set encoding
set file.encoding jvm parameter
  • Loading branch information
ancho committed Apr 29, 2020
1 parent ee64954 commit a842fbe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ environment:
install:
- SET PATH=%JAVA_HOME%\bin;%PATH%
- echo %PATH%
- systeminfo
- java -version
- gradlew.bat --version
- file C:\projects\jbake\jbake-core\src\test\resources\fixture\jbake.properties
build_script:
- gradlew.bat -i assemble
- gradlew.bat -Dfile.encoding=UTF-8 -i assemble
test_script:
- gradlew.bat -i -S check
- gradlew.bat -Dfile.encoding=UTF-8 -i -S check
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
public class ConfigUtil {

public static final char LIST_DELIMITER = ',';
public static final String DEFAULT_ENCODING = "UTF-8";
public static final String DEFAULT_ENCODING = "UTF8";
private static final Logger LOGGER = LoggerFactory.getLogger(ConfigUtil.class);
private static final String LEGACY_CONFIG_FILE = "custom.properties";
private static final String CONFIG_FILE = "jbake.properties";
Expand Down

0 comments on commit a842fbe

Please sign in to comment.