James Carr wrote:
> 
> Is there anyway I can set the file.encoding from the build script for its
> run?
> 

Tests always run in a separate JVM, so you have to set the system property
there:

test { // or whatever your test task is called
  systemProperty "file.encoding", "ISO-8859-1"
}

--
Peter Niederwieser
Principal Engineer, Gradleware 
http://gradleware.com
Creator, Spock Framework 
http://spockframework.org
Twitter: @pniederw


--
View this message in context: 
http://gradle.1045684.n5.nabble.com/setting-file-encoding-tp4615898p4615999.html
Sent from the gradle-user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to