Examples of toOSString()


Examples of org.eclipse.core.runtime.IPath.toOSString()

        final IResource[] resources;
        final String[] fileNames;
        if (dirSibling==null) {
            resources = new IResource[] {resource};
            final IPath location = resource.getLocation();
            fileNames = (location==null) ? null : new String[] {location.toOSString()};
        } else {
            resources = new IResource[] {resource, dirSibling.getResource()};
            final IPath resLocation = resource.getLocation();
            final IPath siblLocation = dirSibling.getResource().getLocation();
            fileNames = (resLocation==null || siblLocation==null) ? null : new String[] {resLocation.toOSString(), siblLocation.toOSString()};
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toOSString()

            fileNames = (location==null) ? null : new String[] {location.toOSString()};
        } else {
            resources = new IResource[] {resource, dirSibling.getResource()};
            final IPath resLocation = resource.getLocation();
            final IPath siblLocation = dirSibling.getResource().getLocation();
            fileNames = (resLocation==null || siblLocation==null) ? null : new String[] {resLocation.toOSString(), siblLocation.toOSString()};
        }
        if (fileNames!=null) {
            clipboard.setContents(new Object[] { resources, fileNames },
                    new Transfer[] { ResourceTransfer.getInstance(),
                            FileTransfer.getInstance()});
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toOSString()

    {
        IPath loc = sigil.findBundleLocation().removeLastSegments(1);

        loc.toFile().mkdirs();

        return loc.toOSString() + File.separator + "[name].jar";
    }

    private File[] buildClasspath(ISigilProjectModel sigil, IProgressMonitor monitor)
        throws CoreException
    {
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toOSString()

       
        if ( loc == null ) return null;
       
        loc = loc.append(CLASSPATH);
       
        return new File(loc.toOSString());
    }

    static void cacheClassPath(ISigilProjectModel project, IClasspathEntry[] entries)
    {
        File f = getClassPathDir(project);
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toOSString()

            monitor.worked(1);

            //TODO SLING-3767:
            //osgiClient must have a timeout!!!
            if ( installLocally ) {
                osgiClient.installLocalBundle(outputLocation.toOSString());
                monitor.worked(3);
            } else {

                JarBuilder builder = new JarBuilder();
                InputStream bundle = builder.buildJar(outputFolder);
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toOSString()

          File f1 = new File(a.toOSString());

          if (!f1.exists()) {

              IPath a2 = new Path(this.userDirectory.getAbsolutePath()).append(path + IDavinciServerConstants.WORKING_COPY_EXTENSION);
              File workingCopy = new File(a2.toOSString());
              if (!workingCopy.exists()) {
                  return null;
              }
          }
          String[] segments = a.segments();
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toOSString()

  protected String getDefaultPhar() throws Exception
  {
        IPath location = PEXAnalysisUIPlugin.getDefault().getStateLocation();
        IPath pharPath = location.append("phpcsfixer1.phar");
        File pharFile = pharPath.toFile();
        Logger.debug("checking if phar is already unpacked " + pharPath.toOSString());
       
        if (pharFile.exists()) {
          Logger.debug("Phar unpacked, returning path");
          return pharFile.getAbsolutePath();
        }
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toOSString()

    IPath pluginStateLocation = Activator.getDefault().getStateLocation();
    String baseReportDirectoryString =
      configuration.getAttribute(TestabilityConstants.CONFIGURATION_ATTR_REPORT_FOLDER_NAME, "");
    if ("".equals(baseReportDirectoryString)) {
      baseReportDirectoryString = pluginStateLocation.toOSString();
    }
    File reportDirectory =
        new File(baseReportDirectoryString, javaProject.getProject().getName()
            + "-TestabilityReport");
    if (!reportDirectory.exists()) {
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toOSString()

    for (int i = 0; i < classPathEntries.length; i++) {
      IClasspathEntry classPathEntry = classPathEntries[i];
      String classPathString = null;
      IPath outputPath = classPathEntry.getOutputLocation();
      if (outputPath != null) {
        classPathString = projectLocation + outputPath.toOSString();
      } else {
        IPath classPath = classPathEntry.getPath();
        classPathString = classPath.toOSString();
        if (!classPathString.startsWith(System.getProperty("file.separator"))) {
          classPathString = System.getProperty("file.separator") + classPathString;
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toOSString()

      IPath outputPath = classPathEntry.getOutputLocation();
      if (outputPath != null) {
        classPathString = projectLocation + outputPath.toOSString();
      } else {
        IPath classPath = classPathEntry.getPath();
        classPathString = classPath.toOSString();
        if (!classPathString.startsWith(System.getProperty("file.separator"))) {
          classPathString = System.getProperty("file.separator") + classPathString;
        }
        classPathString = projectLocation + classPathString;
      }
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.