Bug 44239 - Add ability of Ant resource classes to act as factories for relative resources
Summary: Add ability of Ant resource classes to act as factories for relative resources
Status: RESOLVED FIXED
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.8.2
Hardware: Other other
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks: 41701
  Show dependency tree
 
Reported: 2008-01-15 02:51 UTC by Steve Loughran
Modified: 2012-08-17 22:21 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Loughran 2008-01-15 02:51:16 UTC
If we add an interface to those resources that can provide relative resources
(e.g. FileResource), then we can start thinking about how to <import> resources,
where the imported files will also make relative references (i.e. their own
<import> calls)
Comment 1 Matt Benson 2008-01-15 07:23:06 UTC
Hey, was this your idea or mine?  ;)
Comment 2 Matt Benson 2008-01-15 07:33:41 UTC
Anyway, that aside, I still don't see any reason that the existing ResourceFactory interface can't be used 
here.
Comment 3 Steve Loughran 2008-01-15 08:00:22 UTC
...didnt know about the existing one. Yes, you are right.
Comment 4 Steve Loughran 2008-01-15 10:25:07 UTC
changes checked in to FileResource. 

-it will convert backslashes and stuff during conversion, as with normal
filenames. Is this wise?

-Lots of work needed to do the same for zip/jar files and stuff on the classpath
Comment 5 Matt Benson 2008-01-15 11:21:06 UTC
Are you sure you've checked in changes?  I don't find any.  :(
Comment 6 Matt Benson 2012-08-17 22:21:48 UTC
this was checked in years ago.