Examples of resolve()


Examples of hudson.maven.MavenEmbedder.resolve()

            }

      private File resolvePluginFile(MavenEmbedder embedder, String artifactId, String version, String groupId, String type)
          throws MavenEmbedderException, ComponentLookupException, AbstractArtifactResolutionException {
        final Artifact jpi = embedder.createArtifact(groupId, artifactId, version, "compile"/*doesn't matter*/, type);
        embedder.resolve(jpi, Arrays.asList(embedder.createRepository("http://maven.glassfish.org/content/groups/public/","repo")),embedder.getLocalRepository());
        return jpi.getFile();
       
      }
        });
    }
View Full Code Here

Examples of hudson.model.PermalinkProjectAction.Permalink.resolve()

        PermalinkList permalinks = job.getPermalinks();
        Permalink p = permalinks.get(permalink);
        if(p==null)
            throw new ResolvedFailedException(Messages.WorkspaceSnapshotSCM_NoSuchPermalink(permalink,jobName));

        AbstractBuild<?,?> b = (AbstractBuild<?,?>)p.resolve(job);
        if(b==null)
            throw new ResolvedFailedException(Messages.WorkspaceSnapshotSCM_NoBuild(permalink,jobName));

        WorkspaceSnapshot snapshot = b.getAction(WorkspaceSnapshot.class);
        if(snapshot==null)
View Full Code Here

Examples of info.openurl.oom.Service.resolve()

                for (int k = 0; response == null && k < descriptors.length; ++k) {
                    Object descriptor = descriptors[k];
                    if (descriptor instanceof Service) {
                        Service service = (Service) descriptor;
                        try {
                            response = service.resolve(
                            // this,
                                    serviceType, contextObject, openURLRequest, this);
                        } catch (Exception e) {
                            throw new OpenURLException(e.getMessage(), e);
                        }
View Full Code Here

Examples of io.fabric8.agent.DeploymentBuilder.resolve()

        properties.setProperty("org.osgi.framework.system.capabilities.extra",
                        "osgi.service;effective:=active;objectClass=org.osgi.service.packageadmin.PackageAdmin," +
                        "osgi.service;effective:=active;objectClass=org.osgi.service.startlevel.StartLevel," +
                        "osgi.service;effective:=active;objectClass=org.osgi.service.url.URLHandlers");
        Framework felix = new Felix(properties);
        Collection<Resource> resources = builder.resolve(felix.adapt(BundleRevision.class), false);

        for (Resource resource : resources) {
            System.out.println("Resource: " + getUri(resource));
        }
View Full Code Here

Examples of io.fabric8.api.PlaceholderResolver.resolve()

        FabricService fabricService = createMock(FabricService.class);
        expect(fabricService.adapt(CuratorFramework.class)).andReturn(curator).anyTimes();
        replay(fabricService);

        PlaceholderResolver resolver = getEncryptedPropertyResolver();
        assertEquals("encryptedpassword",resolver.resolve(fabricService, null, null, null, "crypt:URdoo9++D3tsoC9ODrTfLNK5WzviknO3Ig6qbI2HuvQ="));
        verify(curator);
        verify(getDataBuilder);
    }

    @Test
View Full Code Here

Examples of io.vertx.core.spi.VerticleFactory.resolve()

    Iterator<VerticleFactory> iter = verticleFactories.iterator();
    while (iter.hasNext()) {
      try {
        VerticleFactory verticleFactory = iter.next();
        if (verticleFactory.requiresResolve()) {
          String resolvedName = verticleFactory.resolve(identifier, options, cl);
          if (!resolvedName.equals(identifier)) {
            deployVerticle(resolvedName, options, completionHandler);
            return;
          }
        }
View Full Code Here

Examples of it.freedomotic.core.Resolver.resolve()

            Resolver resolver = new Resolver();
            resolver.addContext("event.",
                    getPayload());

            try {
                Command resolvedCommand = resolver.resolve(c);
                busService.send(resolvedCommand);
            } catch (CloneNotSupportedException ex) {
                Logger.getLogger(SpeechEvent.class.getName()).log(Level.SEVERE, null, ex);
            } catch (VariableResolutionException ex) {
                Logger.getLogger(SpeechEvent.class.getName()).log(Level.SEVERE, null, ex);
View Full Code Here

Examples of it.geosolutions.unredd.stats.model.config.util.TokenResolver.resolve()

    TokenResolver<StatisticConfiguration, Tokens> resolver =
                new TokenResolver(cfg, StatisticConfiguration.class);

    resolver.putAll(layerUpdateProperties);
   
    cfg = (StatisticConfiguration)resolver.resolve();

    // initialize the file when saving statistics
   
    cfg.getOutput().setFile(destFileName);
    StatsRunner runner = new StatsRunner(cfg);
View Full Code Here

Examples of java.net.URI.resolve()

                switch (t.getType()) {
                    case Token.STRING:
                    case Token.URI:
                        try {
                            URI parent = new URI(stylesheet.getURI());
                            info.setUri(parent.resolve(getTokenValue(t)).toString());
                        } catch (URISyntaxException e) {
                            throw new CSSParseException("Invalid URL, " + e.getMessage(), getCurrentLine());
                        }
                        skip_whitespace();
                        t = la();
View Full Code Here

Examples of java.nio.file.Path.resolve()

  public Path getEffectiveTargetFullPath() {
    Path path = MiscUtil.createPathOrNull(getTargetPath() == null ? "" : getTargetPath());
    if(path == null) {
      path = Paths.get("");
    }
    return path.resolve(getEffectiveTargetName());
  }
 
  public static class DubDependecyRef {
   
    public final String bundleName;
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.