[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
AW: [cdt-dev] Updating MBS project tyes - converter does not getcalled
|
Sunil,
thanks for the pointer. The Junit examples are neat and
small and the converter class behind them is a fake which just returns the input
IBuild objects unmodified. In my environment I have
2 operating systems times 2 artifact types (exe
and lib) times 2 configurations times ( 5 tools plus
builder plus target platform ) i.e. 40 items which need configuration. I found
that I must explicitly configure one converter per item, exactly specifying the
from and to id for each one. This does not look like a viable alternative at the
moment.
When trying to find more examples it struck me that the
extension point is not used anywhere in the CDT except in the junit tests. So I
do not find a real-world example anywhere at the moment.
Anybody got examples
or other good news for me?
Thanks
Norbert Ploett
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