Class LanguageTasksTests


  • public class LanguageTasksTests
    extends Object
    We are only interested in what properties where used by the language task, not the outcome of executing the script.
    Author:
    Horacio Hoyos Rodriguez
    • Field Detail

      • BASE_DIR

        protected static final File BASE_DIR
      • buildRule

        public final org.apache.tools.ant.BuildFileRule buildRule
    • Constructor Detail

      • LanguageTasksTests

        public LanguageTasksTests()
    • Method Detail

      • eolModuleFromSource

        public void eolModuleFromSource()
                                 throws Exception
        Throws:
        Exception
      • eclModuleFromSource

        public void eclModuleFromSource()
                                 throws Exception
        Throws:
        Exception
      • evlModuleFromSource

        public void evlModuleFromSource()
                                 throws Exception
        Throws:
        Exception
      • createTaskDefTarget

        public static String createTaskDefTarget​(String language)
        Create an ant target to init the language task definition
        Parameters:
        language - the name of the language, e.g. Eol, Etl, etc.
        Returns:
      • createModelLoadTarget

        public static String createModelLoadTarget​(String baseDir)
        Creates
      • createBuildFile

        public static File createBuildFile​(String defaultTarget,
                                           String... targetDefinition)
                                    throws Exception
        Create a build file (xml) by adding the task definitions to a basic proejct structure
        Parameters:
        taskDefinition -
        Returns:
        Throws:
        Exception - If there is an error creating the file or adding the contents