[ALOY-862] index.xml in subfolder throws error if it doesn't have a top-level container
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2014-08-05T17:44:05.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Alloy 1.3.0, 2013 Sprint 22 |
| Components | XML |
| Labels | qe-manualtest |
| Reporter | Tony Lukasavage |
| Assignee | Tony Lukasavage |
| Created | 2013-10-25T01:14:32.000+0000 |
| Updated | 2014-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.
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 iosThe compile should run without error
Prior to this fix, you would get something like the following error:Verified compiling with no errors. TiSDK 3.2.0.v20131203104847 CLI 3.2.0-beta Alloy 1.3.0-beta Closing.