CCS6 postbuild 设置

Is there some way of creating a project in Eclipse, without any source files, that when built runs a single BAT file (either directly or via a Makefile, either would be all right)?

The goal is to split an existing project with a post-build step (a BAT-file that performs deployment) into two projects, one for building and one for running the deployment BAT-file.

share improve this question
 

2 Answers

up vote 1 down vote accepted

Take a look at creating an External Tool Launch Configuration via Run->External Tools One type is Program, you can use that to run bat files.

share improve this answer
 

I know that this is an old question maybe the answer was irrelevant back then. Currently in Eclipse if you right click to your projects and go to:

Properties->C/C++ Build->Settings

The second tab is Build Steps. You can add both pre and post build steps.

I have found that sometimes the eclipse internal shell is a bit awful. So if you want to run it in Windows shell you can prepend cmd /c and add caret (^) as an escape character e.g. for a_file_with_(escaped)_chars.bat

cmd /c "a_file_with_^(escaped^)_chars.bat"




扫描二维码关注公众号,回复: 1617825 查看本文章


猜你喜欢

转载自blog.csdn.net/fz835304205/article/details/72764153
CCS