Titanium JIRA Archive
Alloy (ALOY)

[ALOY-436] Alloy compile failures not aborting builds with new CLI (3.0+)

GitHub Issuen/a
TypeBug
PriorityHigh
StatusResolved
ResolutionFixed
Resolution Date2012-12-19T23:49:52.000+0000
Affected Version/sn/a
Fix Version/sAlloy 0.3.4, 2012 Sprint 26
ComponentsTitanium SDK
Labelsn/a
ReporterTony Lukasavage
AssigneeUnknown
Created2012-12-19T19:06:57.000+0000
Updated2018-03-07T22:25:57.000+0000

Description

In versions of Titanium prior to 3.0, using the old CLI, when an alloy compilation failed, the build was aborted, as is expected. The new CLI and its hook system, though, don't properly recognize the failure of alloy compilations. This is due mainly to the fact that the new CLI hook requires the direct execution of a script within alloy for compilation, rather than just calling the alloy command. The new CLI hook needs to add explicit *process.exit(1)* calls at points where it would abort with error in order for the CLI to know to stop the build process.

Comments

  1. Tony Lukasavage 2012-12-19

    Took a little longer than expected to fix and test as I also made sure that the hooks in a project would be updated on every compile, when necessary. This will ensure that the fix makes it into every project.

JSON Source