Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

execute batch file from hook

$
0
0

Hi

I have created test.js file under /myProject/plugins/ti.alloy/hooks location.

in test.js

exports.cliVersion = '>=3.X';
 
exports.init = function(logger, config, cli, appc) {
    cli.addHook('build.post.compile', function(build, finished) {
        logger.info('Info : build.post.compile');
        finished();
    });
};
tiapp.xml
<plugins>
        <plugin version="1.0">ti.alloy</plugin>
    </plugins>
I have added hook for POST build and I have printed "Info : build.post.complie" on that and it is working fine.

Now here is my problem how can I execute mybatch.bat file which is @ /myProject/mybatch.bat at post build event.

How can I execute mybatch.bat file from POST build event?

I am using alloy framework. Thanks in advance


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>