You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Hilco Wijbenga (JIRA)" <ji...@apache.org> on 2005/11/17 21:22:44 UTC

[jira] Created: (VELOCITY-422) Add support for and nested elements to TexenTask.

Add support for <property> and <propertyset> nested elements to TexenTask.
--------------------------------------------------------------------------

         Key: VELOCITY-422
         URL: http://issues.apache.org/jira/browse/VELOCITY-422
     Project: Velocity
        Type: Improvement
  Components: Texen  
    Versions: 1.5    
    Reporter: Hilco Wijbenga
    Priority: Minor
     Fix For: 1.5


I would like to be able to use nested <property> and <propertyset> elements as in

<texen ...>
  <property name="..." value="..."/>
  <propertyset .../>
</texen>

and then have the properties available in the Velocity context.

Note that Ant allows namespaces and dots whereas Velocity does not (i.e. dots have a different meaning). So an Ant property name like 'ns:a.b.c' would become something like ns_a_b_c in Velocity context.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (VELOCITY-422) Add support for and nested elements to TexenTask.

Posted by "Will Glass-Husain (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/VELOCITY-422?page=comments#action_12357940 ] 

Will Glass-Husain commented on VELOCITY-422:
--------------------------------------------

Hilco - were you going to attach some files?

> Add support for <property> and <propertyset> nested elements to TexenTask.
> --------------------------------------------------------------------------
>
>          Key: VELOCITY-422
>          URL: http://issues.apache.org/jira/browse/VELOCITY-422
>      Project: Velocity
>         Type: Improvement
>   Components: Texen
>     Versions: 1.5
>     Reporter: Hilco Wijbenga
>     Priority: Minor

>
> I would like to be able to use nested <property> and <propertyset> elements as in
> <texen ...>
>   <property name="..." value="..."/>
>   <propertyset .../>
> </texen>
> and then have the properties available in the Velocity context.
> Note that Ant allows namespaces and dots whereas Velocity does not (i.e. dots have a different meaning). So an Ant property name like 'ns:a.b.c' would become something like ns_a_b_c in Velocity context.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (VELOCITY-422) Add support for and nested elements to TexenTask.

Posted by "Will Glass-Husain (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/VELOCITY-422?page=all ]

Will Glass-Husain updated VELOCITY-422:
---------------------------------------

    Fix Version:     (was: 1.5)

Given how close we are to feature freeze, I'm going to mark this as unscheduled until I have a chance to review and confirm all pieces are present.

> Add support for <property> and <propertyset> nested elements to TexenTask.
> --------------------------------------------------------------------------
>
>          Key: VELOCITY-422
>          URL: http://issues.apache.org/jira/browse/VELOCITY-422
>      Project: Velocity
>         Type: Improvement
>   Components: Texen
>     Versions: 1.5
>     Reporter: Hilco Wijbenga
>     Priority: Minor

>
> I would like to be able to use nested <property> and <propertyset> elements as in
> <texen ...>
>   <property name="..." value="..."/>
>   <propertyset .../>
> </texen>
> and then have the properties available in the Velocity context.
> Note that Ant allows namespaces and dots whereas Velocity does not (i.e. dots have a different meaning). So an Ant property name like 'ns:a.b.c' would become something like ns_a_b_c in Velocity context.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (VELOCITY-422) Add support for and nested elements to TexenTask.

Posted by "Will Glass-Husain (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/VELOCITY-422?page=comments#action_12358058 ] 

Will Glass-Husain commented on VELOCITY-422:
--------------------------------------------

never mind, I get it.  Maybe we could have the ant script generate this.

> Add support for <property> and <propertyset> nested elements to TexenTask.
> --------------------------------------------------------------------------
>
>          Key: VELOCITY-422
>          URL: http://issues.apache.org/jira/browse/VELOCITY-422
>      Project: Velocity
>         Type: Improvement
>   Components: Texen
>     Versions: 1.5
>     Reporter: Hilco Wijbenga
>     Priority: Minor
>  Attachments: TexenTask.java.diff, patch.txt, texen.tar.bz2, texen.xml.diff
>
> I would like to be able to use nested <property> and <propertyset> elements as in
> <texen ...>
>   <property name="..." value="..."/>
>   <propertyset .../>
> </texen>
> and then have the properties available in the Velocity context.
> Note that Ant allows namespaces and dots whereas Velocity does not (i.e. dots have a different meaning). So an Ant property name like 'ns:a.b.c' would become something like ns_a_b_c in Velocity context.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (VELOCITY-422) Add support for and nested elements to TexenTask.

Posted by "Will Glass-Husain (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/VELOCITY-422?page=comments#action_12358057 ] 

Will Glass-Husain commented on VELOCITY-422:
--------------------------------------------

