Examples of Dependency


Examples of org.jboss.forge.addon.dependencies.Dependency

   private DependencyInstaller installer;

   @Override
   public boolean install()
   {
      Dependency dependency = installer.install(getFaceted(), FORGE_CONTAINER_API_DEPENDENCY);
      return dependency != null;
   }
View Full Code Here

Examples of org.jboss.forge.dependencies.Dependency

      File file = artifact.getFile();

      @SuppressWarnings("unchecked")
      FileResource<?> artifactResource = factory.create(FileResource.class, file);

      Dependency d = DependencyBuilder.create().setArtifactId(artifact.getArtifactId())
               .setGroupId(artifact.getGroupId()).setVersion(artifact.getBaseVersion())
               .setPackaging(artifact.getExtension()).setArtifact(artifactResource)
               .setOptional(artifactDependency.isOptional())
               .setClassifier(artifact.getClassifier())
               .setScopeType(artifactDependency.getScope());
View Full Code Here

Examples of org.jboss.forge.project.dependencies.Dependency

         ShellMessages
                  .warn(shell,
                           "There is an update pending. Restart Forge for the update to take effect. To abort this update, type 'forge update-abort'");
         return;
      }
      Dependency forgeDistribution = getLatestAvailableDistribution();
      if (forgeDistribution == null)
      {
         ShellMessages.info(shell, "Forge is up to date! Enjoy!");
      }
      else
      {
         shell.print(ShellColor.YELLOW, "***INFO*** ");
         shell.print("This Forge installation will be updated to ");
         shell.println(ShellColor.BOLD, forgeDistribution.getVersion());
         if (prompt.promptBoolean("Is that ok ?", true))
         {
            updateForge(forgeDistribution);
         }
      }
View Full Code Here

