Details
- 
        Type:
 Sub-task
            
         - 
        Status: Closed
 - 
            Priority:
 Major
                
             - 
            Resolution: Fixed
 - 
            Affects Version/s: None
 - 
            Fix Version/s: 4.12.0-b1
 - 
            Component/s: None
 - 
            Labels:None
 
Description
Extension files should be generated based on templates. These templates should be formatted such that:
- Optional files can be included/excluded on an individual basis
 - Tag replacement can be used to insert a value such as a module class name
 - Commented code blocks can be included/excluded
 
A class should be created ExtensionTemplateParser
With:
/** * string $extension_type The type of extension for which to parse files * array $options A list of options for parsing the template file including: * * - comment_code True to include commented out code examples * - language_code The language code for which to create a language file * - replacements A list of tag names and their replacements * - optional_methods A list method names to include */ __constructor($extension_type, array $options) setExtensionType setOptions setOutputDir parseAndOutput
Commented code blocks will be marked with "////"
Replacement tags will be in the format tagname
Optional methods will be bookended by tags in the format
{method_name}Activity
| Field | Original Value | New Value | 
|---|---|---|
| Description | 
                                                                Extension files should be generated based on templates.  These templates should be formatted such that:
 # Optional files can be included/excluded on an individual basis # Tag replacement can be used to insert a value such as a module class name # Commented code blocks can be included/excluded A class should be created ExtensionTemplateParser With: {code:java} /** * string $template_dir The path to the template files to parse * array $options A list of options for parsing the template file including: * * - comment_code True to include commented out code examples * - replacements A list of tag names and their replacements * - optional_methods A list method names to include */ __constructor($template_dir, array $options) setTemplateDir setOptions setOutputDir parseAndOutput {code} Commented code blocks will be marked with "//" Replacement tags will be in the format {{tagname}} Optional methods will be bookended by tags in the format {method_name}  | 
                
                                                               Extension files should be generated based on templates.  These templates should be formatted such that:
 # Optional files can be included/excluded on an individual basis # Tag replacement can be used to insert a value such as a module class name # Commented code blocks can be included/excluded A class should be created ExtensionTemplateParser With: {code:java} /** * string $extension_type The type of extension for which to parse files * array $options A list of options for parsing the template file including: * * - comment_code True to include commented out code examples * - language_code The language code for which to create a language file * - replacements A list of tag names and their replacements * - optional_methods A list method names to include */ __constructor($extension_type, array $options) setExtensionType setOptions setOutputDir parseAndOutput {code} Commented code blocks will be marked with "//" Replacement tags will be in the format {{tagname}} Optional methods will be bookended by tags in the format {method_name}  | 
                
| Description | 
                                                                Extension files should be generated based on templates.  These templates should be formatted such that:
 # Optional files can be included/excluded on an individual basis # Tag replacement can be used to insert a value such as a module class name # Commented code blocks can be included/excluded A class should be created ExtensionTemplateParser With: {code:java} /** * string $extension_type The type of extension for which to parse files * array $options A list of options for parsing the template file including: * * - comment_code True to include commented out code examples * - language_code The language code for which to create a language file * - replacements A list of tag names and their replacements * - optional_methods A list method names to include */ __constructor($extension_type, array $options) setExtensionType setOptions setOutputDir parseAndOutput {code} Commented code blocks will be marked with "//" Replacement tags will be in the format {{tagname}} Optional methods will be bookended by tags in the format {method_name}  | 
                
                                                               Extension files should be generated based on templates.  These templates should be formatted such that:
 # Optional files can be included/excluded on an individual basis # Tag replacement can be used to insert a value such as a module class name # Commented code blocks can be included/excluded A class should be created ExtensionTemplateParser With: {code:java} /** * string $extension_type The type of extension for which to parse files * array $options A list of options for parsing the template file including: * * - comment_code True to include commented out code examples * - language_code The language code for which to create a language file * - replacements A list of tag names and their replacements * - optional_methods A list method names to include */ __constructor($extension_type, array $options) setExtensionType setOptions setOutputDir parseAndOutput {code} Commented code blocks will be marked with "//" Replacement tags will be in the format \{\{tagname\}\} Optional methods will be bookended by tags in the format {method_name}  | 
                
