You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2002/04/05 16:40:11 UTC

DO NOT REPLY [Bug 7767] New: - [CONTRIBUTION] XML-Property Ant task

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7767>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7767

[CONTRIBUTION] XML-Property Ant task

           Summary: [CONTRIBUTION] XML-Property Ant task
           Product: Ant
           Version: 1.5 alpha (nightly)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: nicolaken@apache.org


This task takes the nodes in an XML file and makes properties out of it.

    <root-tag>
      <inner-tag>Text</inner-tag>
      <2><3><4>false</4></3></2>  
      <other name="mine"> 
    </root-tag>
     
   myattr=true
   inner-tag=Text
   2.3.4=false
   other.name=mine

It can keep the root tag or not and add a prefix or not.

If you think to accept the donation, please tell me where it's going to go, and 
I will submit a patch+docs.
It could be indipendent (core or optional?) or become part of the property 
task).

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
            - verba volant, scripta manent -
   (discussions get forgotten, just code remains)
---------------------------------------------------------------------

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: DO NOT REPLY [Bug 7767] New: - [CONTRIBUTION] XML-Property Ant task

Posted by Erik Hatcher <ja...@ehatchersolutions.com>.
Nicola,

No need to check for immutability yourself.... you can call setNewProperty
and it does the check.

I'll watch for your resubmission and commit when it comes in.

    Erik


----- Original Message -----
From: "Nicola Ken Barozzi" <ni...@apache.org>
To: "Ant Developers List" <an...@jakarta.apache.org>
Sent: Monday, April 08, 2002 9:40 AM
Subject: Re: DO NOT REPLY [Bug 7767] New: - [CONTRIBUTION] XML-Property Ant
task


> From: "Stefan Bodewig" <bo...@apache.org>
>
> > On Fri, 5 Apr 2002, Erik Hatcher <ja...@ehatchersolutions.com>
> > wrote:
> >
> > > Anyone disapprove of this addition?  Should it be in the core (my
> > > +1) or optional?
> >
> > yet another property setting task ... I know you'll make sure it
> > doesn't break property immutability 8-)
> >
> > No objections against it as a core task.
>
> Ok, I'll refactor it to go in core ant, check immutability, and resubmit.
>
> --
> Nicola Ken Barozzi                   nicolaken@apache.org
>             - verba volant, scripta manent -
>    (discussions get forgotten, just code remains)
> ---------------------------------------------------------------------
>
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: DO NOT REPLY [Bug 7767] New: - [CONTRIBUTION] XML-Property Ant task

Posted by Nicola Ken Barozzi <ni...@apache.org>.
From: "Stefan Bodewig" <bo...@apache.org>

> On Fri, 5 Apr 2002, Erik Hatcher <ja...@ehatchersolutions.com>
> wrote:
> 
> > Anyone disapprove of this addition?  Should it be in the core (my
> > +1) or optional?
> 
> yet another property setting task ... I know you'll make sure it
> doesn't break property immutability 8-)
> 
> No objections against it as a core task.

Ok, I'll refactor it to go in core ant, check immutability, and resubmit.

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
            - verba volant, scripta manent -
   (discussions get forgotten, just code remains)
---------------------------------------------------------------------


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: DO NOT REPLY [Bug 7767] New: - [CONTRIBUTION] XML-Property Ant task

Posted by Stefan Bodewig <bo...@apache.org>.
On Fri, 5 Apr 2002, Erik Hatcher <ja...@ehatchersolutions.com>
wrote:

> Anyone disapprove of this addition?  Should it be in the core (my
> +1) or optional?

yet another property setting task ... I know you'll make sure it
doesn't break property immutability 8-)

No objections against it as a core task.

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: DO NOT REPLY [Bug 7767] New: - [CONTRIBUTION] XML-Property Ant task

Posted by Erik Hatcher <ja...@ehatchersolutions.com>.
Anyone disapprove of this addition?  Should it be in the core (my +1) or
optional?

This looks quite slick functionally (didn't look at the code, although I'm
sure its good too).  I can see this being quite useful.

    Erik

----- Original Message -----
From: <bu...@apache.org>
To: <an...@jakarta.apache.org>
Sent: Friday, April 05, 2002 9:40 AM
Subject: DO NOT REPLY [Bug 7767] New: - [CONTRIBUTION] XML-Property Ant task


> DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
> RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7767>.
> ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
> INSERTED IN THE BUG DATABASE.
>
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7767
>
> [CONTRIBUTION] XML-Property Ant task
>
>            Summary: [CONTRIBUTION] XML-Property Ant task
>            Product: Ant
>            Version: 1.5 alpha (nightly)
>           Platform: All
>         OS/Version: All
>             Status: NEW
>           Severity: Enhancement
>           Priority: Other
>          Component: Core tasks
>         AssignedTo: ant-dev@jakarta.apache.org
>         ReportedBy: nicolaken@apache.org
>
>
> This task takes the nodes in an XML file and makes properties out of it.
>
>     <root-tag>
>       <inner-tag>Text</inner-tag>
>       <2><3><4>false</4></3></2>
>       <other name="mine">
>     </root-tag>
>
>    myattr=true
>    inner-tag=Text
>    2.3.4=false
>    other.name=mine
>
> It can keep the root tag or not and add a prefix or not.
>
> If you think to accept the donation, please tell me where it's going to
go, and
> I will submit a patch+docs.
> It could be indipendent (core or optional?) or become part of the property
> task).
>
> --
> Nicola Ken Barozzi                   nicolaken@apache.org
>             - verba volant, scripta manent -
>    (discussions get forgotten, just code remains)
> ---------------------------------------------------------------------
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>