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 2007/05/14 18:06:13 UTC

DO NOT REPLY [Bug 42410] New: - New ant task sugestion...

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=42410

           Summary: New ant task sugestion... <inject-xml>
           Product: Ant
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: dlikhten@gmail.com


At my job I wrote an ant task which I believe can be extremely useful to put
into ant... This task does the following:
Take a file "target file" and replace a token in that target file with the token
itself, a newline, and entire contents of a "source file".

This is specifically written to work with XML and not a flat file, but the task
would create some comment markers so that the changes can be undone (by
specifying the "source file" and the markers will provide info on what needs to
be deleted). The goal was also to ensure that more than 1 run would not create
duplicate code in the "target file", as well as the ability to undo the changes.

The idea is for doing things like: Modifying web.xml to inject it with new
information (lets say we modify some client's install) by injecting web.xml with
 some other file which contains a list of custom servlet mappings.

In any case, I thought I would put the idea out there, if you guys like it I can
send you what I have, it needs some work to make it a completely generic
ant-task but it seems like a nice thing to have. I do not know how many people
need this sort of functionality. Maybe this is more inline with the ant-contrib
library?

--Dmitriy

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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