Examples of Get


Examples of org.apache.tools.ant.taskdefs.Get

            pomLocation = new URL(trunk + tag + moduleLocation + "pom.xml");
        } catch (MalformedURLException e) {
            e.printStackTrace();
        }

        Get get = (Get) AntUtils.createProject().createTask("get");
        get.setSrc(pomLocation);
        get.setDest(pom);
        get.execute();

        MavenProject p = createProjectFromPom(pom);

        List moduleDependencies = p.getOriginalModel().getDependencies();
View Full Code Here

Examples of org.cruxframework.crux.core.shared.rest.annotation.GET

   * @param method
   * @return
   */
  public static CacheInfo getCacheInfoForGET(Method method)
  {
    GET get = method.getAnnotation(GET.class);
    if (get != null)
    {
      return CacheInfo.parseCacheInfo(get);
    }
   
View Full Code Here

Examples of org.sonatype.tests.http.server.jetty.behaviour.filesystem.Get

   * Creates a remote server delivering content from known places
   */
  protected void createRemoteServer(final String repoId) {
    final File repoRoot = testUtil.resolveFile("target/test-classes/" + repoId);
    checkArgument(repoRoot.isDirectory(), "Repository not exists: " + repoRoot.getAbsolutePath());
    server().serve("/" + repoId + "/*").withBehaviours(new Get(repoRoot.getAbsolutePath()), new Head(repoRoot.getAbsolutePath()));
  }
View Full Code Here

Examples of slash.navigation.rest.Get

    public String getName() {
        return "EarthTools";
    }

    public Double getElevationFor(double longitude, double latitude) throws IOException {
        Get get = new Get(getEarthToolsUrlPreference() + "height/" + latitude + "/" + longitude);
        String result = get.executeAsString();
        if (get.isSuccessful())
            try {
                Height height = unmarshal(result);
                Integer elevation = parseInt(height.getMeters());
                if (elevation != null && !elevation.equals(-9999))
                    return elevation.doubleValue();
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.