In order to run a script before the build see the Build tab from the DVT Generic run configuration. For more details see Run Configurations.