Custom build rules for Eclipse

后端 未结 1 1169
旧巷少年郎
旧巷少年郎 2021-01-21 03:11

I have a Java project that uses some autogenerated source code. This source code is produced by a command-line tool --- Bison, actually --- from a special source file.

I

相关标签:
1条回答
  • 2021-01-21 03:47

    Right-click the Project, select Properties > Builders > New ... > Program.

    There you can select a command line tool that will be run whenever the project is built.


    For completeness: this is an Eclipse-only solution. I would recommend you to use a build system instead of plain Eclipse. Both Maven and Ant integrate nicely with Eclipse (Maven through m2eclipse, Ant through the same Builder mechanism as above), possibly others as well.

    With Maven, you would use exec:exec (usage).

    With Ant you would use the <Exec> task.

    0 讨论(0)
提交回复
热议问题