what is test.jar?   It's very unusual to store a jar file in source control?

> Add support for <property> and <propertyset> nested elements to TexenTask.
> --------------------------------------------------------------------------
>
>          Key: VELOCITY-422
>          URL: http://issues.apache.org/jira/browse/VELOCITY-422
>      Project: Velocity
>         Type: Improvement
>   Components: Texen
>     Versions: 1.5
>     Reporter: Hilco Wijbenga
>     Priority: Minor
>  Attachments: TexenTask.java.diff, patch.txt, texen.tar.bz2, texen.xml.diff
>
> I would like to be able to use nested <property> and <propertyset> elements as in
> <texen ...>
>   <property name="..." value="..."/>
>   <propertyset .../>
> </texen>
> and then have the properties available in the Velocity context.
> Note that Ant allows namespaces and dots whereas Velocity does not (i.e. dots have a different meaning). So an Ant property name like 'ns:a.b.c' would become something like ns_a_b_c in Velocity context.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (VELOCITY-422) Add support for and nested elements to TexenTask.

Posted by "Will Glass-Husain (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/VELOCITY-422?page=comments#action_12358055 ] 

Will Glass-Husain commented on VELOCITY-422:
--------------------------------------------

Sounds very promising.

Sorry to be obnoxious about this, but...

Could you submit this as one diff?  It's really easy.  Just go to the root velocity directory and type

svn diff . > patch.txt

It's much much easier to apply.  It also captures all new files automatically.

Thanks again for contributing.



> Add support for <property> and <propertyset> nested elements to TexenTask.
> --------------------------------------------------------------------------
>
>          Key: VELOCITY-422
>          URL: http://issues.apache.org/jira/browse/VELOCITY-422
>      Project: Velocity
>         Type: Improvement
>   Components: Texen
>     Versions: 1.5
>     Reporter: Hilco Wijbenga
>     Priority: Minor
>  Attachments: TexenTask.java.diff, texen.tar.bz2, texen.xml.diff
>
> I would like to be able to use nested <property> and <propertyset> elements as in
> <texen ...>
>   <property name="..." value="..."/>
>   <propertyset .../>
> </texen>
> and then have the properties available in the Velocity context.
> Note that Ant allows namespaces and dots whereas Velocity does not (i.e. dots have a different meaning). So an Ant property name like 'ns:a.b.c' would become something like ns_a_b_c in Velocity context.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (VELOCITY-422) Add support for and nested elements to TexenTask.

Posted by "Henning Schmiedehausen (JIRA)" <de...@velocity.apache.org>.
     [ https://issues.apache.org/jira/browse/VELOCITY-422?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henning Schmiedehausen updated VELOCITY-422:
--------------------------------------------

    Fix Version/s:     (was: 1.5)
                   1.6

Missed the 1.5 boat.

> Add support for <property> and <propertyset> nested elements to TexenTask.
> --------------------------------------------------------------------------
>
>                 Key: VELOCITY-422
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-422
>             Project: Velocity
>          Issue Type: Improvement
>          Components: Texen
>    Affects Versions: 1.5
>            Reporter: Hilco Wijbenga
>            Priority: Minor
>             Fix For: 1.6
>
>         Attachments: patch.txt, texen.tar.bz2, texen.xml.diff, TexenTask.java.diff
>
>
> I would like to be able to use nested <property> and <propertyset> elements as in
> <texen ...>
>   <property name="..." value="..."/>
>   <propertyset .../>
> </texen>
> and then have the properties available in the Velocity context.
> Note that Ant allows namespaces and dots whereas Velocity does not (i.e. dots have a different meaning). So an Ant property name like 'ns:a.b.c' would become something like ns_a_b_c in Velocity context.

-- 
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] Updated: (VELOCITY-422) Add support for and nested elements to TexenTask.

Posted by "Hilco Wijbenga (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/VELOCITY-422?page=all ]

Hilco Wijbenga updated VELOCITY-422:
------------------------------------

    Attachment: TexenTask.java.diff
                texen.xml.diff

This is the actual patch; test cases are on their way too.

> Add support for <property> and <propertyset> nested elements to TexenTask.
> --------------------------------------------------------------------------
>
>          Key: VELOCITY-422
>          URL: http://issues.apache.org/jira/browse/VELOCITY-422
>      Project: Velocity
>         Type: Improvement
>   Components: Texen
>     Versions: 1.5
>     Reporter: Hilco Wijbenga
>     Priority: Minor
>  Attachments: TexenTask.java.diff, texen.xml.diff
>
> I would like to be able to use nested <property> and <propertyset> elements as in
> <texen ...>
>   <property name="..." value="..."/>
>   <propertyset .../>
> </texen>
> and then have the properties available in the Velocity context.
> Note that Ant allows namespaces and dots whereas Velocity does not (i.e. dots have a different meaning). So an Ant property name like 'ns:a.b.c' would become something like ns_a_b_c in Velocity context.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (VELOCITY-422) Add support for and nested elements to TexenTask.