Examples of org.jboss.test.microcontainer.beans.Dependency

   public void testInterceptorWithDependencyCorrectOrder() throws Exception
   {
      deploy(getFile0());
      try
      {
         Dependency dependency1 = (Dependency) getBean("Dependency1");
         assertNotNull(dependency1);
         deploy(getFile1());
         Dependency dependency2 = (Dependency) getBean("Dependency2");
         assertNotNull(dependency2);
         try
         {
            deploy(getFile2());
            try
View Full Code Here

Examples of org.jfrog.build.api.Dependency

                    project.log(
                            "[buildinfo:collect] Artifact Download Report for configuration: " + configuration + " : " + artifactsReport,
                            Project.MSG_DEBUG);
                    ModuleRevisionId id = artifactsReport.getArtifact().getModuleRevisionId();
                    String type = getType(artifactsReport.getArtifact());
                    Dependency dependency = findDependencyInList(id, type, moduleDependencies);
                    if (dependency == null) {
                        DependencyBuilder dependencyBuilder = new DependencyBuilder();
                        dependencyBuilder.type(type).scopes(Lists.newArrayList(configuration));
                        String idString = getModuleIdString(id.getOrganisation(),
                                id.getName(), id.getRevision());
                        dependencyBuilder.id(idString);
                        File file = artifactsReport.getLocalFile();
                        Map<String, String> checksums;
                        try {
                            checksums = FileChecksumCalculator.calculateChecksums(file, MD5, SHA1);
                        } catch (Exception e) {
                            throw new RuntimeException(e);
                        }
                        String md5 = checksums.get(MD5);
                        String sha1 = checksums.get(SHA1);
                        dependencyBuilder.md5(md5).sha1(sha1);
                        dependency = dependencyBuilder.build();
                        moduleDependencies.add(dependency);
                        project.log(
                                "[buildinfo:collect] Added dependency '" + dependency.getId() + "'", Project.MSG_DEBUG);
                    } else {
                        if (!dependency.getScopes().contains(configuration)) {
                            dependency.getScopes().add(configuration);
                            project.log(
                                    "[buildinfo:collect] Added scope " + configuration +
                                            " to dependency '" + dependency.getId() + "'", Project.MSG_DEBUG);
                        } else {
                            project.log(
                                    "[buildinfo:collect] Find same dependency twice in configuration '" + configuration +
                                            "' for dependency '" + artifactsReport + "'", Project.MSG_WARN);
                        }
View Full Code Here

Examples of org.libreplan.business.planner.entities.Dependency

    }

    @Test
    @Transactional
    public void taskStatusCalculationTakesIntoAccountDifferentDepType() {
        Dependency dependency1 = mockDependency(Type.END_START);
        dependency1.getOrigin().setAdvancePercentage(BigDecimal.ONE);
        Dependency dependency2 = mockDependency(Type.START_START);
        dependency2.getOrigin().setAdvancePercentage(new BigDecimal("0.0001", new MathContext(4)));
        assertFalse(task.isFinished());
        assertFalse(task.isInProgress());
        assertTrue(task.getTaskStatus() == TaskStatusEnum.READY_TO_START);
        dependency2.getOrigin().setAdvancePercentage(BigDecimal.ZERO);
        assertTrue(task.getTaskStatus() == TaskStatusEnum.BLOCKED);
    }
View Full Code Here

Examples of org.moxie.Dependency

  private static final String CHECK_SELECTED_VERSION_KNOWN = "check selected version known";

  private static final String CHECK_SELECTED_VERSION = "check selected version";

  public void testRange() throws InvalidVersionSpecificationException, OverConstrainedVersionException {
    Dependency artifact = null;

    VersionRange range = VersionRange.createFromVersionSpec("(,1.0]");
    List<Restriction> restrictions = range.getRestrictions();
    assertEquals(CHECK_NUM_RESTRICTIONS, 1, restrictions.size());
    Restriction restriction = (Restriction) restrictions.get(0);
View Full Code Here

Examples of org.owasp.dependencycheck.dependency.Dependency

            }
            Model pom = null;
            try {
                if (pomEntries.size() > 1) {
                    //extract POM to its own directory and add it as its own dependency
                    final Dependency newDependency = new Dependency();
                    pom = extractPom(path, jar, newDependency);

                    final String displayPath = String.format("%s%s%s",
                            dependency.getFilePath(),
                            File.separator,
                            path);
                    final String displayName = String.format("%s%s%s",
                            dependency.getFileName(),
                            File.separator,
                            path);

                    newDependency.setFileName(displayName);
                    newDependency.setFilePath(displayPath);
                    setPomEvidence(newDependency, pom, pomProperties, null);
                    engine.getDependencies().add(newDependency);
                    Collections.sort(engine.getDependencies());
                } else {
                    if (externalPom == null) {
View Full Code Here

Examples of org.pentaho.packageManagement.Dependency

      if (conflicts.size() > 0) {
        System.err.println("Package " + packageName + " requires the following packages:\n");
        Iterator<Dependency> depI = dependencies.iterator();
        while (depI.hasNext()) {
          Dependency d = depI.next();
          System.err.println("\t" + d);
        }
       
        System.err.println("\nThere are conflicting dependencies:\n");
        Set<String> pNames = conflicts.keySet();
        Iterator<String> pNameI = pNames.iterator();
        while (pNameI.hasNext()) {
          String pName = pNameI.next();
          System.err.println("Conflicts for " + pName);
          List<Dependency> confsForPackage = conflicts.get(pName);
          Iterator<Dependency> confs = confsForPackage.iterator();
          while (confs.hasNext()) {
            Dependency problem = confs.next();
            System.err.println("\t" + problem);
          }
        }
       
        System.err.println("Unable to continue with installation.");
        return; // bail out here.
      }
     
      // Next check all dependencies against what is installed and
      // inform the user about which installed packages will be altered. Also
      // build the list of only those packages that need to be installed or
      // upgraded (excluding those that are already installed and are OK).
      List<PackageConstraint> needsUpgrade = new ArrayList<PackageConstraint>();
      List<Package> finalListToInstall = new ArrayList<Package>();
     
      Iterator<Dependency> depI = dependencies.iterator();
      while (depI.hasNext()) {
        Dependency toCheck = depI.next();
        if (toCheck.getTarget().getPackage().isInstalled()) {
          String toCheckName =
            toCheck.getTarget().getPackage().
            getPackageMetaDataElement("PackageName").toString();
          Package installedVersion = PACKAGE_MANAGER.getInstalledPackageInfo(toCheckName);
          if (!toCheck.getTarget().checkConstraint(installedVersion)) {
            needsUpgrade.add(toCheck.getTarget());
            Package mostRecent = toCheck.getTarget().getPackage();
            if (toCheck.getTarget() instanceof
                org.pentaho.packageManagement.VersionPackageConstraint) {
              mostRecent =
                WekaPackageManager.mostRecentVersionWithRespectToConstraint(toCheck.getTarget());
            }
            finalListToInstall.add(mostRecent);
          }
        } else {
          Package mostRecent = toCheck.getTarget().getPackage();
          if (toCheck.getTarget() instanceof
              org.pentaho.packageManagement.VersionPackageConstraint) {
            mostRecent =
              WekaPackageManager.mostRecentVersionWithRespectToConstraint(toCheck.getTarget());
          }
          finalListToInstall.add(mostRecent);
        }
      }
View Full Code Here

Examples of org.pomizer.model.Dependency

       
        if (null != dependenciesNode) {
            for (int i = 0; i < dependenciesNode.nodeCount(); i++) {
                Node dependecyNode = (Node) dependenciesNode.node(i);
                if (Node.ELEMENT_NODE == dependecyNode.getNodeType()) {
                    Dependency dependency = XmlUtils.readDependencyFromXml(dependecyNode, true);
                    if (-1 == dependencies.indexOf(dependency)) {
                        dependencies.add(dependency);
                    }
                }
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.