5. Source Code Management
• Tools of the trade
o
Code repositories
• 2 leading tools
o
o
CVS and SubVersion
SubVersion (SVN)
SVN Preferences in ZSE
SVN Comment Template (quick example)
8. Source Code Management
• SVN Persepective
o Making a Repository Connection
o Importing a Project to your local environment
• Basic SVN Functions
o Team->Update
o Team->Add to Version Control
o Team->Commit
o Team->Lock
o Team->Unlock
11. Re-Organizing ZSE
Customizing views into a better Team / SVN Perspective
Use the following views:
• Console View
o see details on commits, updates, etc
• History View
o access prior versions
o compare changes
• Synchronize View (Team Sync Perspective)
o project review on changes between repo and local
o perform updates as needed.
• Task View
o Manage your tasks within team context
o Export tasks as XML to share with team (there is a better way)
12. Re-Organizing ZSE
Save Views into custom perspective.
PHP PBM is what I call mine.
Arrange views to your advantage
Get ideas - Mix and Match views from other perspectives
13. Other Team Concepts
Additional Views that can help:
Remote Connections View
FTP / SFTP - sharing a project on a remote server
Draw back is there is no SVN code history
Refactoring tool - should code conventions change
Code Gallery - Sharing code / modules with team / Zend
PHPDoc standardizations
• Helps team code with common notations
• ZSE can use it to create code Documentation in HTML or PDF
14. Thank you for your
Time and Attention!
For more information visit http://osscube.com
Or drop-in an email to sales@osscube.com
Hinweis der Redaktion
Welcome attendees
House Keeping topics:
recorded for later viewing ?
Questions at the end
Turn of IM's so you are not distracted.
Mention I have written Zend White paper on this:
http://static.zend.com/topics/Team-Development-With-Zend-Studio-for-Eclipse.pdf
Zend Studio for Eclipse Developer's guide
http://www.informit.com/store/product.aspx?isbn=0672329409
Introduction to topic
Share desktop and show view of ZSE, point out what a view is …
what a project looks like, and what a perspective is.
Show listing of all the views
Switch between a few perspectives, show perspectives bar
Adjust a few views and make your own perspective, save it and switch away and then back to it
Open window->preferences-> team development -> SVN
talk to this slide about preferences in general,
point out a few SVN features
share desktop and show preferences to set up a comment template
Screen shots following in next few slides
Under team menu when right clicking on IDE when in a coding view (project explorer or code editor)
There is also an SVN menu that appears on the main menu interface.
And you can create your own custom tool bar with common menu items on it… but wont go into that today.
Mention Task List View (MyLyn interface view with Bugzilla) a common location for team task management.
export tasks - right mouse on project entry in PHP Explorer and select Export. Show other items that can be shared as well.
Rudimentary method of team development sharing
Show refactoring at work in the sample project code.
Code Gallery view – User Code Gallery and Zend’s Gallery
Rate code gallery entries in Zend’s Gallery – right-click on code entry name and select Rate… 1 (low) to 5 (high)
Suggest your own entries to Zend’s Gallery
Add a Project to SVN and share your great functions with your team that way.
PHPDoc notations can help with common code notations
/**
* creates an opening table tag
* @author
* @param sets the method attribute for the table tag: $method (string)
* @param sets the action attribute for the table tag: $action (string)
* @param sets the name attribute for the table tag: $name (string)
* @param sets the id attribute for the table tag: $id (string)
* @param sets the style attribute for the table tag: $style (string)
* @param sets the class attribute for the table tag: $class (string)
* @return a complete opening table tag
*/