Christian Damus(deleted)
|
Re: How can I create build container files quickly?
|
Christian Damus(deleted)
08/04/2010 3:58 PM
post61629
|
Re: How can I create build container files quickly?
Hi, Rex,
See some comments in-line, below.
HTH,
Christian
On 04/08/10 01:47 PM, Rex Lam wrote:
> Hello,
>
> I have a question that came from a developer at my company. He is trying to quickly create a build container for his
projects by copying a container for another project and modifying it for his project. He has run into a problem when
trying to update the container for his project. Let's say the container references the following projects:
>
> CommonLib1
> CommonLib2
> CommonLib3
> OldProject1
> OldProject2
> NewProject1
> NewProject2
>
> This is just a small example. We have a lot more projects than listed above. We would like to use the IDE to update
the container file (com.qnx.tools.ide.qde.core.prefs). There are several make configurations in this build container.
In this example, the new project does not use "OldProjectX" so those need to be removed. He starts by importing the QNX
build container to his workspace. He unchecks the missing projects (i.e. OldProject1, OldProject2) so that the IDE
does not try to import the missing projects.
>
> The .prefs file still needs to be updated. So he edits the make configuration from the IDE. After removing
OldProject1 and OldProject2 from the make configuration window, he clicks OK but sees an error window: "Error saving
updated project configurations:null". The .prefs file is not updated although the make configuration
This is a bug. The property page for the configuration should
understand that configurations are being removed that don't exist, anyway.
> shows the changes he made. If we restarts the IDE, his changes are gone, and the make configuration is refreshed
from the .prefs file.
>
> We tried manually deleting the OldProjectX xml entries in the .prefs file, but that causes the container file to be
corrupted because the projects are not in sequence.
>
Can you provide more specifics of the corruption? There is no XML in
the container project settings (.prefs file). If you are removing
elements from the sequence, you should shift down the sequence numbers
of any subsequent entries so that there are no gaps in the sequence.
Look for the ".../build_position=<#>" entries in the file.
> Questions:
> 1) Is this the best way to create build containers quickly? Is there another alternative that involves container
templates? We would like to avoid creating the build container from scratch, as it involves many projects, many make
configurations, and tedious variant configurations.
>
Editing the file "directly" is the only way, owing to the bug in the
attempt to remove non-existent projects from the configuration. It
should be feasible to do this, as long as the sequence is maintained.
> 2) What caused the save error? Is there a workaround for this error?
>
No, there is no work-around. It's just a programming error in the
property page.
> The save error was observed on IDE 4.6.1 and IDE 4.7 (packaged with QNX 6.5.0 release).
>
> Rex
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post61608
>
>
--
*Christian W. Damus*
Software Developer, IDE Team
QNX Software Systems <http://www.qnx.com/>
|
|
|
Christian Damus(deleted)
|
Re: How can I create build container files quickly?
|
Christian Damus(deleted)
08/04/2010 4:16 PM
post61636
|
Re: How can I create build container files quickly?
Rex,
I have raised PR 78513 to track the bug in saving the modified container
configuration.
Cheers,
Christian
|
|
|