Commit 71bca4d2 authored by Evan W. Patton's avatar Evan W. Patton Committed by Jeffrey Schiller

Fix Windows build problems in AARLibrary (#1083)

A hard-coded '/' breaks builds involving Maps on Windows. This commit
switches to using File.getName() to get the name of archive before
stripping its '.aar' file extension.

Change-Id: I2b43569011975ef1d1ee33f28fbc4d1270e5f331
parent 0642bc77
...@@ -122,8 +122,8 @@ public class AARLibrary { ...@@ -122,8 +122,8 @@ public class AARLibrary {
*/ */
public AARLibrary(final File aar) { public AARLibrary(final File aar) {
aarPath = aar; aarPath = aar;
String temp = aar.getAbsolutePath(); String temp = aar.getName();
name = temp.substring(temp.lastIndexOf('/'), temp.length()-4); name = temp.substring(0, temp.length()-4);
} }
public File getFile() { public File getFile() {
......
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