Include External Files

Jun 6, 2012 at 2:34 PM

Is there any way to include external Combres resource set configuration? What I mean is, classically you have:

 

<combres>

    <resourceSets ...>

        <resourceSet/>

        <resourceSet/>

        <resourceSet/>

        ...

    </resourceSets>

</combres>

 

However, with a large number of sets this becomes somewhat unwieldy, what I'm thinking is something like:

 

<combres>

    <resourceSets ...>

        <resourceSet/>

        <resourceSet/>

        <resourceSet/>

        <include fileName="~/App_Data/combres_bob.xml"/>

        <include fileName="~/App_Data/combres_fred.xml"/>

        ...

    </resourceSets>

</combres>

 

In these include files would only ever be resourceSet nodes such as:

 

<combres>

        <resourceSet/>

        ...

</combres>

 

These would then be merged into the main set before processing replacing out the include nodes. This shouldn't be too hard to accomplish I already have something working I just wanted to share the thought and wondered if anything like this existed already?

Coordinator
Jun 11, 2012 at 10:16 PM

Unfortunately that's not supported right now. The best thing you could is factoring out resource sets and refer to them in other sets, but everything must be in the same file. Adding support for this isn't as trivial as it might seem, because in the auto-versioning mode, Combres has to monitor changes to config file in order to generate new versions, e.g. when you add a new resource into a set. Supporting this means any file and its change could contribute to the version change. While it's certainly doable, I don't see I have time for it any soon. 

Jun 24, 2012 at 1:59 PM

On a similar note - 

I want to dynamically (from code behind) add resource sets.

Am I correct to assume that this is not available for similar reasons?

thx

Coordinator
Jun 25, 2012 at 5:16 PM

@chenamit: you're right, it's not available now.

Jun 25, 2012 at 11:23 PM

We’ve been looking at XML Include at work which seems to work in theory, still need to solve the monitoring issue though like you said.

From: buunguyen [email removed]
Sent: 25 June 2012 21:16
To: lloydkinsella@gmail.com
Subject: Re: Include External Files [combres:358579]

From: buunguyen

@chenamit: you're right, it's not available now.