-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://subversion.assembla.com/svn/coldbox-codedepot/samples/trunk@2047 aa9c7f36-201a-0410-b936-d08bb24d9cb0
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |