简体   繁体   English

NetBeans Post Build脚本

[英]NetBeans Post Build Script

I'm using NetBeans 6.8, and I want to run a script to construct an SQLite database with a predefined schema after each build. 我正在使用NetBeans 6.8,并且我希望在每次构建之后运行脚本来构建具有预定义模式的SQLite数据库。 I don't see any options under Build Configuration. 我没有在Build Configuration下看到任何选项。 Is this feature not yet supported? 此功能尚不支持吗?

Figured it out. 弄清楚了。 Just edited the build.xml file that associates itself with the project. 刚编辑了与项目关联的build.xml文件。 Details on how to do it are self-contained. 有关如何操作的详细信息是自包含的。

<target name="-post-compile">   
    <exec dir="." executable="cmd">
          <arg line="/c DatabaseInitializer.bat"/>
    </exec>
</target>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM