Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Section D.1. Making a code contribution

D.1. Making a code contribution

If you’ve got code to contribute, that’s fantastic! A lot of what’s in Liferay came from contributions like this. There’s a procedure to follow that makes sense when you think about it:

1.
Make sure the feature doesn’t already exist. It almost sounds humorous to say that, but I figured I’d mention it anyway. You might post a message about the feature on Liferay’s message boards to see if there’s wider interest in it, too.

2.
Optional: if you’re implementing the feature for your organization, you should implement it in Ext first, so that you and your organization can take advantage of the feature right away.

3.
Grab Liferay’s source as a download or clone it from Liferay’s Github repository (https://github.com/liferay/liferay-portal), and make your changes in the source. Your source should follow Liferay’s code-development guidelines, which I’ve modeled for you in the source for this book.[1]

[1] The complete list of guidelines is here: http://mng.bz/MWcO

4.
Create a patch for your features. Your patch should include only differences and should not include any differences generated from Service Builder, because the services will be regenerated anyway by Liferay’s engineering team.

5.
Go to Liferay’s issue management system at http://issues.liferay.com, and add a New Feature issue describing the feature in detail. Attach to this issue the patch you created in the previous step, and name the patch according to the issue number you receive from the system and the SVN revision number against which you wrote the code. Example: LPS-12345-build-54321.patch.

6.
Click Contribute Solution on your issue. If you’ve reported the issue, you can also click Accept Contribution to change the state to Community Resolved. If somebody else added the ticket, that person will have to accept the contribution.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint