forked from eirslett/frontend-maven-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DCA11Y-1145: add node version manager support to node and npm installers
- Loading branch information
Showing
22 changed files
with
520 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/GlobalCache.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.github.eirslett.maven.plugins.frontend.lib; | ||
|
||
import com.github.eirslett.maven.plugins.frontend.lib.version.manager.VersionManagerCache; | ||
import com.github.eirslett.maven.plugins.frontend.lib.version.manager.client.VersionManagerClient; | ||
|
||
// TODO add builder pattern | ||
public class GlobalCache { | ||
|
||
private static InstallConfig installConfig; | ||
|
||
private static VersionManagerCache versionManagerCache; | ||
|
||
|
||
public static InstallConfig getInstallConfig() { | ||
assert installConfig != null; | ||
return installConfig; | ||
} | ||
|
||
public static void setInstallConfig(InstallConfig installConfig) { | ||
GlobalCache.installConfig = installConfig; | ||
} | ||
|
||
public static VersionManagerCache getVersionManagerCache() { | ||
assert versionManagerCache != null; | ||
return versionManagerCache; | ||
} | ||
|
||
public static void setVersionManagerCache(VersionManagerCache versionManagerCache) { | ||
GlobalCache.versionManagerCache = versionManagerCache; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.