Beispiel #1
0
 private PackageMaterialConfig getPackageMaterialConfigWithAutoUpdateTrue() {
   PackageDefinition packageDefinition =
       new PackageDefinition("packageWithAutoUpdateFalse", "DTDC Package", new Configuration());
   packageDefinition.setRepository(PackageRepositoryMother.create("DTDC"));
   packageDefinition.setAutoUpdate(true);
   return new PackageMaterialConfig(
       new CaseInsensitiveString("Krish"), "packageWithAutoUpdateTrue", packageDefinition);
 }
Beispiel #2
0
 private PackageMaterialConfig getPackageMaterialConfigWithAutoUpdateFalse() {
   PackageDefinition packageDefinition =
       new PackageDefinition("packageWithAutoUpdateFalse", "DLF Package", new Configuration());
   packageDefinition.setRepository(PackageRepositoryMother.create("DLF"));
   packageDefinition.setAutoUpdate(false);
   return new PackageMaterialConfig(
       new CaseInsensitiveString("JamesBond"), "packageWithAutoUpdateFalse", packageDefinition);
 }
Beispiel #3
0
 public PackageDefinition findPackage(String packageId) {
   PackageDefinition packageDefinition = null;
   for (PackageRepository repository : this.getCurrentConfig().getPackageRepositories()) {
     for (PackageDefinition pkg : repository.getPackages()) {
       if (packageId.equals(pkg.getId())) {
         packageDefinition = pkg;
         break;
       }
     }
   }
   return packageDefinition;
 }