Examples of BuildFile


Examples of org.xtext.builddsl.build.BuildFile

  public void testSelfDependency() {
    try {
      StringConcatenation _builder = new StringConcatenation();
      _builder.append("task Foo depends Foo {}");
      _builder.newLine();
      BuildFile _parse = this._parseHelper.parse(_builder);
      this._validationTestHelper.assertError(_parse, BuildPackage.Literals.TASK, BuildDSLValidator.CYCLIC_DEPENDENCY);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
  }
View Full Code Here

Examples of org.xtext.builddsl.build.BuildFile

      _builder.newLine();
      _builder.append("task Bar depends Baz {}");
      _builder.newLine();
      _builder.append("task Baz depends Foo {}");
      _builder.newLine();
      BuildFile _parse = this._parseHelper.parse(_builder);
      this._validationTestHelper.assertError(_parse, BuildPackage.Literals.TASK, BuildDSLValidator.CYCLIC_DEPENDENCY);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
  }
View Full Code Here

Examples of org.xtext.builddsl.build.BuildFile

      _builder.newLine();
      _builder.append("task Bar depends Baz {}");
      _builder.newLine();
      _builder.append("task Baz {}");
      _builder.newLine();
      BuildFile _parse = this._parseHelper.parse(_builder);
      this._validationTestHelper.assertNoError(_parse, BuildDSLValidator.CYCLIC_DEPENDENCY);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
  }
View Full Code Here

Examples of workspace.elements.BuildFile

 
  private void convertTextToDesign()
  {
        String editorText =
            editor.getDocumentProvider().getDocument(editor.getEditorInput()).get();
        BuildFile newBuildFile = Utils.convertTextToBuildFile(editorText);
        designer.setTarget(newBuildFile.getTarget());
        designer.setSrcFolder(newBuildFile.getSourceFolder());
        designer.setOutputFolder(newBuildFile.getOutputFileWithPath());
        designer.setMainFileName(newBuildFile.getMainClass());
  }
View Full Code Here

Examples of workspace.elements.BuildFile

                    0,
                    mainFilePath.lastIndexOf("."));
            HaxeProject project = HaxeProjectCreator.createProject(name, location);
           
            // creating build file
            BuildFile buildFile = pageOne.getBuildFile();
            project.addBuildFile(buildFile);
            project.createFile(buildFile.getPath().toString(), buildFile.getContent(), false);
           
            // here the initial structure for project should be
            String[] struct = {srcFolder, outFolder, mainFileFolder};
            project.createFolders(struct);
           
View Full Code Here

Examples of workspace.elements.BuildFile

        return buildFileDesigner.getMainFileName();
    }
   
    public BuildFile getBuildFile()
    {
        BuildFile buildFile = new BuildFile(
                buildFileDesigner.getBuildFileName(),
                buildFileDesigner.getSrcFolder(),
                WorkspaceUtils.getConcatenatedPath(buildFileDesigner.getOutputFolder(),getProjectName()),
                buildFileDesigner.getSelectedTarget(),
                buildFileDesigner.getMainFileName());
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.