[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [cdt-dev] Updating MBS project tyes - converter does not get called
|
Hi,
There is a JUnit test
that checks the project converter functionality. Please see the JUnit test
'testProjectConversion()' in 'MultiVersionSupportTests' suite. The package
'org.eclipse.cdt.managedbuilder.core.tests' contains this test suite. Please see
the JUnit test if you have missed anything else.
By the way, Leo is on
vacation.
Regards,
Sunil
Hi
folks,
I was overhauling
some org.eclipse.cdt.managedbuilder.core.buildDefinitions and now I want to
distribute the updated definitions to my clients. The ids for projectType,
configuration and toolchain have remained the same but I changed pretty much
every id for the tool and builder definitions. Referring to the document
attached to bugzilla #89872 I thought I'd go by this simple
scheme:
- Simply append a
version identifier to the projectType definition, like so:
previously: <projectType
id="com.siemens.ad.rtp.audis.tools.exe"
afterwards: <projectType
id="com.siemens.ad.rtp.audis.tools.exe_2.0.0"
- Make any changes I
like below and rely on my converter implementation to put things
straight later on.
- Declare a project
converter
<extension
point="org.eclipse.cdt.managedbuilder.core.projectConverter">
<converter
id="com.siemens.ad.rtp.audis.tools.convert_old_2.0.0"
fromId="com.siemens.ad.rtp.audis.tools.exe"
toId="com.siemens.ad.rtp.audis.tools.exe_2.0.0"/>
mbsVersion="3.1.0"
name="AuDis Builddefinitions Converter, old to
2.0.0"
class="com.siemens.ad.rtp.audis.tools.Converter_200_Old"
</extension>
But the converter never gets called.
Reading the documentation in #89872 seemed to indicate
that the old project type declaration must still be present in the file so I
tried with a dummy declaration which has the convertToId
attribute:
<projectType
id="com.siemens.ad.rtp.audis.tools.exe"
name="AuDis
executable built on Windows
host"
convertToId="com.siemens.ad.rtp.audis.tools.exe_2.0.0"/>
Didn't work
either.
Then I retried specifying the
old configuration and toolchain in addition to the project
type:
<projectType
id="com.siemens.ad.rtp.audis.tools.exe"
name="AuDis
executable built on Windows
host"
convertToId="com.siemens.ad.rtp.audis.tools.exe_2.0.0">
<configuration
id="com.siemens.ad.rtp.audis.tools.exe.debug"
convertToId="com.siemens.ad.rtp.audis.tools.exe.debug_2.0.0">
<toolChain
id="com.siemens.ad.rtp.audis.tools.exe.debug.wintools"
convertToId="com.siemens.ad.rtp.audis.tools.exe.debug.wintools_2.0.0"/>
</configuration>
<configuration
id="com.siemens.ad.rtp.audis.tools.exe.release"
convertToId="com.siemens.ad.rtp.audis.tools.exe.release_2.0.0">
<toolChain
id="com.siemens.ad.rtp.audis.tools.exe.release.wintools"
convertToId="com.siemens.ad.rtp.audis.tools.exe.release.wintools_2.0.0"/>
</configuration>
</projectType>
Converter still doesn't get
called.
What more can I do? (Huh,
Leo?)
Thanks for reading this far and
a pointer to the next step.
Norbert
Ploett