protected PackageConfigData loadPackageConfig(PackageItem packageItem) {
   PackageConfigData data =
       PackageConfigDataFactory.createPackageConfigDataWithDependencies(packageItem);
   if (data.isSnapshot()) {
     data.setSnapshotName(packageItem.getSnapshotName());
   }
   return data;
 }
Ejemplo n.º 2
0
 /** Get a download link for the binary package. */
 public static String getDownloadLink(PackageConfigData conf) {
   String hurl = GWT.getModuleBaseURL() + "package/" + conf.getName(); // NON-NLS
   if (!conf.isSnapshot()) {
     hurl = hurl + "/" + SnapshotView.LATEST_SNAPSHOT;
   } else {
     hurl = hurl + "/" + conf.getSnapshotName();
   }
   final String uri = hurl;
   return uri;
 }
  protected PackageConfigData loadGlobalPackage() {
    PackageItem item = rulesRepository.loadGlobalArea();

    PackageConfigData data =
        PackageConfigDataFactory.createPackageConfigDataWithOutDependencies(item);

    if (data.isSnapshot()) {
      data.setSnapshotName(item.getSnapshotName());
    }

    return data;
  }