 }
 
 #
+# extension to gulp to get the current task name
+gulp.Gulp.prototype.__runTask = gulp.Gulp.prototype._runTask
+gulp.Gulp.prototype._runTask = (task) ->
+    this.currentTask = task
+    this.__runTask(task)
+#
 # create tasks for different platforms and architectures supported
 platformOpts.map (plat) ->
+    # create a task per platform
     gulp.task "deploy:#{plat}", ->
         args = this.currentTask.name.replace('deploy:', '')
         deferred = Q.defer()

    opts.platform = platform
    opts.arch = arch
    #
    packager opts, (err, appPaths) ->
        if err?
            console.log ('Error: ' + err) if err?

Q          = require 'q'
tap        = require 'gulp-tap'
Stream     = require 'stream'

outapp = './app'
outui  = outapp + '/ui'
