You're right that XInclude only works with XML. Perhaps this is why Ralph said it's a "special case". It's a pretty powerful standard feature; yet it won't fit the bill if you want to watch files. Sorry, I know no such way of knowing what files are included through XInclude because it's meant to be transparent. Don't take my word for it but I have yet to find a way (or need a way).
Cheers, Paul On Wed, Mar 2, 2016 at 1:06 PM, Gary Gregory <[email protected]> wrote: > So, with XInclude, there is no way to ask for "What files are you really > included when processing this document" unless you get in the guts of the > private Xerces copy which is in Oracle Java 7 (but not in Java 8), which we > do not want to do. Also XInclude does not work with JSON and YAML. > > G > > On Wed, Mar 2, 2016 at 10:52 AM, Paul Benedict <[email protected]> > wrote: > >> I agree with the initial assessment that XInclude is the way to go. If >> someone wants to use XInclude, they should provide the right parser >> implementation to make it available. I wouldn't bend over backward to do >> your own inclusion mechanism; put it on the consumer to provide the >> appropriate parser. >> >> Cheers, >> Paul >> >> On Wed, Mar 2, 2016 at 12:39 PM, Gary Gregory <[email protected]> >> wrote: >> >>> Stemming from discussion in >>> https://github.com/apache/logging-log4j2/pull/25 >>> >>> How about finally adding our own include mechanism: >>> >>> <Include monitorIntervalSeconds="60">file://...</Include> >>> >>> If Configuration has a monitorInterval, then Includes inherit the >>> setting, if you set an Include monitorInterval to 0 then, then it is >>> not watched. >>> >>> Thoughts? >>> >>> Gary >>> >>> -- >>> E-Mail: [email protected] | [email protected] >>> Java Persistence with Hibernate, Second Edition >>> <http://www.manning.com/bauer3/> >>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> >>> Spring Batch in Action <http://www.manning.com/templier/> >>> Blog: http://garygregory.wordpress.com >>> Home: http://garygregory.com/ >>> Tweet! http://twitter.com/GaryGregory >>> >> >> > > > -- > E-Mail: [email protected] | [email protected] > Java Persistence with Hibernate, Second Edition > <http://www.manning.com/bauer3/> > JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> > Spring Batch in Action <http://www.manning.com/templier/> > Blog: http://garygregory.wordpress.com > Home: http://garygregory.com/ > Tweet! http://twitter.com/GaryGregory >
