Examples of Dependency


Examples of org.apache.maven.project.Dependency

    public void setArtifacts(List artifacts) {
        this.artifacts = artifacts;
        TreeMap tree = new TreeMap();
        for (Iterator iterator = artifacts.iterator(); iterator.hasNext();) {
            Artifact artifact = (Artifact) iterator.next();
            Dependency dependency = artifact.getDependency();
            if (dependency.getProperty(PACKAGING_CONFIG_PROPERTY) != null) {
                String orderString = dependency.getProperty(PACKAGING_CONFIG_PROPERTY);
                try {
                    Integer order = Integer.decode(orderString);
                    String artifactString = dependency.getGroupId() + "/" + dependency.getArtifactId() + "/" + dependency.getVersion() + "/" + dependency.getType();
                    tree.put(order, artifactString);
                } catch(NumberFormatException e) {
                    System.out.println("Could not interpret order for " + dependency);
                }
            }
View Full Code Here

Examples of org.apache.tomcat.util.depend.Dependency

      File warFile=dInfo.srcF;
      DependManager dm=(DependManager)context.getContainer().
    getNote("DependManager");
      if( dm!=null ) {
    log( "Adding dependency " + context + " -> " +  warFile );
    Dependency dep=new Dependency();
    dep.setTarget("web.xml");
    dep.setOrigin( warFile );
    dep.setLastModified( warFile.lastModified() );
    dm.addDependency( dep );
    context.getContainer().setNote( "autoDeploy.war", dInfo);

      } else {
    log( "No reloading for " + context + " -> " +  warFile );
View Full Code Here

Examples of org.codehaus.mojo.appassembler.model.Dependency

        assertEquals( asserts[4], util.getClassPath( daemon ) );
    }

    private Dependency createDependency( String relativePath )
    {
        Dependency dependency = new Dependency();
        dependency.setRelativePath( relativePath );
        return dependency;
    }
View Full Code Here

Examples of org.dru.clay.respository.dependency.Dependency

  public void resolve(final File directory, String configuration, Collection<Dependency> dependencies) {
    filterDependencies(Collections.singleton(configuration), dependencies, resolveQueue);

    while (resolveQueue.peek() != null) {
      final ConfigurationContext context = resolveQueue.poll();
      final Dependency dependency = context.getDependency();
      final Group group = dependency.getGroup();
      final UnresolvedArtifact unresolved = dependency.getArtifact();

      final Artifact resolveArtifact = repository.lookup(transport, group, unresolved);

      logger.info("Resolved %s -> %s", unresolved, resolveArtifact);
View Full Code Here

Examples of org.eclipse.aether.graph.Dependency

    }

    public List<DependencyDescriptor> getArtifactDependecies(String artifactName) {
        Artifact artifact = new DefaultArtifact( artifactName );
        CollectRequest collectRequest = new CollectRequest();
        Dependency root = new Dependency( artifact, "" );
        collectRequest.setRoot( root );
        for (RemoteRepository repo : remoteRepositoriesForRequest) {
            collectRequest.addRepository(repo);
        }
        CollectResult collectResult;
View Full Code Here

Examples of org.eclipse.uml2.uml.Dependency

    if(getBase_Package() != null) {
      // Find Conform link
      Iterator<Dependency> itDep = getBase_Package().getClientDependencies().iterator();
      while(itDep.hasNext() && (conform == null)) {
        Dependency currentDependency = itDep.next();
        conform = UMLUtil.getStereotypeApplication(currentDependency, Conform.class);
      }

      // Find ViewPoint
      if(conform != null) {
View Full Code Here

Examples of org.elasticsearch.common.inject.spi.Dependency

    public T get() {
        final Errors errors = new Errors();
        try {
            T t = injector.callInContext(new ContextualCallable<T>() {
                public T call(InternalContext context) throws ErrorsException {
                    Dependency dependency = context.getDependency();
                    return internalFactory.get(errors, context, dependency);
                }
            });
            errors.throwIfNewErrors(0);
            return t;
View Full Code Here

Examples of org.gradle.api.artifacts.Dependency

        assertThat(resolvedConfig.getResolvedArtifacts(), isEmpty());
    }

    @Test
    public void resolveDelegatesToBackingServiceWhenConfigHasDependencies() {
        final Dependency dependencyDummy = context.mock(Dependency.class);
        final ResolvedConfiguration resolvedConfigDummy = context.mock(ResolvedConfiguration.class);

        context.checking(new Expectations() {{
            allowing(configuration).getAllDependencies();
            will(returnValue(toSet(dependencyDummy)));
View Full Code Here

Examples of org.jboss.arquillian.graphene.javascript.Dependency

    public JavaScriptPageExtension(Class<?> clazz) {
        this.target = new JSInterface(clazz);
        if (target.getName() == null || target.getName().length() == 0) {
            throw new IllegalArgumentException("The JavaScript page extension can be created only for class where @JavaScript annotation defines non empty value(). The given class " + clazz + " is not annotation this way.");
        }
        Dependency dependency = clazz.getAnnotation(org.jboss.arquillian.graphene.javascript.Dependency.class);
        if (dependency != null) {
            if (dependency.sources().length == 0 && dependency.interfaces().length != 0) {
                throw new IllegalArgumentException("The JavaScript page extension can't have any interface dependencies when it has no source dependencies. Can't create page extension for " + clazz + ".");
            }
            // load javascript sources
            JavaScript dependencyScript = null;
            for (String source: dependency.sources()) {
                if (dependencyScript == null) {
                    dependencyScript = JavaScript.fromResource(source);
                } else {
                    dependencyScript = dependencyScript.join(JavaScript.fromResource(source));
                }
            }
            // load install() method
            if (target.isInstallable()) {
                JSMethod installMethod = target.getJSMethod(InstallableJavaScript.INSTALL_METHOD);
                String functionCall = target.getName() + "." + installMethod.getName() + "();";
                dependencyScript = dependencyScript.join(JavaScript.fromString(functionCall));
            }
            this.extensionScript = dependencyScript;
            // installation detection
            JavaScript jsInstallationDetection = null;
            StringBuilder builder = new StringBuilder();
            for (String object: target.getName().split("\\.")) {
                if (jsInstallationDetection == null) {
                    jsInstallationDetection = JavaScript.fromString("return (typeof " + object + " != 'undefined')");
                } else {
                    jsInstallationDetection = jsInstallationDetection.append(" && (typeof " + builder.toString() + object + " != 'undefined')");
                }
                builder.append(object).append(".");
            }
            installationDetectionScript = jsInstallationDetection;
            // load dependencies
            Collection<String> dependencies = new ArrayList<String>();
            for (Class<?> dependencyInterface: dependency.interfaces()) {
                org.jboss.arquillian.graphene.javascript.JavaScript jsDependencyAnnoation = dependencyInterface.getAnnotation(org.jboss.arquillian.graphene.javascript.JavaScript.class);
                if (jsDependencyAnnoation == null) {
                    throw new IllegalArgumentException("There is a dependency " + dependencyInterface + " of " + clazz + " which isn't annotated by @JavaScript annoation. The JavaScript page extension can't be created.");
                }
                if (jsDependencyAnnoation.value() == null || jsDependencyAnnoation.value().length() == 0) {
View Full Code Here

Examples of org.jboss.beans.metadata.api.annotations.Dependency

      super(SecurityDomain.class);
   }

   protected List<? extends MetaDataVisitorNode> internalApplyAnnotation(ClassInfo info, MetaData retrieval, SecurityDomain annotation, KernelControllerContext context) throws Throwable
   {
      Dependency dependency = annotation.annotationType().getAnnotation(Dependency.class);
      if (dependency == null)
         throw new IllegalArgumentException("Null @Dependency.");

      DependencyInfo dependencies = context.getDependencyInfo();

      SecurityDomainDependencyFactory factory = null;
      // try to find existing security domain dependency factory
      // or what ever kind of lookup
      KernelController controller = context.getKernel().getController();
      ControllerContext smCC = controller.getInstalledContext(annotation.securityManagerName());
      if (smCC != null)
      {
         Object target = smCC.getTarget();
         if (target != null && target instanceof SecurityDomainDependencyFactory)
            factory = SecurityDomainDependencyFactory.class.cast(target);
      }

      if (factory == null)
         factory = (SecurityDomainDependencyFactory)dependency.factory().newInstance();

      DependencyItem item = factory.createDependencyItem(annotation, dependency);
      dependencies.addIDependOn(item);

      return null;
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.