Skip to content

Commit

Permalink
ant scripts
Browse files Browse the repository at this point in the history
git-svn-id: http://subversion.assembla.com/svn/coldbox-codedepot/samples/trunk@2047 aa9c7f36-201a-0410-b936-d08bb24d9cb0
  • Loading branch information
lmajano committed Feb 20, 2009
1 parent 6e59072 commit 20922da
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions ant/deploy.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0"?>
<!-- ======================================================================
Mar 15, 2007 4:11:44 PM
Luis Majano
samples.build
This covers zipping the samples, uploading to the downloads
section of the codlboxframework.com site.
====================================================================== -->
<project name="coldbox.samples.archive_and_deploy" default="ftp.deploy" basedir="../../">
<description>
This covers zipping the samples, uploading to the downloads
section of the codlboxframework.com site.
</description>

<property name="ftp.server" value="ftp.coldboxframework.com" />
<property name="ftp.remotedir" value="/httpdocs/downloads" />
<property name="src" value="samples" />
<property name="destination" value="ant/samples/temp/samples/" />
<property name="zipsrc" value="ant/samples/temp" />
<property name="archive" value="ant/samples/samples.zip" />

<target name="help">
<echo>Base Dir: ${basedir}</echo>
<echo>Src Dir: ${src}</echo>
<echo>Des Dir: ${destination}</echo>
</target>

<target name="do.archive">
<copy todir="${destination}">
<fileset dir="${src}" />
</copy>
<zip destfile="${archive}" basedir="${zipsrc}"></zip>
</target>

<target name="do.cleanup">
<delete dir="${zipsrc}" />
<delete file="${archive}" />
</target>

<target name="ftp.deploy" depends="do.archive" >
<input message="Please enter ftp server username:" addproperty="ftp.username" />
<input message="Please enter fpt server password:" addproperty="ftp.password" />
<ftp action="send" server="${ftp.server}" userid="${ftp.username}" password="${ftp.password}"
remotedir="${ftp.remotedir}" passive="yes" verbose="yes">
<fileset file="${archive}" />
</ftp>
<antcall target="do.cleanup"></antcall>
</target>

</project>

0 comments on commit 20922da

Please sign in to comment.