Commit 4e4cc5f8 authored by Evan W. Patton's avatar Evan W. Patton Committed by ellelili2025

Fix PlayApp build on Windows

Change-Id: Ic74aa9b4800d44a11ab1b5ddf7403d110aacf750
parent 6516283d
......@@ -94,6 +94,7 @@ public final class Compiler {
private static final Object SYNC_KAWA_OR_DX = new Object();
private static final String SLASH = File.separator;
private static final String SLASHREGEX = File.separatorChar == '\\' ? "\\\\" : "/";
private static final String COLON = File.pathSeparator;
private static final String ZIPSLASH = "/";
......@@ -2319,7 +2320,7 @@ public final class Compiler {
aaptPackageCommandLineArgs.add("--output-text-symbols");
aaptPackageCommandLineArgs.add(symbolOutputDir.getAbsolutePath());
aaptPackageCommandLineArgs.add("--no-version-vectors");
appRJava = new File(sourceOutputDir, packageName.replaceAll("\\.", SLASH) + SLASH + "R.java");
appRJava = new File(sourceOutputDir, packageName.replaceAll("\\.", SLASHREGEX) + SLASH + "R.java");
appRTxt = new File(symbolOutputDir, "R.txt");
}
String[] aaptPackageCommandLine = aaptPackageCommandLineArgs.toArray(new String[aaptPackageCommandLineArgs.size()]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment