diff options
-rw-r--r-- | sources/scala/tools/scala4ant/AntAdaptor.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sources/scala/tools/scala4ant/AntAdaptor.scala b/sources/scala/tools/scala4ant/AntAdaptor.scala index 3bdb356821..9cc858ceab 100644 --- a/sources/scala/tools/scala4ant/AntAdaptor.scala +++ b/sources/scala/tools/scala4ant/AntAdaptor.scala @@ -94,6 +94,13 @@ package scala.tools.scala4ant { val cmd = new Commandline(); val cp = new Path( this.project ); + //- encoding? + val stask = this.attributes.asInstanceOf[ScalacTask]; + if(null != stask.getEncoding()) { + cmd.createArgument().setValue( "-encoding" ); + cmd.createArgument().setValue( stask.getEncoding() ); + } + if( destDir != null ) { cmd.createArgument().setValue( "-d" ); cmd.createArgument().setFile( destDir ); |