wrap jvm parameter with -Dargs so this actually works

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1199837 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2011-11-09 16:40:38 +00:00
parent 2541fba5db
commit 64840db75f
1 changed files with 1 additions and 1 deletions

View File

@ -1307,7 +1307,7 @@ public abstract class LuceneTestCase extends Assert {
if (TEST_NIGHTLY) sb.append(" -Dtests.nightly=true");
// TODO we can't randomize this yet (it drives ant crazy) but this makes tests reproduceable
// in case machines have different default charsets...
sb.append(" -Dfile.encoding=" + System.getProperty("file.encoding"));
sb.append(" -Dargs=\"-Dfile.encoding=" + System.getProperty("file.encoding") + "\"");
return sb.toString();
}