You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by "Thomas Fox (JIRA)" <ji...@apache.org> on 2012/10/24 23:10:15 UTC

[jira] [Created] (TORQUE-239) create debug output to determine where a snippet came from

Thomas Fox created TORQUE-239:
---------------------------------

             Summary: create debug output to determine where a snippet came from
                 Key: TORQUE-239
                 URL: https://issues.apache.org/jira/browse/TORQUE-239
             Project: Torque
          Issue Type: Improvement
          Components: Generator
            Reporter: Thomas Fox
            Assignee: Thomas Fox


Given a generated output, ist is difficult to know which outlet produced a specific part of the output.
To ease this, a switch should be made available which produces commenst which tell the start or the end oaf the output created b a certain outlet. e.g. for a  source
<root>
  <field name="i/>
  <field name="j"/>
</root>
from which a simple java class 
public class someClass
{
  int i;
  int j;
}
is produced, the debug-enriched output could look like

// start output of outlet Frame, current source element is root
public class someClass
{
// start output of outlet Frame, current source element is field
  int i;
// end output of outlet Frame, current source element is field
// start output of outlet Frame, current source element is field
  int j;
// end output of outlet Frame, current source element is field
}
// endoutput of outlet Frame, current source element is root

for this, the controller mist jnow the type of the produced output (java, xml, properties etc) to determine the format of comments. A fallback should exist for an unknown output type.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


[jira] [Resolved] (TORQUE-239) create debug output to determine where a snippet came from

Posted by "Thomas Fox (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TORQUE-239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Fox resolved TORQUE-239.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 4.0-beta2
    
> create debug output to determine where a snippet came from
> ----------------------------------------------------------
>
>                 Key: TORQUE-239
>                 URL: https://issues.apache.org/jira/browse/TORQUE-239
>             Project: Torque
>          Issue Type: Improvement
>          Components: Generator
>            Reporter: Thomas Fox
>            Assignee: Thomas Fox
>             Fix For: 4.0-beta2
>
>
> Given a generated output, ist is difficult to know which outlet produced a specific part of the output.
> To ease this, a switch should be made available which produces commenst which tell the start or the end oaf the output created b a certain outlet. e.g. for a  source
> <root>
>   <field name="i/>
>   <field name="j"/>
> </root>
> from which a simple java class 
> public class someClass
> {
>   int i;
>   int j;
> }
> is produced, the debug-enriched output could look like
> // start output of outlet Frame, current source element is root
> public class someClass
> {
> // start output of outlet Frame, current source element is field
>   int i;
> // end output of outlet Frame, current source element is field
> // start output of outlet Frame, current source element is field
>   int j;
> // end output of outlet Frame, current source element is field
> }
> // endoutput of outlet Frame, current source element is root
> for this, the controller mist jnow the type of the produced output (java, xml, properties etc) to determine the format of comments. A fallback should exist for an unknown output type.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org