Examples of toURI()


Examples of org.eclipse.core.filesystem.IFileStore.toURI()

      root = EFS.getStore(platformLocationURI);
    } catch (CoreException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    String rootURI = root.toURI().toString();
   
    return fileURI.substring(rootURI.length());
  }
}
View Full Code Here

Examples of org.eclipse.core.resources.IFile.toURI()

                    File ioFile = new File(cpUri.toFileString()).getParentFile();
                    if (ioFile.exists()) {
                      try {
                        for (File jarFile : ioFile.listFiles()) {
                          if (jarFile.getName().endsWith(".jar")) {
                            extraPaths.add(jarFile.toURI().toURL());
                          }
                        }
                      } catch (MalformedURLException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
View Full Code Here

Examples of org.eclipse.ecf.remoteservice.rest.identity.RestID.toURI()

    // if resourcePath startswith http then we use it unmodified
    if (resourcePath.startsWith("http://")) //$NON-NLS-1$
      return resourcePath;

    RestID targetContainerID = (RestID) getRemoteCallTargetID();
    String baseUriString = targetContainerID.toURI().toString();
    int length = baseUriString.length();
    char[] lastChar = new char[1];
    baseUriString.getChars(length - 1, length, lastChar, 0);
    char[] firstMethodChar = new char[1];
    resourcePath.getChars(0, 1, firstMethodChar, 0);
View Full Code Here

Examples of org.eclipse.ecf.remoteservice.rpc.identity.RpcId.toURI()

  protected XmlRpcClientConfig getXmlRpcClientConfig() throws RpcException {
    try {
      RpcId id = (RpcId) container.getID();

      XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
      config.setServerURL(id.toURI().toURL());
      config.setEnabledForExtensions(true);
      // Set default timeouts
      config.setConnectionTimeout(60 * 1000);
      config.setReplyTimeout(60 * 1000);

 
View Full Code Here

Examples of org.eclipse.ecf.remoteservice.soap.identity.SoapID.toURI()

    // if resourcePath startswith http then we use it unmodified
    if (resourcePath.startsWith("http://")) //$NON-NLS-1$
      return resourcePath;

    SoapID targetContainerID = (SoapID) getRemoteCallTargetID();
    String baseUriString = targetContainerID.toURI().toString();
    int length = baseUriString.length();
    char[] lastChar = new char[1];
    baseUriString.getChars(length - 1, length, lastChar, 0);
    char[] firstMethodChar = new char[1];
    resourcePath.getChars(0, 1, firstMethodChar, 0);
View Full Code Here

Examples of org.fcrepo.common.PID.toURI()

            return null;
        }

        String resURI;
        if (parts.length == 1) {
            resURI = pid.toURI();
        } else if (parts.length == 2) {
            resURI = pid.toURI() + "/" + parts[1]; // add datastream ID back
        } else {
            logger.warn("Invalid Fedora resource identifier: {}. Should be pid or datastream (URI form optional", res);
            return null;
View Full Code Here

Examples of org.fcrepo.utilities.NormalizedURI.toURI()

            // Normalize the IRI to resolve percent-encoding and
            // backtracking (e.g. "../")
            NormalizedURI nUri = new NormalizedURI(m_tempDir.toURI().toString() + contentSrc.toString());
            nUri.normalize();

            File f = new File(nUri.toURI());
            if (f.getParentFile().equals(m_tempDir)) {
                return f;
            } else {
                throw new ObjectIntegrityException(contentSrc.toString()
                                                   + " is not a valid path.");
View Full Code Here

Examples of org.gradle.test.fixtures.file.TestFile.toURI()

    private URI createJar() throws URISyntaxException {
        TestFile jarFile = tmpDir.getTestDirectory().file("test.jar");
        testDir.file("ignoreme").write("content");
        testDir.zipTo(jarFile);
        return new URI(String.format("jar:%s!/build.script", jarFile.toURI()));
    }

    @Test
    public void canConstructSourceFromFile() {
        UriScriptSource source = new UriScriptSource("<file-type>", scriptFile);
View Full Code Here

Examples of org.gradle.util.TestFile.toURI()

    private URI createJar() throws URISyntaxException {
        TestFile jarFile = tmpDir.getDir().file("test.jar");
        testDir.file("ignoreme").write("content");
        testDir.zipTo(jarFile);
        return new URI(String.format("jar:%s!/build.script", jarFile.toURI()));
    }

    @Test
    public void canConstructSourceFromFile() {
        UriScriptSource source = new UriScriptSource("<file-type>", scriptFile);
View Full Code Here

Examples of org.gradle.util.TestFile.toURI()

        propertiesFile.getParentFile().mkdirs();
        GUtil.saveProperties(props, propertiesFile);
        final ClassLoader classLoader = context.mock(ClassLoader.class, name);
        context.checking(new Expectations() {{
            allowing(classLoader).getResource("META-INF/gradle-plugins/" + id + ".properties");
            will(returnValue(propertiesFile.toURI().toURL()));
        }});
        return classLoader;
    }

    @Test
View Full Code Here
TOP
Copyright © 2015 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.