Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. I don't see any options under Build Configuration. Is this feature not yet supported?

like image 997
Mike Avatar asked Jul 25 '10 18:07

Mike


1 Answers

Figured it out. Just edited the build.xml file that associates itself with the project. Details on how to do it are self-contained.

<target name="-post-compile">   
    <exec dir="." executable="cmd">
          <arg line="/c DatabaseInitializer.bat"/>
    </exec>
</target>
like image 129
Mike Avatar answered Oct 04 '22 00:10

Mike