Generate XML fixes: 92/50492/2
authorPawel Sikorski <p.sikorski@samsung.com>
Thu, 29 Oct 2015 08:59:51 +0000 (09:59 +0100)
committerPawel Sikorski <p.sikorski@samsung.com>
Thu, 29 Oct 2015 10:57:51 +0000 (11:57 +0100)
* Removal of permission-type attribute from generated xml
  (no such attribute in specification).
* Adding taskmanage="false" to service application
* launch_mode attribture strlen check added

Change-Id: I3c88acf4cbae7fc6393d206943f10b8c77bf8611

src/common/step/step_generate_xml.cc

index b1db323..48bea4c 100755 (executable)
@@ -33,7 +33,7 @@ void WriteUIApplicationAttributes(
   if (app->nodisplay)
     xmlTextWriterWriteAttribute(writer, BAD_CAST "nodisplay",
         BAD_CAST app->nodisplay);
-  if (app->launch_mode)
+  if (app->launch_mode && strlen(app->launch_mode))
     xmlTextWriterWriteAttribute(writer, BAD_CAST "launch_mode",
         BAD_CAST app->launch_mode);
 }
@@ -44,8 +44,8 @@ void WriteServiceApplicationAttributes(
       BAD_CAST(app->autorestart ? app->autorestart : "false"));
   xmlTextWriterWriteAttribute(writer, BAD_CAST "on-boot",
       BAD_CAST(app->onboot ? app->onboot : "false"));
-  xmlTextWriterWriteAttribute(writer, BAD_CAST "permission-type",
-      BAD_CAST(app->permission_type ? app->permission_type : ""));
+  xmlTextWriterWriteAttribute(writer, BAD_CAST "taskmanage",
+      BAD_CAST "false");
 }
 
 }  // namespace