Bug 47163 - Contributed task: #include
Summary: Contributed task: #include
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2009-05-07 06:27 UTC by Ramon Casha
Modified: 2009-07-31 07:55 UTC (History)
0 users



Attachments
"Include" ant task (10.08 KB, text/plain)
2009-05-07 06:27 UTC, Ramon Casha
Details

Note You need to log in before you can comment on or make changes to this bug.
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.