Print this page
Tuesday, 15 January 2013 17:14

Netbeans Build File for Managing Joomla! Component Development

Written by
Rate this item
(0 votes)

I am share with the Joomla! community in general because its definitely helped me to be more productive. Now, I am no Apache ANT guru that's for sure, but I have been able to piece together some build functionality for my components have made my life easier and my component packages have less mistakes (missing files, etc).

Get it @ Github .

WHAT IT DOES

  • Zips your component into a nbproject/package/${name}.zip file
  • SFTPs your components files into the proper directories as long as remote.directory is set properly (You do that in your project configuration when you specify Remote)
  • Copies the files to your local Joomla! installation for testing.

SHORT PROCESS (FYI)

  • loads the nbproject/project.properties file
  • loads the private/private.properties file
  • loads the FTP connections file that you specify in the private.properies file
  • ** NOTE: You can specify your ${ftp.connections} file directly here.

INSTRUCTIONS

### Set up SCP/SFTP ###

  1. In Netbeans 7.2.1 the RemoteConnections directory is at:
    ${netbeans.user}\\config\\Preferences\\org\\netbeans\\modules\\php\\project\\RemoteConnections
    So you would place the following line into your nbproject/private/private.properties file ():
    ftp.connections=${netbeans.user}\\config\\Preferences\\org\\netbeans\\modules\\php\\project\\RemoteConnections
  2. 2. In that directory find the file/connection you are using for your project and put your password on a new line as follows:
    password=XXX123YYY ; where XXX123YYY is your password
  3. ### Set up Name and Local Web Root Properties ###

  4. Open your nbproject/project.properties file and add the name of your components entry point, i.e. if you component is called 'com_dog' use 'dog' as follows:
    name=dog
  5. In the same file enter the web.root of your local testing installation, i.e.:
    C:\\xampp\\htdocs\\joomla_root\\ ; or what ever it is on linux or Mac OS is thats your flavor

I am sure there is a more elegant set of task/targets but it works so go ahead and use it.

Read 10664 times Last modified on Tuesday, 15 January 2013 17:42
Cameron

Cameron is a PHP Application Developer and consultant and spends much of his time furthering the business goals of his company Magnetic Merchandising Inc. which he started in 2005.

Cameron has provided technical deployment and consultation for many entities since starting MMI. Much of that work has been in complex hosted auction platforms, professional Joomla! deployments and extension development and sales.

As such, Cameron has acquired a deep technical skill-set, a sensitivity to client needs, and the ability to produce anything those clients can visualize.

Everyday, he actively seeks out and becomes familiar technologies that will give MMI clients maximum return for their web development and general e-presence dollar.

magneticmerchandising.com

Latest from Cameron

Related items