|
Revision 1533, 1.8 kB
(checked in by lmajano, 5 years ago)
|
|
some well needed refactoring, easier to use as nightly build.
Sorry for the inconvenince. Just some repository layout updates. All for the better
|
-
Property svn:mime-type set to
text/plain
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | <?xml version="1.0"?> |
|---|
| 2 | <!-- ====================================================================== |
|---|
| 3 | Mar 18, 2007 1:30:20 AM |
|---|
| 4 | |
|---|
| 5 | coldbox.deploy |
|---|
| 6 | ColdBox Deployment |
|---|
| 7 | |
|---|
| 8 | lmajano |
|---|
| 9 | ====================================================================== --> |
|---|
| 10 | <project name="coldbox.api-upload" default="ftp.deploy" basedir="../../"> |
|---|
| 11 | |
|---|
| 12 | <!--Build Properties--> |
|---|
| 13 | <property name="build.dir" value="_tmpbuild" /> |
|---|
| 14 | <property name="src.dir" value="system" /> |
|---|
| 15 | <!-- FTP --> |
|---|
| 16 | <property name="ftp.server" value="ftp.coldboxframework.com" /> |
|---|
| 17 | <property name="ftp.remotedir" value="/httpdocs/builds/" /> |
|---|
| 18 | |
|---|
| 19 | <!-- Init --> |
|---|
| 20 | <target name="init" description="Init"> |
|---|
| 21 | <!-- Version --> |
|---|
| 22 | <input addproperty="coldbox.version" message="api upload version: (Ex: 2_6_0)" /> |
|---|
| 23 | <delete dir="${build.dir}" /> |
|---|
| 24 | <mkdir dir="${build.dir}" /> |
|---|
| 25 | </target> |
|---|
| 26 | |
|---|
| 27 | <!-- FTP Upload of new build --> |
|---|
| 28 | <target name="ftp.deploy" depends="build"> |
|---|
| 29 | <input message="Please enter ftp server username:" addproperty="ftp.username" /> |
|---|
| 30 | <input message="Please enter fpt server password:" addproperty="ftp.password" /> |
|---|
| 31 | |
|---|
| 32 | <ftp action="send" server="${ftp.server}" userid="${ftp.username}" password="${ftp.password}" |
|---|
| 33 | remotedir="${ftp.remotedir}" passive="false" verbose="yes" newer="true"> |
|---|
| 34 | <fileset dir="${build.dir}"> |
|---|
| 35 | </fileset> |
|---|
| 36 | </ftp> |
|---|
| 37 | <delete dir="${build.dir}" /> |
|---|
| 38 | </target> |
|---|
| 39 | |
|---|
| 40 | <!--BUild--> |
|---|
| 41 | <target name="build" description="Build a new coldbox distribution" depends="init"> |
|---|
| 42 | <!-- Copy src --> |
|---|
| 43 | <copy todir="${build.dir}/coldbox_${coldbox.version}/coldbox/system"> |
|---|
| 44 | <fileset dir="${src.dir}"> |
|---|
| 45 | <include name="**/*.cfc" /> |
|---|
| 46 | </fileset> |
|---|
| 47 | </copy> |
|---|
| 48 | </target> |
|---|
| 49 | |
|---|
| 50 | </project> |
|---|