Deploying your Site with phpEclipse - Setting up Ant for FTP
(Page 4 of 4 )
Before we get started, we need to install some additional files for Ant. FTP ability is an optional Ant task that is not included with the default installation of Eclipse. We need to download these files and add them to our Ant classpaths in Eclipse.
The steps required are:
- Download and unzip the latest binaries of commons-net.jar and commons-oro.jar.
- Install the commons-net and commons-oro.
- Add these new files to the Ant classpath.
Downloading You can find the commons-net.jar and commons-oro.jar files at http://jakarta.apache.org/site/downloads/ downloads_commons-net.cgi and http://jakarta.apache.org/site/downloads/ downloads_oro.cgi respectively.
You will need at least version 1.4.0 for commons-net.jar and at least version 2.0.8 for commons-oro.jar. When you expand the downloaded files, the JARs should have the version numbers as part of the file names, like commons-net-1.4.0.jar. This is perfectly acceptable and there is no need to change the file names.
Installing Place these files in a clear location. It is recommended to create a new directory under the Eclipse installation folder called antjars. If you explore the Eclipse installation directory, you will find that the Ant plug-in is stored in its own folder under the plugins directory. This folder contains the original commons-net.jar and commons-oro.jar. These are the JARs that do not have our necessary FTP classes. You could replace these files, but it is generally not a good idea to fiddle with the default files. Therefore, we're going to place our replacement JARs outside the area having the default Eclipse-installed files. This way, Eclipse can still manage its own installed files, and if we upgrade, we don't lose any functionality because the user settings remember our classpath changes.