| Description | 
                                                                Extension files should be generated based on templates.  These templates should be formatted such that:
 # Optional files can be included/excluded on an individual basis # Tag replacement can be used to insert a value such as a module class name # Commented code blocks can be included/excluded A class should be created ExtensionTemplateParser With: {code:java} /** * string $extension_type The type of extension for which to parse files * array $options A list of options for parsing the template file including: * * - comment_code True to include commented out code examples * - language_code The language code for which to create a language file * - replacements A list of tag names and their replacements * - optional_methods A list method names to include */ __constructor($extension_type, array $options) setExtensionType setOptions setOutputDir parseAndOutput {code} Commented code blocks will be marked with "//" Replacement tags will be in the format \{\{tagname\}\} Optional methods will be bookended by tags in the format {method_name}  | 
                
                                                               Extension files should be generated based on templates.  These templates should be formatted such that:
 # Optional files can be included/excluded on an individual basis # Tag replacement can be used to insert a value such as a module class name # Commented code blocks can be included/excluded A class should be created ExtensionTemplateParser With: {code:java} /** * string $extension_type The type of extension for which to parse files * array $options A list of options for parsing the template file including: * * - comment_code True to include commented out code examples * - language_code The language code for which to create a language file * - replacements A list of tag names and their replacements * - optional_methods A list method names to include */ __constructor($extension_type, array $options) setExtensionType setOptions setOutputDir parseAndOutput {code} Commented code blocks will be marked with "//" Replacement tags will be in the format \{{tagname}} Optional methods will be bookended by tags in the format {method_name}  | 
                
| Description | 
                                                                Extension files should be generated based on templates.  These templates should be formatted such that:
 # Optional files can be included/excluded on an individual basis # Tag replacement can be used to insert a value such as a module class name # Commented code blocks can be included/excluded A class should be created ExtensionTemplateParser With: {code:java} /** * string $extension_type The type of extension for which to parse files * array $options A list of options for parsing the template file including: * * - comment_code True to include commented out code examples * - language_code The language code for which to create a language file * - replacements A list of tag names and their replacements * - optional_methods A list method names to include */ __constructor($extension_type, array $options) setExtensionType setOptions setOutputDir parseAndOutput {code} Commented code blocks will be marked with "//" Replacement tags will be in the format \{{tagname}} Optional methods will be bookended by tags in the format {method_name}  | 
                
                                                               Extension files should be generated based on templates.  These templates should be formatted such that:
 # Optional files can be included/excluded on an individual basis # Tag replacement can be used to insert a value such as a module class name # Commented code blocks can be included/excluded A class should be created ExtensionTemplateParser With: {code:java} /** * string $extension_type The type of extension for which to parse files * array $options A list of options for parsing the template file including: * * - comment_code True to include commented out code examples * - language_code The language code for which to create a language file * - replacements A list of tag names and their replacements * - optional_methods A list method names to include */ __constructor($extension_type, array $options) setExtensionType setOptions setOutputDir parseAndOutput {code} Commented code blocks will be marked with "//" Replacement tags will be in the format {{tagname}} Optional methods will be bookended by tags in the format {method_name}  | 
                
| Remaining Estimate | 0 minutes [ 0 ] | |
| Time Spent | 2 hours, 46 minutes [ 9960 ] | |
| Worklog Id | 13862 [ 13862 ] | 
| Description | 
                                                                Extension files should be generated based on templates.  These templates should be formatted such that:
 # Optional files can be included/excluded on an individual basis # Tag replacement can be used to insert a value such as a module class name # Commented code blocks can be included/excluded A class should be created ExtensionTemplateParser With: {code:java} /** * string $extension_type The type of extension for which to parse files * array $options A list of options for parsing the template file including: * * - comment_code True to include commented out code examples * - language_code The language code for which to create a language file * - replacements A list of tag names and their replacements * - optional_methods A list method names to include */ __constructor($extension_type, array $options) setExtensionType setOptions setOutputDir parseAndOutput {code} Commented code blocks will be marked with "//" Replacement tags will be in the format {{tagname}} Optional methods will be bookended by tags in the format {method_name}  | 
                
                                                               Extension files should be generated based on templates.  These templates should be formatted such that:
 # Optional files can be included/excluded on an individual basis # Tag replacement can be used to insert a value such as a module class name # Commented code blocks can be included/excluded A class should be created ExtensionTemplateParser With: {code:java} /** * string $extension_type The type of extension for which to parse files * array $options A list of options for parsing the template file including: * * - comment_code True to include commented out code examples * - language_code The language code for which to create a language file * - replacements A list of tag names and their replacements * - optional_methods A list method names to include */ __constructor($extension_type, array $options) setExtensionType setOptions setOutputDir parseAndOutput {code} Commented code blocks will be marked with "////" Replacement tags will be in the format {{tagname}} Optional methods will be bookended by tags in the format {method_name}  | 
                
| Time Spent | 2 hours, 46 minutes [ 9960 ] | 6 hours, 21 minutes [ 22860 ] | 
| Worklog Id | 13866 [ 13866 ] | 
| Time Spent | 6 hours, 21 minutes [ 22860 ] | 1 day, 1 hour, 31 minutes [ 34260 ] | 
| Worklog Id | 13867 [ 13867 ] | 
| Status | Open [ 1 ] | Closed [ 6 ] | 
| Assignee | Jonathan Reissmueller [ jonathan ] | |
| Resolution | Fixed [ 1 ] |