|
|
@ -92,15 +92,15 @@ class Installer {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void install(List<String> artifactIdentifiers) throws Exception {
|
|
|
|
public void install(List<String> artifactIdentifiers) throws Exception {
|
|
|
|
File libDirectory = getDefaultExtDirectory();
|
|
|
|
File extDirectory = getDefaultExtDirectory();
|
|
|
|
libDirectory.mkdirs();
|
|
|
|
extDirectory.mkdirs();
|
|
|
|
Log.info("Installing into: " + libDirectory);
|
|
|
|
Log.info("Installing into: " + extDirectory);
|
|
|
|
List<File> artifactFiles = this.dependencyResolver.resolve(artifactIdentifiers);
|
|
|
|
List<File> artifactFiles = this.dependencyResolver.resolve(artifactIdentifiers);
|
|
|
|
for (File artifactFile : artifactFiles) {
|
|
|
|
for (File artifactFile : artifactFiles) {
|
|
|
|
int installCount = getInstallCount(artifactFile);
|
|
|
|
int installCount = getInstallCount(artifactFile);
|
|
|
|
if (installCount == 0) {
|
|
|
|
if (installCount == 0) {
|
|
|
|
FileCopyUtils.copy(artifactFile,
|
|
|
|
FileCopyUtils.copy(artifactFile,
|
|
|
|
new File(libDirectory, artifactFile.getName()));
|
|
|
|
new File(extDirectory, artifactFile.getName()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
setInstallCount(artifactFile, installCount + 1);
|
|
|
|
setInstallCount(artifactFile, installCount + 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|