Skip to content

Commit

Permalink
Formatting and system property switch to force imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver-Loeffler committed Jan 23, 2022
1 parent c64c4ad commit 097e8c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ public static synchronized AppPlatformDirectories getAppDirectories() {
assert platformSpecificDirectories != null;
return platformSpecificDirectories;
}



/*
* TODO:
* How to deal with snapshot versions?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ AppPlatformDirectories getPlatformDirectories() {
* @return {@link ImportResult} describing how the activity was completed.
*/
ImportResult performImportWhenDesired() {
String forceImport = System.getProperty("forceImport", "false");
if ("true".equalsIgnoreCase(forceImport)) {
preferences.remove(PREF_IMPORT_USER_LIBRARY);
}
boolean requiresImport = preferences.getBoolean(PREF_IMPORT_USER_LIBRARY, true);
if (requiresImport) {
return importPreviousVersionUserLibrary();
Expand Down

0 comments on commit 097e8c3

Please sign in to comment.