Skip to content

Instantly share code, notes, and snippets.

@mimshwright
Created November 14, 2009 01:05
Show Gist options
  • Save mimshwright/234320 to your computer and use it in GitHub Desktop.
Save mimshwright/234320 to your computer and use it in GitHub Desktop.
check for build.properties
<!-- Check for the build.properties file and force the user to create one before compiling. -->
<available file="build.properties" filePath="." property="customBuildPropertiesExist" />
<fail unless="customBuildPropertiesExist" message="You must create a file called 'build.properties' with your local settings in order to use ant with this project." />
<property file="build.properties" />
<echo message="Successfully loaded properties." />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment