You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2007/06/25 02:43:25 UTC

[jira] Created: (TEXEN-11) Allow default properties to be overridden; extend contextProperties to include context.object.xxxx

Allow default properties to be overridden; extend contextProperties to include context.object.xxxx
--------------------------------------------------------------------------------------------------

                 Key: TEXEN-11
                 URL: https://issues.apache.org/jira/browse/TEXEN-11
             Project: Texen
          Issue Type: Improvement
            Reporter: Sebb


The default Texen properties are embedded in the jar file and cannot be overriden.
This should be fixed.

The contextProperties could also be extended to support properties of the form context.object.xxx=classname.

By the way, the construction of the "special" property names is different for the two types: 
context.object.xxx  uses a prefix, whereas 
yyy.file.contents     uses a suffix.

This should perhaps be addressed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (TEXEN-11) Allow default properties to be overridden; extend contextProperties to include context.object.xxxx

Posted by "Nathan Bubna (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TEXEN-11?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604407#action_12604407 ] 

Nathan Bubna commented on TEXEN-11:
-----------------------------------

It has long been on my todo list to add VelocityTools support to Texen, Anakia and DVSL.   Seems like the natural thing to do, and Tools 2 should make it a lot easier.  I should have a little play in my schedule this week.  I might take a stab at Texen first...

> Allow default properties to be overridden; extend contextProperties to include context.object.xxxx
> --------------------------------------------------------------------------------------------------
>
>                 Key: TEXEN-11
>                 URL: https://issues.apache.org/jira/browse/TEXEN-11
>             Project: Texen
>          Issue Type: Improvement
>            Reporter: Sebb
>
> The default Texen properties are embedded in the jar file and cannot be overriden.
> This should be fixed.
> The contextProperties could also be extended to support properties of the form context.object.xxx=classname.
> By the way, the construction of the "special" property names is different for the two types: 
> context.object.xxx  uses a prefix, whereas 
> yyy.file.contents     uses a suffix.
> This should perhaps be addressed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (TEXEN-11) Allow default properties to be overridden; extend contextProperties to include context.object.xxxx

Posted by "Barrie Treloar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TEXEN-11?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604403#action_12604403 ] 

Barrie Treloar commented on TEXEN-11:
-------------------------------------

the default properties should always be available, when you provide a new "contextProperties" you should be adding to it.

And it definitely should support the context.objects syntax.

By default it should include the velocity tools as well.

This should also be better documented.
It was only looking through the code I noticed that $now was defined for you.
Useless since you can't format it, but better than nothing until DateTools is included.

> Allow default properties to be overridden; extend contextProperties to include context.object.xxxx
> --------------------------------------------------------------------------------------------------
>
>                 Key: TEXEN-11
>                 URL: https://issues.apache.org/jira/browse/TEXEN-11
>             Project: Texen
>          Issue Type: Improvement
>            Reporter: Sebb
>
> The default Texen properties are embedded in the jar file and cannot be overriden.
> This should be fixed.
> The contextProperties could also be extended to support properties of the form context.object.xxx=classname.
> By the way, the construction of the "special" property names is different for the two types: 
> context.object.xxx  uses a prefix, whereas 
> yyy.file.contents     uses a suffix.
> This should perhaps be addressed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (TEXEN-11) Allow default properties to be overridden; extend contextProperties to include context.object.xxxx

Posted by "Will Glass-Husain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TEXEN-11?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12532933 ] 

Will Glass-Husain commented on TEXEN-11:
----------------------------------------

Sounds reasonable.

Sebb, if you want to submit a patch on this, that'd be fine.  We should make sure the old property names still work though, for compatibility reasons.

> Allow default properties to be overridden; extend contextProperties to include context.object.xxxx
> --------------------------------------------------------------------------------------------------
>
>                 Key: TEXEN-11
>                 URL: https://issues.apache.org/jira/browse/TEXEN-11
>             Project: Texen
>          Issue Type: Improvement
>            Reporter: Sebb
>
> The default Texen properties are embedded in the jar file and cannot be overriden.
> This should be fixed.
> The contextProperties could also be extended to support properties of the form context.object.xxx=classname.
> By the way, the construction of the "special" property names is different for the two types: 
> context.object.xxx  uses a prefix, whereas 
> yyy.file.contents     uses a suffix.
> This should perhaps be addressed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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