Skip to content

Commit

Permalink
Issue 51
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Apr 6, 2013
1 parent 4b39404 commit bbfd5ea
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ This plugin could be considered the 'alter ego' of maven apt plugin http://mojo.
</roles>
</developer>
</developers>
<contributors>
<contributor>
<email>velo.br@gmail.com</email>
<name>Marvin Froeder</name>
<timezone>GMT-3</timezone>
</contributor>
</contributors>
<licenses>
<license>
<name>GNU LESSER GENERAL PUBLIC LICENSE</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
Expand Down Expand Up @@ -170,6 +171,14 @@ interface ArtifactClosure {
*/
@Parameter( defaultValue = "false")
private boolean appendSourceArtifacts = false;

/**
* The character set used for decoding sources
*
* @since 2.2.1
*/
@Parameter(property = "project.build.sourceEncoding", readonly = true, required = true)
private String encoding;

/**
* for execution synchronization
Expand Down Expand Up @@ -464,7 +473,7 @@ public void execute(Artifact artifact) {
return;
}

final StandardJavaFileManager fileManager = compiler.getStandardFileManager(null, null, null);
final StandardJavaFileManager fileManager = compiler.getStandardFileManager(null, null, Charset.forName(encoding));

if( files!=null && !files.isEmpty() ) {

Expand Down

0 comments on commit bbfd5ea

Please sign in to comment.