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 ###
- 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. 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 - 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 - 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
### Set up Name and Local Web Root Properties ###
I am sure there is a more elegant set of task/targets but it works so go ahead and use it.