Home arrow Web Authoring arrow Page 4 - Deploying your Site with phpEclipse
WEB AUTHORING

Deploying your Site with phpEclipse


Eclipse simplifies the process of deploying your site to a web server. You can even use Ant, traditionally thought of as a Java tool, to help you in the deployment. This article, the first of two parts, explains how. It is excerpted from PHPEclipse: A User Guide, written by Shu-Wai Chow (Packt Publishing, 2006; ISBN: 1904811442).

Author Info:
By: PACKT Publishing
Rating: 5 stars5 stars5 stars5 stars5 stars / 6
March 09, 2006
TABLE OF CONTENTS:
  1. · Deploying your Site with phpEclipse
  2. · FTP, SFTP, and WebDAV Export
  3. · Using Ant for Deployment
  4. · Setting up Ant for FTP

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
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:

  1. Download and unzip the latest binaries of commons-net.jar and commons-oro.jar
  2. Install the commons-net and commons-oro
  3.  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.


DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

blog comments powered by Disqus
WEB AUTHORING ARTICLES

- Top WordPress Plugins for Social Media
- How to Install WordPress on WAMPP
- More of the Best Wordpress Plugins for Comme...
- Top Wordpress Plugins to Fight Spam
- More of the top Drupal modules for SEO
- Top Drupal Modules for SEO
- More Top Wordpress Plugins for SEO
- Website Optimization Tips
- Backup and Restore a Drupal Website and Data...
- 5 Best Web Font Services
- Web Font Embedding Services
- Joomla Site Administration
- Create PHP Pages that Use WordPress Templates
- Top Joomla Extensions for Social Networking
- Drupal Modules for Site Navigation

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 10 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials