Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Project Templates stomp on each other


hi Beth,

> I have two project templates, "MPI Hello World" and "MPI calculate Pi"
> each has a different "hello world" greeting value, and uses different
> template substitution "variables"


Template engine variables are exist in a single global namespace, so you'd
need to explicitly qualify variable names if they should be unique.

e.g.

        HelloWorld template.xml
                <property id="message"
                        label="%HelloWorld.message.label"
                        ...
                </property>
        CalculatePI template.xml
                <property id="message"
                        label="%MPIpi.message.label"
                        ...
                </property>

will each persist the chosen message value to the global store under the same
template variable 'message'. In order for them to not interact you could use

e.g.

        HelloWorld template.xml
                <property id="ptp.mpi.helloworld.message"
                        label="%HelloWorld.message.label"
                        ...
                </property>
        CalculatePI template.xml
                <property id="ptp.mpi.calcpi.message"
                        label="%MPIpi.message.label"
                        ...
                </property>


thanks,
Andrew


**********************************************************************
Symbian Software Ltd is a company registered in England and Wales with registered number 4190020 and registered office at 2-6 Boundary Row, Southwark, London, SE1 8HP, UK. This message is intended only for use by the named addressee and may contain privileged and/or confidential information. If you are not the named addressee you should not disseminate, copy or take any action in reliance on it. If you have received this message in error please notify postmaster@xxxxxxxxxxx and delete the message and any attachments accompanying it immediately. Neither Symbian nor any of its Affiliates accepts liability for any corruption, interception, amendment, tampering or viruses occurring to this message in transit or for any message sent by its employees which is not in compliance with Symbian corporate policy.
**********************************************************************


Back to the top