Examples of removeFileExtension()


Examples of org.eclipse.core.runtime.Path.removeFileExtension()

    }
    final Path path = new Path(filePath);
    final String ext = path.getFileExtension();
    boolean _equal = Objects.equal(ext, "erl");
    if (_equal) {
      IPath _removeFileExtension = path.removeFileExtension();
      final String module = _removeFileExtension.lastSegment();
      BuilderHelper.loadModule(project, module);
    }
  }
}
View Full Code Here

Examples of org.eclipse.core.runtime.Path.removeFileExtension()

        if (dir.isDirectory()) {
            for (final File f : dir.listFiles()) {
                final Path path = new Path(f.getPath());
                if (path.getFileExtension() != null
                        && "beam".compareTo(path.getFileExtension()) == 0) {
                    final String m = path.removeFileExtension().lastSegment();
                    try {
                        boolean ok = false;
                        final OtpErlangBinary bin = BeamUtil.getBeamBinary(m, path);
                        if (bin != null) {
                            ok = BeamLoader.loadBeam(getOtpRpc(), m, bin);
View Full Code Here

Examples of org.eclipse.core.runtime.Path.removeFileExtension()

  @Override
  protected InputStream getInitialContents() {

          IPath path = new Path(getFileName());
          String name = path.removeFileExtension().toString();
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    PrintWriter printWriter = new PrintWriter(outputStream);
    printWriter.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");   
    printWriter.println("<composite xmlns=\"http://www.osoa.org/xmlns/sca/1.0\"");
    printWriter.println("    xmlns:t=\"http://tuscany.apache.org/xmlns/sca/1.0\"");
View Full Code Here

Examples of org.eclipse.core.runtime.Path.removeFileExtension()

    // set filters to NO filtering so that we can add it manually with
    // the FILTERTYPE expression!
    String tempRulesFileName = getTempRulesFileName();
    IPath path = new Path(tempRulesFileName);
    ae.setConfigParameterValue(RutaEngine.PARAM_MAIN_SCRIPT, path.removeFileExtension()
            .lastSegment());
    String portableString = path.removeLastSegments(1).toPortableString();
    ae.setConfigParameterValue(RutaEngine.PARAM_SCRIPT_PATHS, new String[] { portableString });
    ae.setConfigParameterValue(RutaEngine.PARAM_ADDITIONAL_SCRIPTS, new String[0]);
    ae.setConfigParameterValue(RutaEngine.PARAM_RELOAD_SCRIPT, true);
View Full Code Here

Examples of org.eclipse.core.runtime.Path.removeFileExtension()

  @Override
  protected InputStream getInitialContents() {

          IPath path = new Path(getFileName());
          String name = path.removeFileExtension().toString();
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    PrintWriter printWriter = new PrintWriter(outputStream);
    printWriter.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");   
    printWriter.println("<composite xmlns=\"http://www.osoa.org/xmlns/sca/1.0\"");
    printWriter.println("    xmlns:t=\"http://tuscany.apache.org/xmlns/sca/1.0\"");
View Full Code Here

Examples of org.eclipse.core.runtime.Path.removeFileExtension()

        @Override
        protected InputStream getInitialContents() {

                IPath path = new Path(getFileName());
                String name = path.removeFileExtension().toString();
                ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
                PrintWriter printWriter = new PrintWriter(outputStream);
                printWriter.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");             
                printWriter.println("<composite xmlns=\"http://www.osoa.org/xmlns/sca/1.0\"");
                printWriter.println("    xmlns:t=\"http://tuscany.apache.org/xmlns/sca/1.0\"");
View Full Code Here

Examples of org.eclipse.core.runtime.Path.removeFileExtension()

        @Override
        protected InputStream getInitialContents() {

                IPath path = new Path(getFileName());
                String name = path.removeFileExtension().toString();
                ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
                PrintWriter printWriter = new PrintWriter(outputStream);
                printWriter.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");             
                printWriter.println("<composite xmlns=\"http://www.osoa.org/xmlns/sca/1.0\"");
                printWriter.println("    xmlns:t=\"http://tuscany.apache.org/xmlns/sca/1.0\"");
View Full Code Here

Examples of org.eclipse.core.runtime.Path.removeFileExtension()

        @Override
        protected InputStream getInitialContents() {

                IPath path = new Path(getFileName());
                String name = path.removeFileExtension().toString();
                ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
                PrintWriter printWriter = new PrintWriter(outputStream);
                printWriter.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");             
                printWriter.println("<composite xmlns=\"http://www.osoa.org/xmlns/sca/1.0\"");
                printWriter.println("    xmlns:t=\"http://tuscany.apache.org/xmlns/sca/1.0\"");
View Full Code Here

Examples of org.eclipse.core.runtime.Path.removeFileExtension()

    // ...but if there is no defined module ID, pick the best alternative

    IPath moduleLocation = new Path(j2eeModule.getURI(module));
    if (moduleLocation != null) {
      moduleId = moduleLocation.removeFileExtension().lastSegment();
    }

    if (j2eeModule instanceof IWebModule) {
      // A better choice is to use the context root
      // For wars most appservers use the module name
View Full Code Here

Examples of org.eclipse.core.runtime.Path.removeFileExtension()

      ae = TextRulerToolkit.loadAnalysisEngine(descriptorFile);

      // set filters to NO filtering so that we can add it manually with
      // the FILTERTYPE expression!
      IPath path = new Path(tempDir + "/results"+RutaEngine.SCRIPT_FILE_EXTENSION);
      ae.setConfigParameterValue(RutaEngine.MAIN_SCRIPT, path.removeFileExtension()
              .lastSegment());
      ae.setConfigParameterValue(RutaEngine.SCRIPT_PATHS, new String[] { path
              .removeLastSegments(1).toPortableString() });
      ae.setConfigParameterValue(RutaEngine.RELOAD_SCRIPT, true);
      try {
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.