Xml and the qnx 6.2.1 IDE

Hello
I am using the qnx 6.2.1 ide on windows 2000. I am building images for
the Hitachi BigSur/Amanda board. The image contains both an ifs and an
efs. The efs is compressed. In order to get the efs compressed a
property must be set on the efs. The property is filter and the string
that must be put in there is flashcmp -t ucl (because that is the
filtering that I want). I put that string in the property build the
image. The mkefs failed because the string was not in quotes. I put the
quotes around the property so it was “flashcmp -t ucl”. I saved this
change and now the image was able to build. I closed my worksapce and
reopened. Upon reopening the project.bld, everything was gone. I opened
the project.bld file and found the following. It looks like the file is
xml. In the xml file I found the following line
<image type=“efs”
filter="“flashcmp -t ucl”"
The above line is not a valid xml line, as xml uses " as a delimiter, and
all quotes that I add in the properties should be replaced with the xml
special character for quote " that would make the line
<image type=“efs”
filter="“flashcmp -t ucl”"
The above line allows the xml parser for the ide to correctly interperate
my project.bld file, shows “flashcmp -t ucl” in the property field in the
ide and mkefs builds the image correctly.

I also have a second pr about the system builder
I tried to add binaries to my image from Program Files, but mkefs can not
rectify paths with spaces.

The tools need to know enough so that the IDE adds quotes (") around
the build paths or the mkefs tool needs to be tolerant of spaces.

Thanks
Patrick

That is a bug in the generation of the mkefs build file from the project
data. I will get that fix in for 6.2.1A.

chris


Patrick_Dempsey@us.ibm.com wrote:

Hello
I am using the qnx 6.2.1 ide on windows 2000. I am building images for
the Hitachi BigSur/Amanda board. The image contains both an ifs and an
efs. The efs is compressed. In order to get the efs compressed a
property must be set on the efs. The property is filter and the string
that must be put in there is flashcmp -t ucl (because that is the
filtering that I want). I put that string in the property build the
image. The mkefs failed because the string was not in quotes. I put the
quotes around the property so it was “flashcmp -t ucl”. I saved this
change and now the image was able to build. I closed my worksapce and
reopened. Upon reopening the project.bld, everything was gone. I opened
the project.bld file and found the following. It looks like the file is
xml. In the xml file I found the following line
image type=“efs”
filter="“flashcmp -t ucl”"
The above line is not a valid xml line, as xml uses " as a delimiter, and
all quotes that I add in the properties should be replaced with the xml
special character for quote " that would make the line
image type=“efs”
filter="“flashcmp -t ucl”"
The above line allows the xml parser for the ide to correctly interperate
my project.bld file, shows “flashcmp -t ucl” in the property field in the
ide and mkefs builds the image correctly.

I also have a second pr about the system builder
I tried to add binaries to my image from Program Files, but mkefs can not
rectify paths with spaces.
item type=“file”
name=“amanda.conf”
enabled=“true”
image=“amanda”
location="/proc/boot"
buildpath=“C:\Program Files\amanda.conf”
data_uip=“false”
code_uip=“true”
uid=“0”
gid=“0”
perms=“0777”
raw=“false”/

The tools need to know enough so that the IDE adds quotes (") around
the build paths or the mkefs tool needs to be tolerant of spaces.

Thanks
Patrick


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/