fix line ending problem with args.txt for Windows when exporting from others (#1890)

This commit is contained in:
Ben Fry
2013-06-20 10:51:40 -04:00
parent 09a0de25d0
commit 2a8fabba38

View File

@@ -1448,10 +1448,10 @@ public class JavaBuild {
File argsFile = new File(destFolder + "/lib/args.txt");
PrintWriter pw = PApplet.createWriter(argsFile);
pw.println(runOptions);
pw.println(sketch.getName());
pw.println(exportClassPath);
// Since this is only on Windows, make sure we use Windows CRLF
pw.print(runOptions + "\r\n");
pw.print(sketch.getName() + "\r\n");
pw.print(exportClassPath);
pw.flush();
pw.close();