Package org.eclipse.core.runtime

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


    }

    IPath engineDescriptorPath = RutaProjectUtils.getEngineDescriptorPath(r.getLocation(),
            r.getProject());
    try {
      XMLInputSource in = new XMLInputSource(engineDescriptorPath.toPortableString());
      ResourceSpecifier specifier = UIMAFramework.getXMLParser().parseResourceSpecifier(in);
      AnalysisEngine ae = UIMAFramework.produceAnalysisEngine(specifier);

      String desc = null;
      desc = engineDescriptorPath.toPortableString();
View Full Code Here


      XMLInputSource in = new XMLInputSource(engineDescriptorPath.toPortableString());
      ResourceSpecifier specifier = UIMAFramework.getXMLParser().parseResourceSpecifier(in);
      AnalysisEngine ae = UIMAFramework.produceAnalysisEngine(specifier);

      String desc = null;
      desc = engineDescriptorPath.toPortableString();
      XMLInputSource in2 = new XMLInputSource(desc);
      Object descriptor = UIMAFramework.getXMLParser().parse(in2);
      CAS testCas = null;
      if (descriptor instanceof AnalysisEngineDescription) {
        testCas = CasCreationUtils.createCas((AnalysisEngineDescription) descriptor);
View Full Code Here

          if (typeSystemLocation.endsWith(RutaEngine.SCRIPT_FILE_EXTENSION)) {
            IFile iFile = QueryComposite.getIFile(typeSystemLocation);
            IPath scriptPath = iFile.getLocation();
            IProject project = iFile.getProject();
            IPath descriptorRootPath = RutaProjectUtils.getDescriptorRootPath(project);
            resMgr.setDataPath(descriptorRootPath.toPortableString());
            IPath path = RutaProjectUtils.getTypeSystemDescriptorPath(scriptPath, project);
            tsLocation = path.toPortableString();
          }
          File tsFile = new File(tsLocation);
          XMLInputSource ints = new XMLInputSource(tsFile);
View Full Code Here

            IPath scriptPath = iFile.getLocation();
            IProject project = iFile.getProject();
            IPath descriptorRootPath = RutaProjectUtils.getDescriptorRootPath(project);
            resMgr.setDataPath(descriptorRootPath.toPortableString());
            IPath path = RutaProjectUtils.getTypeSystemDescriptorPath(scriptPath, project);
            tsLocation = path.toPortableString();
          }
          File tsFile = new File(tsLocation);
          XMLInputSource ints = new XMLInputSource(tsFile);
          TypeSystemDescription importTSD = UIMAFramework.getXMLParser()
                  .parseTypeSystemDescription(ints);
View Full Code Here

      IPath fscriptPath = new Path(this.forteRoot);
      fscriptPath = fscriptPath.append("userapp");
      fscriptPath = fscriptPath.append("fscript");
      fscriptPath = fscriptPath.append("cl12");
      fscriptPath = fscriptPath.append("fscript");
      cmd = cmd + ftExecPath.toPortableString() + " -fcons -fnict -fi bt:"+ fscriptPath.toPortableString() + " -fs -fr " + repository + " -fw " + workspace + " -fl " + this.logFlags;
      fscriptProcess = Runtime.getRuntime().exec(cmd);
     
      // Start readers to consume output. It looks very innocuous with the output from the process
      // being mapped to p.inputStream, but this is correct.
      OutputContainer container = new OutputContainer(this.msgStream);
View Full Code Here

      IPath fscriptPath = new Path(this.forteRoot);
      fscriptPath = fscriptPath.append("userapp");
      fscriptPath = fscriptPath.append("fscript");
      fscriptPath = fscriptPath.append("cl12");
      fscriptPath = fscriptPath.append("fscript");
      cmd = cmd + ftExecPath.toPortableString() + " -fcons -fnict -fi bt:"+ fscriptPath.toPortableString() + " -fs -fr " + repository + " -fw " + workspace + " -fl " + this.logFlags;
      fscriptProcess = Runtime.getRuntime().exec(cmd);
     
      // Start readers to consume output. It looks very innocuous with the output from the process
      // being mapped to p.inputStream, but this is correct.
      OutputContainer container = new OutputContainer(this.msgStream);
View Full Code Here

          for (IPath sourceRoot : sourceRoots) {
            if (sourceRoot.isPrefixOf(orp)) {
              for (IFile ff : fs.getFoundFiles()) {
                final IPath ffr = ff.getFullPath().removeFirstSegments(sourceRoot.segmentCount()).removeLastSegments(1);
                orp = openedResource.getFullPath().removeFirstSegments(sourceRoot.segmentCount()).removeLastSegments(1);
                if (orp.toPortableString().equals(ffr.toPortableString())) {
                  return ff;
                }
              }
            }
          }
View Full Code Here

  }
 
  private static String getOutputLocation(IProject project, String moduleName) {

    IPath outputDir = project.getLocation().append(Constants.OUTPUT_FOLDER);
      return outputDir.toPortableString();
  }

  public static boolean hasGwtNature(IProject project) {

    boolean hasGwtNature;
View Full Code Here

  }

  private static String getOutputLocation(IProject project, String moduleName) {

    IPath outputDir = project.getLocation().append(getGwtOutputFolder());
    return outputDir.toPortableString();
  }

  public static boolean hasGwtNature(IProject project) {

    boolean hasGwtNature;
View Full Code Here

  }
 
  private static String getOutputLocation(IProject project, String moduleName) {

    IPath outputDir = project.getLocation().append(Constants.OUTPUT_FOLDER);
      return outputDir.toPortableString();
  }

  public static boolean hasGwtNature(IProject project) {

    boolean hasGwtNature;
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.