In my "ftpToDev" target I have a property that is the name of the war
file that I need to ftp. However, when I run the build file it doesn't
send the file, but if I hard code the file name it does. Any thoughts?
----------------
| BUILD FILE |
----------------
<?xml version="1.0" encoding = "UTF-8"?>
<project name="stjude" default="main" basedir=".">
<!-- Load properties files here -->
<property file="build_ftp_to_dev_cda.properties" />
<!-- Timestamp Format -->
<tstamp>
<format property="buildtimestamp" pattern="yyyyddMM" />
</tstamp>
<property name="build.compiler" value="modern"/>
<property name="war.file.name"
value="${war.file}_${buildtimestamp}.war"/>
<path id="project.class.path">
<fileset dir="./WEB-INF/lib/">
<include name="**/*.jar"/>
</fileset>
<pathelement path="${src.dir}" />
</path>
<target name="main" depends="cleanWebApp, war, deploy, ftpToDev"/>
<target name="cleanWebApp">
<delete file="${deploy.dir}/${war.file.name}" />
<delete file="${deploy.dir}/*.txt" />
<delete dir="${deploy.dir}/${war.file}" includeEmptyDirs="true" />
</target>
<target name="war">
<war warfile="${war.file.name}" webxml="./WEB-INF/web.xml">
<fileset dir="./" includes="${include.files}"
excludes="${exclude.files}"/>
<lib dir="./WEB-INF/lib"/>
</war>
</target>
<target name="deploy">
<copy todir="${deploy.dir}">
<fileset dir="./" includes="${war.file.name}"/>
</copy>
</target>
<target name="ftpToDev" depends="deploy">
<ftp server="${ftpSrvr}" remotedir="${remoteDir}"
userid="${username}" password="${password}"
binary="${binary}" verbose="${verbose}">
<fileset dir="${basedir}" includes="${war.file.name}" />
</ftp>
</target>
</project>
------------------------------
| BUILD PROPERTIES FILE |
------------------------------
ftpSrvr=host.name
remoteDir=/path/to/dir/
username=username
password=password
depends=true
binary=true
verbose=true
debug=true
deploy.dir=C:\\Documents and Settings\\cwiles\\Desktop\\V7\\
war.file=C:\\Documents and Settings\\cwiles\\Desktop\\V7\\deployment
ftpAction=put
----------------------------------------------------
Cory Wiles
Internet Designer / Developer
Internet Development Department
St. Jude Children's Research Hospital
www.stjude.org
[EMAIL PROTECTED]
Office:(901) 495-2982
Fax:(901) 495-3103
----------------------------------------------------