Examples of BuildProperties


Examples of com.instantiations.pde.build.util.BuildProperties

   * Create an instance of the class <code>{@link BuildProperties}</code>.
   *
   * @generatedBy CodePro at 12/9/08 2:37 PM
   */
  public static BuildProperties createBuildProperties() throws IOException {
    BuildProperties prop = new BuildProperties();
    String filename = BuildPropertiesFactory.class.getName().replace('.', '/') + "-test.properties"
      // "com/instantiations/build/BuildProptiesFactory-test.properties";
    InputStream stream = BuildProperties.class.getClassLoader().getResourceAsStream(filename);
    if (stream == null)
      throw new FileNotFoundException("Failed to find " + filename);
    prop.readStream(stream);
    return prop;
  }
View Full Code Here

Examples of org.eclipse.tycho.core.facade.BuildProperties

        List descriptors = Collections.emptyList();
        when(scanner.scan(Mockito.any(File.class), Mockito.any(String.class), Mockito.any(Scope.class))).thenReturn(descriptors);

        EclipsePluginProject pdeProject = mock(EclipsePluginProject.class);
        BuildProperties properties = mock(BuildProperties.class);
        when(properties.getBinExcludes()).thenReturn(excludes);
        when(properties.getBinIncludes()).thenReturn(includes);

        when(project.getContextValue(TychoConstants.CTX_ECLIPSE_PLUGIN_PROJECT)).thenReturn(pdeProject);
        when(pdeProject.getBuildProperties()).thenReturn(properties);
        when(project.getBasedir()).thenReturn(new File(getClass().getResource(".").getFile()));
        Artifact artifact = mock(Artifact.class);
View Full Code Here

Examples of org.eclipse.tycho.core.facade.BuildProperties

        }
        return pdeFiles;
    }

    private Iterator<PlexusIoResource> getPDEBinaries(MavenProject project, EclipsePluginProject pdeProject) throws IOException {
        BuildProperties buildProperties = pdeProject.getBuildProperties();
        return getResourceFileCollection(project.getBasedir(), buildProperties.getBinIncludes(), buildProperties.getBinExcludes()).getResources();
    }
View Full Code Here

Examples of org.objectstyle.wolips.variables.BuildProperties

        WodEditor wodEditor = getWodEditor();
        if (templateEditor != null && wodEditor != null && activeEditorPart == templateEditor) {
          ITextSelection templateSelection = (ITextSelection) templateEditor.getSourceEditor().getSelectionProvider().getSelection();
          int offset = templateSelection.getOffset();
          WodParserCache cache = templateEditor.getSourceEditor().getParserCache();
          BuildProperties buildProperties = (BuildProperties)cache.getProject().getAdapter(BuildProperties.class);
          ConvertInlineToWodRefactoring.run(cache, offset, buildProperties, new NullProgressMonitor());
        }
      }
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

Examples of org.objectstyle.wolips.variables.BuildProperties

   *         same method on ProjectAdapter
   */
  public IContainer getWorkingDirFolder() throws CoreException {
    IContainer workingDirFolder;
    IProject project = this.getUnderlyingProject();
    BuildProperties buildProperties = (BuildProperties)project.getAdapter(BuildProperties.class);
    if (buildProperties.getWOVersion().isAtLeastVersion(5, 6) || !mockBundlesEnabled()) {
      workingDirFolder = project;
    } else {
      if (this.isAntBuilderInstalled() || (WOLipsNatureUtils.getNature(project) instanceof AntApplicationNature)) {
        workingDirFolder = this.getUnderlyingProject().getFolder(IBuildAdapter.FILE_NAME_DIST);
      } else {
View Full Code Here

Examples of org.objectstyle.wolips.variables.BuildProperties

  }

  public IPath getWOJavaArchive() throws CoreException {
    IPath path = null;
    IProject project = this.getUnderlyingProject();
    BuildProperties buildProperties = (BuildProperties)project.getAdapter(BuildProperties.class);
    if (buildProperties.getWOVersion().isAtLeastVersion(5, 6) || !mockBundlesEnabled()) {
      path = this.getUnderlyingProject().getLocation();
    } else {
      IResource resource = null;
      String projectName = project.getName();
      // String projectNameLC = projectName.toLowerCase();
View Full Code Here

Examples of org.objectstyle.wolips.variables.BuildProperties

  protected boolean isHTML() {
    return true;
  }

  protected FuzzyXMLParser createParser(IProject project) {
    BuildProperties buildProperties = (BuildProperties)project.getAdapter(BuildProperties.class);
    FuzzyXMLParser parser = new FuzzyXMLParser(buildProperties != null ? buildProperties.isWellFormedTemplateRequired() : false, isHTML());
    return parser;
  }
View Full Code Here

Examples of org.objectstyle.wolips.variables.BuildProperties

      IWodElement wodElement = null;
      if (woTag) {
        className = className + " wo";
        try {
          BuildProperties buildProperties = (BuildProperties)_editor.getParserCache().getProject().getAdapter(BuildProperties.class);
          wodElement = WodHtmlUtils.getWodElement(element, buildProperties, true, cache);
        }
        catch (Throwable t) {
          // IGNORE
          t.printStackTrace();
View Full Code Here

Examples of org.objectstyle.wolips.variables.BuildProperties

      FuzzyXMLElement element = (FuzzyXMLElement) node;
      String tagName = element.getName();
      if (WodHtmlUtils.isWOTag(tagName)) {
        try {
          WodParserCache cache = _caches.peek();
          BuildProperties buildProperties = (BuildProperties)cache.getProject().getAdapter(BuildProperties.class);
          IWodElement wodElement = WodHtmlUtils.getWodElement(element, buildProperties, true, cache);
          if (wodElement == null) {
            return true;
          }
View Full Code Here

Examples of org.objectstyle.wolips.variables.BuildProperties

            WOLipsNatureUtils.setNatureForProject(WOLipsNatureUtils.ANT_APPLICATION_ID, useTargetBuilder, getProject(), new NullProgressMonitor());
          }
        }
        ProjectAdapter project = getProjectAdapter();
        if (project != null) {
          BuildProperties buildProperties = getBuildProperties();
          buildProperties.setPrincipalClass(_principalClassText.getText());
          buildProperties.setEOAdaptorClassName(_eoAdaptorClassText.getText());
          String projectFrameworkFolderText = _projectFrameworkFolderText.getText();
          if (projectFrameworkFolderText.length() == 0) {
            buildProperties.setProjectFrameworkFolder(null);
          } else {
            buildProperties.setProjectFrameworkFolder(projectFrameworkFolderText);
          }
          buildProperties.setFramework(_bundleTypeFrameworkButton.getSelection());
          buildProperties.setWellFormedTemplateRequired(_wellFormedRequiredButton.getSelection());
          buildProperties.setInlineBindingPrefix(_inlineBindingsPrefixText.getText());
          buildProperties.setInlineBindingSuffix(_inlineBindingsSuffixText.getText());
          buildProperties.save();
        }
      } else {
        WOLipsNatureUtils.removeNaturesFromProject(getProject(), new NullProgressMonitor());
      }
    } catch (Exception up) {
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.