Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #17 from int128/fix-default-charset
Browse files Browse the repository at this point in the history
Fix encoding error on Windows multi-byte environment
  • Loading branch information
int128 authored Nov 30, 2016
2 parents d927f42 + 5652ace commit 97188e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class GenerateSwaggerCode extends JavaExec {

def GenerateSwaggerCode() {
outputDir = new File(project.buildDir, 'swagger-code')
defaultCharacterEncoding = 'UTF-8'
}

@TaskAction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ class GenerateSwaggerCodeHelp extends JavaExec {
@Input
String language

def GenerateSwaggerCodeHelp() {
defaultCharacterEncoding = 'UTF-8'
}

@TaskAction
@Override
void exec() {
Expand Down

0 comments on commit 97188e9

Please sign in to comment.