Titanium JIRA Archive
Alloy (ALOY)

[ALOY-862] index.xml in subfolder throws error if it doesn't have a top-level container

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-08-05T17:44:05.000+0000
Affected Version/sn/a
Fix Version/sAlloy 1.3.0, 2013 Sprint 22
ComponentsXML
Labelsqe-manualtest
ReporterTony Lukasavage
AssigneeTony Lukasavage
Created2013-10-25T01:14:32.000+0000
Updated2014-08-05T17:44:05.000+0000

Description

There's a check in place to ensure that the main index.xml has at least one top-level view in it as a launching point for the app. Unfortunately that check looks at only the filename. This means that a file in a subfolder named index.xml also needs to abide by this rule, which is invalid.

Comments

  1. Tony Lukasavage 2013-10-25

    PR: https://github.com/appcelerator/alloy/pull/256 This can be tested with the following steps

    Create a default Alloy app

    Create a "views/test/index.xml" file with just the tag in it

    Run a alloy compile --platform ios

    The compile should run without error

    Prior to this fix, you would get something like the following error:
       [ERROR] Compile failed. index.xml must have a top-level container element.
       [ERROR] Valid elements: [Ti.UI.Window,Ti.UI.iPad.SplitWindow,Ti.UI.TabGroup,Ti.UI.iOS.NavigationWindow,Alloy.Collection,Alloy.Model]
       [ERROR] Alloy compiler failed
       
  2. Federico Casali 2013-12-04

    Verified compiling with no errors. TiSDK 3.2.0.v20131203104847 CLI 3.2.0-beta Alloy 1.3.0-beta Closing.

JSON Source