Bug 47163

Summary: Contributed task: #include
Product: Ant Reporter: Ramon Casha <rcasha>
Component: OtherAssignee: Ant Notifications List <notifications>
Status: NEW ---    
Severity: enhancement Keywords: PatchAvailable
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Attachments: "Include" ant task

Description Ramon Casha 2009-05-07 06:27:36 UTC
Created attachment 23624 [details]
"Include" ant task

I have created a task for my own use, which works somewhat similar to C's #include directive. It REPLACES the lines between "//#include filename" and "//#end" with the contents of "filename".

Before you all take burn me at the stake, it can be useful to include the same block of text in multiple files, such as when you want to extend the Swing components to add the same set of new properties in all of them.

I licensed it under the Apache license 2.0, so if anyone else finds it useful it can be added to the core or optional tasks.