<project name="alogix" default="ftp.about" basedir=".">
 
  <!-- set global properties for this build -->
		<!-- hd path to application -->
	  	<property name="application.dir" value="D:\inetpub\alogix\" />
		<!-- ftp server to move files to -->
	  	<property name="ftp.server" value="www.alogix.net" />
		<!-- directory in server to move files to (root relative) -->
			<property name="ftp.remotedir" value="/" />
	
	<!-- filesets -->
		<fileset id="fileset.exclude" dir=".">
			<exclude name="*build.xml" />
			<!-- use this if you need to exclude a folder (uncomment line and change folderName) -->
				<!-- <exclude name="**/[folderName]/**" /> -->
			<!-- use this if you need to exclude a file (uncomment line and change filename & extension -->
				<!-- <exclude name="*[filename].[extension]" /> -->
		</fileset>	
		
  <!-- targets -->
		<target name="ftp.about">
			<echo message="Using FTP in ANT example." />
			<echo message="By: Phill Nacelli" />
			<echo message="www.phillnacelli.net" />
		</target>
	
		<target name="ftp.help">
			<echo message="usage:  ftp.deploy" />
		</target>	
	
		<target name="ftp.deploy">
			<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}">
   			<fileset refid="fileset.exclude" />
			</ftp>
		</target>

</project>

