It seems that InstallBuilder expands the included XML file in the target project. Is it possible to prevent the file expansion so that true nature of include is preserved?

asked 27 Nov '11, 04:21

GigaG's gravatar image

GigaG
419911
accept rate: 0%

Could you provide us with some more details? Do you mean that when loading a project in the GUI the includes are resolved? They should converted back to an <include> when saving the project.

(28 Nov '11, 09:35) juanjo ♦♦

Yes, exactly. I would expect <include> statements to remain intact so that I can change the include source file contents and it affects all the projects using it.

(28 Nov '11, 11:06) GigaG

What you could do is open the project in the GUI and go to the "XML Editor". There, the included elements will look as:

<project>
    <shortName>sample</shortName>
    <fullName>Sample Project</fullName>
    <version>1.0</version>
    <componentList>
        <component xmlOriginFile="/home/bitrock/component.xml">
            <name>default</name>
            <description>Default Component</description>
            <canBeEdited>1</canBeEdited>
            <selected>1</selected>
            <show>1</show>
            ...
        </component>
    </componentList>
    ...
</project>

Where <xmlOriginFile> defines the path to the file being included. You can then modify the code of the element (that will be later on saved to the appropriate file) or change the path of the file.

link

answered 28 Nov '11, 11:25

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×50
×4

Asked: 27 Nov '11, 04:21

Seen: 1,216 times

Last updated: 28 Nov '11, 11:25