Skip to content

Instantly share code, notes, and snippets.

@tpryan
Created May 23, 2012 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tpryan/2776139 to your computer and use it in GitHub Desktop.
Save tpryan/2776139 to your computer and use it in GitHub Desktop.
Ant notification with Say
<target name="notifyWebDev" description="Plays an audio file">
<echo message="Playing Audio Alert"/>
<exec executable='say' failonerror='true'>
<arg value='Development website is ready'/>
</exec>
</target>
<target name="uploadFilesToDev">
<echo message="Pushing Text to Dev"/>
<ftp server="${server}" userid="${username}" password="${password}"
remotedir="/" depends="yes"
action="send" >
<fileset dir="${build.dir}">
<include name="**/*.css"/>
<include name="**/*.html"/>
<include name="**/*.js"/>
<include name="**/*.svg"/>
</fileset>
</ftp>
</target>
<target name="deployToWeb" depends="build,uploadFilesToDev,notifyWebDev" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment