Package com.caucho.loader.module

Examples of com.caucho.loader.module.Artifact


  public void resolve(ArrayList<Artifact> artifactList,
                      ArtifactDependency dependency)
  {
    for (Entry entry : _entryList) {
      Artifact artifact = entry.getArtifact();

      if (artifact != null && artifact.isMatch(dependency))
        artifactList.add(artifact);
    }
  }
View Full Code Here


      String lowerKey = key.toLowerCase(Locale.ENGLISH);

      if (! lowerKey.startsWith("meta-inf/maven/"))
        continue;

      Artifact artifact = readPom(jarPath, key);

      if (artifact != null)
        return new Entry(jarPath, artifact, jarMap);
    }
View Full Code Here

    try {
      MavenProject project = new MavenProject();

      new Config().configure(project, jar.lookup(key));

      Artifact artifact = project.toArtifact(jarPath);

      return artifact;
    } catch (IOException e) {
      log.log(Level.WARNING, e.toString(), e);
View Full Code Here

  public void resolve(ArrayList<Artifact> artifactList,
          ArtifactDependency dependency)
  {
    for (Entry entry : _entryList) {
      Artifact artifact = entry.getArtifact();

      if (artifact != null && artifact.isMatch(dependency))
  artifactList.add(artifact);
    }
  }
View Full Code Here

      String lowerKey = key.toLowerCase();

      if (! lowerKey.startsWith("meta-inf/maven/"))
  continue;

      Artifact artifact = readPom(jarPath, key);

      if (artifact != null)
  return new Entry(jarPath, artifact, jarMap);
    }
View Full Code Here

    try {
      MavenProject project = new MavenProject();

      new Config().configure(project, jar.lookup(key));

      Artifact artifact = project.toArtifact(jarPath);

      return artifact;
    } catch (IOException e) {
      log.log(Level.WARNING, e.toString(), e);
View Full Code Here

      try {
  MavenProject project = new MavenProject();

  new Config().configure(project, _path);

  Artifact artifact = project.toArtifact(_path);

  for (ArtifactDependency dependency : artifact.getDependencies())  {
    loader.createArtifactManager().addDependency(dependency);
  }
      } catch (Exception e) {
  throw ConfigException.create(e);
      }
View Full Code Here

              null,
              _parent.getArtifactId(),
              parentRange);
    }
   
    return new Artifact(path, _groupId, null, _artifactId, _version,
      parent, _dependencyList);
  }
View Full Code Here

                                      null,
                                      _parent.getArtifactId(),
                                      parentRange);
    }
   
    return new Artifact(path, _groupId, null, _artifactId, _version,
                        parent, _dependencyList);
  }
View Full Code Here

TOP

Related Classes of com.caucho.loader.module.Artifact

Copyright © 2018 www.massapicom. 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.