Posted by "Will Glass-Husain (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/VELOCITY-422?page=all ]

Will Glass-Husain updated VELOCITY-422:
---------------------------------------

    Fix Version: 1.5

marking this for 1.5

> Add support for <property> and <propertyset> nested elements to TexenTask.
> --------------------------------------------------------------------------
>
>          Key: VELOCITY-422
>          URL: http://issues.apache.org/jira/browse/VELOCITY-422
>      Project: Velocity
>         Type: Improvement
>   Components: Texen
>     Versions: 1.5
>     Reporter: Hilco Wijbenga
>     Priority: Minor
>      Fix For: 1.5
>  Attachments: TexenTask.java.diff, patch.txt, texen.tar.bz2, texen.xml.diff
>
> I would like to be able to use nested <property> and <propertyset> elements as in
> <texen ...>
>   <property name="..." value="..."/>
>   <propertyset .../>
> </texen>
> and then have the properties available in the Velocity context.
> Note that Ant allows namespaces and dots whereas Velocity does not (i.e. dots have a different meaning). So an Ant property name like 'ns:a.b.c' would become something like ns_a_b_c in Velocity context.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (VELOCITY-422) Add support for and nested elements to TexenTask.

Posted by "Hilco Wijbenga (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/VELOCITY-422?page=all ]

Hilco Wijbenga updated VELOCITY-422:
------------------------------------

    Attachment: patch.txt

I didn't realise diff could be used like this. Very nice! The attached file is exactly what you suggested: 'svn diff .' in the velocity directory.

I had to remove test/texen-classpath/test.jar (since it's binary) so please rerun test/texen-classpath/mkjar.sh before checking in!

> Add support for <property> and <propertyset> nested elements to TexenTask.
> --------------------------------------------------------------------------
>
>          Key: VELOCITY-422
>          URL: http://issues.apache.org/jira/browse/VELOCITY-422
>      Project: Velocity
>         Type: Improvement
>   Components: Texen
>     Versions: 1.5
>     Reporter: Hilco Wijbenga
>     Priority: Minor
>  Attachments: TexenTask.java.diff, patch.txt, texen.tar.bz2, texen.xml.diff
>
> I would like to be able to use nested <property> and <propertyset> elements as in
> <texen ...>
>   <property name="..." value="..."/>
>   <propertyset .../>
> </texen>
> and then have the properties available in the Velocity context.
> Note that Ant allows namespaces and dots whereas Velocity does not (i.e. dots have a different meaning). So an Ant property name like 'ns:a.b.c' would become something like ns_a_b_c in Velocity context.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (VELOCITY-422) Add support for and nested elements to TexenTask.

Posted by "Hilco Wijbenga (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/VELOCITY-422?page=all ]

Hilco Wijbenga updated VELOCITY-422:
------------------------------------

    Attachment: texen.tar.bz2

The contents of the attached tarball is listed below.

The patch itself (code & documentation):
src/java/org/apache/velocity/texen/ant/TexenTask.java.diff
xdocs/docs/texen.xml.diff

Test stuff:
test/texen/compare/nested_elements.txt
test/texen/templates/nested_elements.vm
test/texen/templates/Control.vm.diff
test/texen-classpath/compare/nested_elements.txt
test/texen-classpath/jar-contents/nested_elements.vm
test/texen-classpath/jar-contents/Control.vm.diff
test/texen-classpath/test.jar
src/test/org/apache/velocity/test/TexenTestCase.java.diff
src/test/org/apache/velocity/test/TexenClasspathTestCase.java.diff
build/testcases.xml.diff


> Add support for <property> and <propertyset> nested elements to TexenTask.
> --------------------------------------------------------------------------
>
>          Key: VELOCITY-422
>          URL: http://issues.apache.org/jira/browse/VELOCITY-422
>      Project: Velocity
>         Type: Improvement
>   Components: Texen
>     Versions: 1.5
>     Reporter: Hilco Wijbenga
>     Priority: Minor
>  Attachments: TexenTask.java.diff, texen.tar.bz2, texen.xml.diff
>
> I would like to be able to use nested <property> and <propertyset> elements as in
> <texen ...>
>   <property name="..." value="..."/>
>   <propertyset .../>
> </texen>
> and then have the properties available in the Velocity context.
> Note that Ant allows namespaces and dots whereas Velocity does not (i.e. dots have a different meaning). So an Ant property name like 'ns:a.b.c' would become something like ns_a_b_c in Velocity context.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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