Closed GoogleCodeExporter closed 9 years ago
First draft of a patch to make includes work as described above. It is still a
bit rough and includes a lot of debug which needs to come out before final
checkin.
This patch allows for include files to be loaded with paths relative to the
root document. This works ONLY when the initial policy file is loaded with the
new getInstance(URL url) factory method:
public static Policy getInstance(URL url) throws PolicyException
NOTE: Only 1 level of include is currently allowed. Recursive includes are not
supported.
Original comment by augu...@gmail.com
on 30 Sep 2010 at 11:55
Attachments:
New draft attached:
- Deprecated InputStream based factory method
- Made other factories ultimately use the URL-based factory
- Modified test case to use URL based factory and also attempt to load policy
file using InputStream to make sure includes fail nicely
- Cleaned up parseX methods to return void
- Changed encodeTags collection to a Set
Original comment by augu...@gmail.com
on 5 Oct 2010 at 11:47
Attachments:
Looks good. Go ahead and commit.
Original comment by arshan.d...@gmail.com
on 6 Oct 2010 at 3:23
Code checked in to SVN.
Original comment by augu...@gmail.com
on 6 Oct 2010 at 7:32
Original issue reported on code.google.com by
augu...@gmail.com
on 30 Sep 2010 at 11:40