You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2016/12/24 08:22:24 UTC

[1/2] camel git commit: CAMEL-10528: contribution document

Repository: camel
Updated Branches:
  refs/heads/master e5b2d7658 -> dad22da07


CAMEL-10528: contribution document


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/9112a94c
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/9112a94c
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/9112a94c

Branch: refs/heads/master
Commit: 9112a94c848088e9755c1460270b03aeef36a196
Parents: e5b2d76
Author: onders86 <on...@gmail.com>
Authored: Sun Nov 27 14:20:27 2016 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Sat Dec 24 09:17:22 2016 +0100

----------------------------------------------------------------------
 CONTRIBUTING.md | 133 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 133 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/9112a94c/CONTRIBUTING.md
----------------------------------------------------------------------
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..18ad579
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,133 @@
+## Contributing to Camel
+
+There are many ways you can help make Camel a better piece of software - please dive in and help!
+- Try surf the documentation - if somethings confusing or not clear, let us know. 
+- Download the code & try it out and see what you think. 
+- Browse the source code. Got an itch to scratch, want to tune some operation or add some feature?
+- Want to do some hacking on Camel? Try surfing the our [issue tracker](http://issues.apache.org/activemq/browse/CAMEL) for open issues or features that need to be implemented, take ownership of an issue and try fix it.
+- If you are a new Camel rider and would like to help us, you can also find [some easy to resolve issues.](https://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=hide&requestId=12316782) 
+- Leave a comment on the issue to let us know you are working on it and add yourself as a watcher to get informed about all modifications.
+
+## Table of Contents
+
+- [Getting in touch](#getting-in-touch)
+
+- [Improving the documentation](#improving-the-documentation)
+
+- [If you find a bug or problem](#if-you-find-a-bug-or-problem)
+- [Working on the code](#working-on-the-code)
+- [Running checkstyle](#running-checkstyle)
+- [Apache Camel committers should work on the ASF git repo](#apache-camel-committers-should-work-on-the\u2014asf-git-repo)
+- [Creating patches](#creating-patches)
+- [Pull request at Github](#pull-request-at-github)
+- [Manual patch files](#manual-patch-files)
+- [Submitting patches](#submitting-patches)
+- [Using the issue tracker](#using-the-issue-tracker)
+- [Becoming a committer](#becoming-a-committer)
+- [More resources](#more-resources)
+
+## Getting in touch
+There are various ways of communicating with the Camel community.
+- Join us on the [Discussion Forums](http://camel.apache.org/discussion-forums.html) and take part in any conversations
+- Pop by on [IRC](http://camel.apache.org/irc-room.html) and say hi
+- Add some comments to the [wiki](http://camel.apache.org/navigation.html)
+
+## Improving the documentation
+Documentation is massively important to help users make the most of Apache Camel and its probably the area that needs the most help!
+So if you are interested in helping the documentation effort; whether its just to fix a page here or there, correct a link or even write a tutorial or improve what documentation is already there please do dive in and help!
+Most of the documentation is stored on the wiki. We are currently moving the documentation into the code (AsciiDoc). From there it is automatically converted to the wiki. So before editing the wiki check the code because otherwise your changes may be lost. This transition is work-in-progress.
+
+See [How does the website work](http://camel.apache.org/how-does-the-website-work.html) or [How do I edit the website for more details](http://camel.apache.org/how-do-i-edit-the-website.html).
+To be able to edit the wiki you need
+- an appropriate licence agreement on file with the ASF
+- an account on the wiki (on the bottom of each page there is an edit button, that allows you to create an account)
+- karma - mail the dev list asking for permission (to prevent spam we only offer access to the wiki by folks sending mail to the mailing list).
+
+## If you find a bug or problem
+Please raise a new issue in our [issue tracker](http://issues.apache.org/activemq/browse/CAMEL)
+If you can create a JUnit test case then your issue is more likely to be resolved quicker.
+e.g. take a look at some of the existing [unit tests cases](https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/)
+Then we can add your issue to Subversion and then we'll know when its really fixed and we can ensure that the problem stays fixed in future releases.
+
+## Working on the code
+We recommend to work on the code from [github](https://github.com/apache/camel/).
+
+        git clone https://github.com/apache/camel.git
+        cd camel
+
+Build the project (without testing).
+
+        mvn clean install -Dtest=false
+
+If you intend to work on the code and provide patches and other work you want to submit to the Apache Camel project, then you can fork the project on github and work on your own fork. The custom work you do should be done on branches you create, which can then be committed and pushed upstream, and then submitted to Apache Camel as PRs (pull requests). You can find many resources online how to work on github projects and how to submit work to these projects.
+
+## Running checkstyle
+Apache Camel source code is using a coding style/format which can be checked whether is complying using the checkstyle plugin.
+To enable source style checking with checkstyle, build Camel with the -Psourcecheck parameter
+
+	mvn clean install -Psourcecheck
+
+Please remember to run this check on your code changes before submitting a patch or github PR. You do not need to run this against the entire project, but for example in the modules you work on. Lets say you do some code changes in the camel-ftp component, then you can run the check from within this directory:
+
+	cd camel-ftp
+	mvn clean install -Psourcecheck
+
+## Apache Camel committers should work on the ASF git repo
+If you are an Apache Camel committer then clone the ASF git repo at
+
+	git clone https://git-wip-us.apache.org/repos/asf/camel.git
+	cd camel
+
+Build the project (without testing).
+	
+	mvn clean install -Dtest=false
+
+PS: You might need to build multiple times (if you get a build error) because sometimes maven fails to download all the files.
+Then import the projects into your workspace.
+
+## Creating patches
+We recommend you create patches as github PRs which is much easier for us to accept and work with. You do this as any other github project, where you can fork the project, and create a branch where you work on the code, and then commit and push that code to your fork. Then navigate to the Apache Camel github webpage, and you will see that github in the top of the page has a wizard to send your recent work as a PR (pull request).
+
+## Pull request at Github
+There is also a Git repository at Github which you could fork. Then you submit patches as any other github project - eg work on a new feature branch and send a pull request. One of the committers then needs to accept your pull request to bring the code  to the ASF codebase. After the code has been included into the ASF codebase, you need to close the pull request because we can't do that...
+	
+	When providing code patches then please include the Camel JIRA ticket number in the commit messages. 
+We favor using the syntax:
+	CAMEL-9999: Some message goes here
+
+## Manual patch files
+We gladly accept patches if you can find ways to improve, tune or fix Camel in some way.
+
+We recommend using github PRs instead of manual patch files. Especially for bigger patches.
+
+Most IDEs can create nice patches now very easily. e.g. in Eclipse just right click on a file/directory and select Team -> Create Patch. Then just save the patch as a file and then submit it. (You may have to click on Team -> Share... first to enable the Subversion options).
+If you're a command line person try the following to create the patch
+	
+	diff -u Main.java.orig Main.java >> patchfile.txt
+
+or
+
+	git diff --no-prefix > patchfile.txt
+
+## Submitting patches
+
+The easiest way to submit a patch is to
+- [create a new JIRA issue](https://issues.apache.org/jira/browse/CAMEL) (you will need to register),
+- attach the patch or tarball as an attachment (if you create a patch file, but we recommend using github PRs)
+- **tick the Patch Attached** button on the issue
+We prefer patches has unit tests as well and that these unit tests have proper assertions as well, so remember to replace your system.out or logging with an assertion instead!
+
+## Using the issue tracker
+Before you can raise an issue in the [issue tracker](http://issues.apache.org/activemq/browse/CAMEL) you need to register with it. This is quick & painless.
+If you want to have a go at fixing an issue you need to be in the list of camel-developers on the issue tracker. To join the group, please mail the `dev@camel.apache.org` mail list with the email address you used to register with the issue tracker and we'll add you to the group.
+
+## Becoming a committer
+Once you've got involved as above, we may well invite you to be a committer. See [How do I become a committer](http://camel.apache.org/how-do-i-become-a-committer.html) for more details.
+
+The first step is contributing to the project; if you want to take that a step forward and become a fellow committer on the project then see the [Committer Guide](http://activemq.apache.org/becoming-a-committer.html)
+
+## More resources
+Git is not a brand new technology and therefore Camel is not the only ASF project thinking about using it. So here are some more resources you mind find useful:
+- [http://wiki.apache.org/general/GitAtApache](http://wiki.apache.org/general/GitAtApache): Some basic notes about git@asf
+- [http://git.apache.org/](http://git.apache.org/): List of mgit-mirrors at ASF
+- [https://git-wip-us.apache.org/](https://git-wip-us.apache.org/): More Git infos from Apache
\ No newline at end of file


[2/2] camel git commit: CAMEL-10528: Polished. This closes #1366. This closes #1362.

Posted by da...@apache.org.
CAMEL-10528: Polished. This closes #1366. This closes #1362.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/dad22da0
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/dad22da0
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/dad22da0

Branch: refs/heads/master
Commit: dad22da07f5519e7b988c95c2045ec13a7ef6c4c
Parents: 9112a94
Author: Claus Ibsen <da...@apache.org>
Authored: Sat Dec 24 09:22:15 2016 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Sat Dec 24 09:22:15 2016 +0100

----------------------------------------------------------------------
 CONTRIBUTING.md | 61 ++++++++++++++++++++++++++++++++++++----------------
 1 file changed, 42 insertions(+), 19 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/dad22da0/CONTRIBUTING.md
----------------------------------------------------------------------
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 18ad579..f33b288 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -8,12 +8,11 @@ There are many ways you can help make Camel a better piece of software - please
 - If you are a new Camel rider and would like to help us, you can also find [some easy to resolve issues.](https://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=hide&requestId=12316782) 
 - Leave a comment on the issue to let us know you are working on it and add yourself as a watcher to get informed about all modifications.
 
+
 ## Table of Contents
 
 - [Getting in touch](#getting-in-touch)
-
 - [Improving the documentation](#improving-the-documentation)
-
 - [If you find a bug or problem](#if-you-find-a-bug-or-problem)
 - [Working on the code](#working-on-the-code)
 - [Running checkstyle](#running-checkstyle)
@@ -26,13 +25,17 @@ There are many ways you can help make Camel a better piece of software - please
 - [Becoming a committer](#becoming-a-committer)
 - [More resources](#more-resources)
 
+
 ## Getting in touch
+
 There are various ways of communicating with the Camel community.
 - Join us on the [Discussion Forums](http://camel.apache.org/discussion-forums.html) and take part in any conversations
 - Pop by on [IRC](http://camel.apache.org/irc-room.html) and say hi
 - Add some comments to the [wiki](http://camel.apache.org/navigation.html)
 
+
 ## Improving the documentation
+
 Documentation is massively important to help users make the most of Apache Camel and its probably the area that needs the most help!
 So if you are interested in helping the documentation effort; whether its just to fix a page here or there, correct a link or even write a tutorial or improve what documentation is already there please do dive in and help!
 Most of the documentation is stored on the wiki. We are currently moving the documentation into the code (AsciiDoc). From there it is automatically converted to the wiki. So before editing the wiki check the code because otherwise your changes may be lost. This transition is work-in-progress.
@@ -43,57 +46,70 @@ To be able to edit the wiki you need
 - an account on the wiki (on the bottom of each page there is an edit button, that allows you to create an account)
 - karma - mail the dev list asking for permission (to prevent spam we only offer access to the wiki by folks sending mail to the mailing list).
 
+
 ## If you find a bug or problem
+
 Please raise a new issue in our [issue tracker](http://issues.apache.org/activemq/browse/CAMEL)
 If you can create a JUnit test case then your issue is more likely to be resolved quicker.
 e.g. take a look at some of the existing [unit tests cases](https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/)
 Then we can add your issue to Subversion and then we'll know when its really fixed and we can ensure that the problem stays fixed in future releases.
 
+
 ## Working on the code
+
 We recommend to work on the code from [github](https://github.com/apache/camel/).
 
-        git clone https://github.com/apache/camel.git
-        cd camel
+    git clone https://github.com/apache/camel.git
+    cd camel
 
-Build the project (without testing).
+Build the project (fast build).
 
-        mvn clean install -Dtest=false
+    mvn clean install -Pfastinstall
 
 If you intend to work on the code and provide patches and other work you want to submit to the Apache Camel project, then you can fork the project on github and work on your own fork. The custom work you do should be done on branches you create, which can then be committed and pushed upstream, and then submitted to Apache Camel as PRs (pull requests). You can find many resources online how to work on github projects and how to submit work to these projects.
 
+
 ## Running checkstyle
+
 Apache Camel source code is using a coding style/format which can be checked whether is complying using the checkstyle plugin.
 To enable source style checking with checkstyle, build Camel with the -Psourcecheck parameter
 
-	mvn clean install -Psourcecheck
+    mvn clean install -Psourcecheck
 
 Please remember to run this check on your code changes before submitting a patch or github PR. You do not need to run this against the entire project, but for example in the modules you work on. Lets say you do some code changes in the camel-ftp component, then you can run the check from within this directory:
 
-	cd camel-ftp
-	mvn clean install -Psourcecheck
+    cd camel-ftp
+    mvn clean install -Psourcecheck
+
 
 ## Apache Camel committers should work on the ASF git repo
+
 If you are an Apache Camel committer then clone the ASF git repo at
 
-	git clone https://git-wip-us.apache.org/repos/asf/camel.git
-	cd camel
+    git clone https://git-wip-us.apache.org/repos/asf/camel.git
+    cd camel
 
 Build the project (without testing).
-	
-	mvn clean install -Dtest=false
+
+    mvn clean install -Dtest=false
 
 PS: You might need to build multiple times (if you get a build error) because sometimes maven fails to download all the files.
 Then import the projects into your workspace.
 
+
 ## Creating patches
+
 We recommend you create patches as github PRs which is much easier for us to accept and work with. You do this as any other github project, where you can fork the project, and create a branch where you work on the code, and then commit and push that code to your fork. Then navigate to the Apache Camel github webpage, and you will see that github in the top of the page has a wizard to send your recent work as a PR (pull request).
 
+
 ## Pull request at Github
+
 There is also a Git repository at Github which you could fork. Then you submit patches as any other github project - eg work on a new feature branch and send a pull request. One of the committers then needs to accept your pull request to bring the code  to the ASF codebase. After the code has been included into the ASF codebase, you need to close the pull request because we can't do that...
 	
-	When providing code patches then please include the Camel JIRA ticket number in the commit messages. 
+When providing code patches then please include the Camel JIRA ticket number in the commit messages. 
 We favor using the syntax:
-	CAMEL-9999: Some message goes here
+
+    CAMEL-9999: Some message goes here
 
 ## Manual patch files
 We gladly accept patches if you can find ways to improve, tune or fix Camel in some way.
@@ -102,12 +118,13 @@ We recommend using github PRs instead of manual patch files. Especially for bigg
 
 Most IDEs can create nice patches now very easily. e.g. in Eclipse just right click on a file/directory and select Team -> Create Patch. Then just save the patch as a file and then submit it. (You may have to click on Team -> Share... first to enable the Subversion options).
 If you're a command line person try the following to create the patch
-	
-	diff -u Main.java.orig Main.java >> patchfile.txt
+
+    diff -u Main.java.orig Main.java >> patchfile.txt
 
 or
 
-	git diff --no-prefix > patchfile.txt
+    git diff --no-prefix > patchfile.txt
+
 
 ## Submitting patches
 
@@ -117,17 +134,23 @@ The easiest way to submit a patch is to
 - **tick the Patch Attached** button on the issue
 We prefer patches has unit tests as well and that these unit tests have proper assertions as well, so remember to replace your system.out or logging with an assertion instead!
 
+
 ## Using the issue tracker
+
 Before you can raise an issue in the [issue tracker](http://issues.apache.org/activemq/browse/CAMEL) you need to register with it. This is quick & painless.
 If you want to have a go at fixing an issue you need to be in the list of camel-developers on the issue tracker. To join the group, please mail the `dev@camel.apache.org` mail list with the email address you used to register with the issue tracker and we'll add you to the group.
 
+
 ## Becoming a committer
+
 Once you've got involved as above, we may well invite you to be a committer. See [How do I become a committer](http://camel.apache.org/how-do-i-become-a-committer.html) for more details.
 
 The first step is contributing to the project; if you want to take that a step forward and become a fellow committer on the project then see the [Committer Guide](http://activemq.apache.org/becoming-a-committer.html)
 
+
 ## More resources
+
 Git is not a brand new technology and therefore Camel is not the only ASF project thinking about using it. So here are some more resources you mind find useful:
 - [http://wiki.apache.org/general/GitAtApache](http://wiki.apache.org/general/GitAtApache): Some basic notes about git@asf
 - [http://git.apache.org/](http://git.apache.org/): List of mgit-mirrors at ASF
-- [https://git-wip-us.apache.org/](https://git-wip-us.apache.org/): More Git infos from Apache
\ No newline at end of file
+- [https://git-wip-us.apache.org/](https://git-wip-us.apache.org/): More Git infos from Apache