Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
Description
Any text entered into the SD card option is automatically capitalized, which can be a pain. For example, a multi-config with a user-defined axis of sd =
{16M 32M} can be entered into the SD card option box as ${sd}. However, all builds fail, and looking at the project configuration shows that the text was changed to ${SD}. The offending code is in EmulatorConfig.java:
sdCardSize = sdCardSize.toUpperCase().replaceAll("[ B]", "");
A similar issue probably exists with locale due to this:
deviceLocale = deviceLocale.substring(0, 2).toLowerCase() +"_"
+ deviceLocale.substring(3).toUpperCase();
Code changed in jenkins
User: Christopher Orr
Path:
src/main/java/hudson/plugins/android_emulator/AndroidEmulator.java
src/main/java/hudson/plugins/android_emulator/EmulatorConfig.java
http://jenkins-ci.org/commit/android-emulator-plugin/eca88909f30a772e37da6c9b419a6915bffd8354
Log:
[FIXED JENKINS-13931] Don't alter SD card value when saving configuration, as it may contain a variable.