Web Authoring
  Home arrow Web Authoring arrow Page 2 - Deploying your Site with PHPEclipse, conti...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WEB AUTHORING

Deploying your Site with PHPEclipse, continued
By: PACKT Publishing
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2006-03-16

    Table of Contents:
  • Deploying your Site with PHPEclipse, continued
  • Running an Ant Script
  • Ant Tools
  • What This Book Covers

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Deploying your Site with PHPEclipse, continued - Running an Ant Script


    (Page 2 of 4 )

     

    To run an Ant Script, select the build.xml file in the Navigator view. Select the Run | External Tools | Run As | Ant Build menu option. Eclipse will automatically trigger the build file. The results of our execution will be output in the Console view.

      Buildfile: /Library/WebServer/Documents/ ShelterSite/build.xml
      startPublish:
      getFilesFromCVS: 
           [cvs] cvs checkout: Updating ShelterSite
            [cvs] U ShelterSite/.project
            [cvs] U ShelterSite/CatAction.php 
            [cvs] U ShelterSite/ViewCats.php
            [cvs] cvs checkout: Updating ShelterSite/classes
            [cvs] U ShelterSite/classes/clsCat.php
            [cvs] U ShelterSite/classes/clsCatView.php
            [cvs] U ShelterSite/classes/clsDatabase.php
            [cvs] U ShelterSite/classes/clsPet.php
            [cvs] cvs checkout: Updating ShelterSite/styles
            [cvs] U ShelterSite/styles/shelter.css
      startFTP:
            [ftp] sending files
            [ftp] 7 files sent
      cleanUp:
       
    [delete] Deleting directory /tmp/ShelterSite
      BUILD SUCCESSFUL
      Total time: 8 seconds

    If there are any errors during the execution, they will also output here to help you troubleshoot.

    Avoid Putting FTP Passwords in Build Files

    You may want to avoid putting passwords in build files, since they are simple text files. To do this, reference them with a dollar sign and bracket: ${ftpPassword}. When you execute the file, pass in an argument. To pass Ant arguments in Eclipse, go to the Run | External Tools | External Tools… menu option. Ant files have configuration profiles much like debugging configurations. This window will pull up the configuration for a particular Ant file. Highlight the build file you wish to work with and in the Main tab's Arguments area, type in –DftpPassword="YourSecretPassword" where ftpPassword is the name of the variable you specified in the build file and the enclosing quotes hold your password. Note the dash at the beginning of the argument and that there is no space after the D flag and the variable name.

    More Web Authoring Articles
    More By PACKT Publishing


       · This article is an excerpt from the book "PHPEclipse: a User Guide," published by...
     

    Buy this book now. This article is excerpted from PHPEclipse: A User Guide, written by Shu-Wai Chow (Packt Publishing, 2006; ISBN: 1904811442). Check it out today at your favorite bookstore. Buy this book now.

    WEB AUTHORING ARTICLES

    - Yahoo Pipes: Worth a Look
    - Completing an EAR
    - Building and Deploying an EAR
    - New Nuke Security Sentinel: Worth Taking a C...
    - Administering Your CMS-Based Web Site
    - What You Need to Know Before Using a CMS
    - Introducing the Google Maps API
    - An Overview of the Yahoo User Interface Libr...
    - Basic configuration of osCommerce, concluded
    - Basic configuration of osCommerce, continued
    - Basic configuration of osCommerce
    - Deploying your Site with PHPEclipse, continu...
    - Deploying your Site with phpEclipse
    - Macromedia Captivate Review
    - Macromedia and Adobe Planning to Tie the Knot







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek