<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to you under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd">
<document>
 <header>
  <title>Apache Derby: Get Involved!</title>
 </header>

<body>


<p>
Welcome to the Derby community! 
We invite you to participate as a user or as a contributor -- or both!
</p>

<section>
   <title>Provide Feedback</title>

<p>
The Derby technology will grow and thrive from those who use it,
so send the community your feedback:
</p>

<ul>
  <li>
   Subscribe to the <a href="derby_mail.html">Derby mail lists</a>.
  </li>
  <li>
   Add your wisdom to the <a href="https://cwiki.apache.org/confluence/display/DERBY/FrontPage">Derby Wiki</a>.
  </li>

  <li>
    Derby uses <a href="DerbyBugGuidelines.html">Apache's Jira
    issue tracker</a>
    to log bugs and enhancement requests.
    Anyone can browse the Jira database.
    To log new issues,
    see the <a href="DerbyBugGuidelines.html">tips</a> page,
    which describes how to create a userid for yourself and how
    to log useful bugs.
    To update existing issues, email your Jira userid to 
    <a href="derby_mail.html">derby-dev@db.apache.org</a> and
     request that it be added to the derby-developers Jira list.
  </li>
  <li>
    Pre-built jar files are available on the
    <a href="derby_downloads.html#jars">Derby Downloads</a> page.
  </li>

</ul>

</section>

<section>
<title>Use the Derby Communication Channels</title>

<p>
The primary mechanism for Derby communication is 
the <a href="derby_mail.html">Derby mail lists</a>.
Anyone can participate, no matter what their time zone. The ASF
maintains a reliable searchable archive of past discussions. Oversight
is enabled. Many eyes ensures that the project evolves in a consistent
direction.
The main channel for development is the "derby-dev" mailing list, and the
main channel for user support is the "derby-user" mailing list. 
As is usual with mailing lists, be prepared to wait for an answer.
</p>
<p>
The Derby community also maintains an IRC channel on the freenode IRC
network. You are welcome to stop by:
</p>

<p class="code-block">/server irc.freenode.org
/join #derby
</p>

<p>
However, keep in mind that all decisions occur on the Derby mail lists
and not on IRC. Please summarize any off-list knowledge gained and post
it for the benefit of all. For example, if a user asks a question and
gets a response, post that exchange to derby-user. If developers work
out a strategy for solving a problem, post a summary to derby-dev,
including alternatives that were considered but ultimately dismissed and
why. If developers figure out how something works, post a summary of the
finding to derby-dev.
</p>

<p>
In all cases, additional eyes can catch any errors, point out any
subtleties, and fill in additional information. The more discussions are
on-list, the more the rest of the community will benefit from the
understanding that is developed.
</p>

</section>

<section>
<title>Understand How Development Works at Apache</title>

<p>
New users and developers who are familiar with how development occurs
on commercial products sometimes get confused by open source development 
at Apache.
</p>

<p>
The first thing to understand is <strong>individuals</strong> 
volunteer for various tasks. Here are some relevant quotes from the
<a href="http://www.apache.org/foundation/how-it-works.html">How the ASF works</a>
page:
</p>

<ul>
   <li><em>"Projects are normally auto governing and driven by the people who
volunteer for the job. This is sometimes referred to as "do-ocracy"
-- power of those who do. This functions well for most cases."</em>
   </li>

   <li><em>"All of the ASF including the board, the other officers, the
   committers, and the members, are participating as individuals.
   That is one strength of the ASF, affiliations do not cloud the
   personal contributions.<br/>
   Unless they specifically state otherwise, whatever they post on any
   mailing list is done *as themselves*. It is the individual
   point-of-view, wearing their personal hat and not as a mouthpiece
   for whatever company happens to be signing their paychecks right
   now, and not even as a director of the ASF."</em>
   </li>
</ul>

<p>
However, lest it look like everybody is working diligently solely as an
individual (and possibly at cross purposes with others), 
community coordination and contribution occurs on the Apache mail lists.
The 
<a href="http://www.apache.org/foundation/how-it-works.html">How the ASF works</a>
page provides helpful context.
</p>

<p>
So, Derby depends on the community to work together as a whole
to change the product.
How can new Derby users and developers actively participate in these changes?
</p>

<p>
First, 
<a href="http://db.apache.org/derby/DerbyBugGuidelines.html">open Jira issues</a>
to report problems you have stumbled upon or to request new features. 
However, remember
that volunteers fix issues -- a valuable reminder from the ASF
<a href="http://www.apache.org/foundation/faq.html#what-is-apache-NOT-about">FAQ</a>
is below:
</p>

<ul>
  <li><em>What is Apache not about?</em>
   <ul>

    <li> <em>To </em>[...] 
          <em>demand someone else to fix your bugs.</em></li>
   </ul>
   </li>
</ul>

<p>
Second, vote on Jira issues that you feel strongly should be fixed. 
</p>

<p>
Third, participate even more in the Derby development
process by subscribing to 
<a href="derby_mail.html">derby-dev@db.apache.org</a>. That's
where core development discussions occur and decisions get made.
</p>

<p>
Fourth, if you want to actually start doing development, the
next section is tailored specifically for you.
</p>


</section>

<section>
<title>Contribute Code or Documentation</title>

<p>
If you would like to participate directly in Derby development, 
here are a few guidelines:
</p>

<ul>
  <li> Like all Apache projects, the Derby project
	follows the 
      <a href="http://www.apache.org/foundation/how-it-works.html">Apache 
       Way</a>.
  </li>

  <li>Derby follows the guidelines established by the 
      <a href="http://db.apache.org/guidelines.html">Apache DB Project</a>.
   </li>
</ul>

<p>
Additional information for contributors is on the 
<a href="https://cwiki.apache.org/confluence/display/DERBY/FrontPage">Derby Wiki</a>. Below
is just a sampling of the topics covered:
</p>

<ul>
 <li><a href="https://cwiki.apache.org/confluence/display/DERBY/DerbyDev">For
   Developers</a>: Information for Derby developers.
 </li>
 <li><a href="https://cwiki.apache.org/confluence/display/DERBY/ForNewDevelopers">For New
   Developers</a>: Information to get started with Derby development.
 </li>
 <li>
  <a href="https://cwiki.apache.org/confluence/display/DERBY/DerbyContributorChecklist">Derby
      Contributor Checklist</a>: Tips for developers contributing code to Derby.
 </li>
 <li>
  <a href="https://cwiki.apache.org/confluence/display/DERBY/DerbyJUnitTesting">Derby
      JUnit Testing</a> and <a href="https://cwiki.apache.org/confluence/display/DERBY/DerbyTopLevelJunitTests">Derby Top-Level Tests</a>: Information on running the various Derby test suites.
 </li>
 <li> <a href="https://cwiki.apache.org/confluence/display/DERBY/DerbyCommitProcess">Derby
       Commit Process</a>: How a change to Derby actually gets committed.</li>
</ul>

<p> 
The remainder of this section includes some miscellaneous tips that don't
seem to have made it onto the Wiki (yet).
</p> 

<p> 
<strong>How to create a patch</strong>
</p> 

<ol>

<li> 

<p>
Sync up your local svn copy with any changes checked into the server:
</p>

<source>
cd &lt;my_derby_loc&gt;/trunk
svn update
</source>

</li> 

<li> 
<p>
Make your change. If you are adding a new file, add it using svn.
The example below shows adding a file named <code>xyz.java</code>:
</p>

<source>
svn add java/engine/impl/yadiyadi/xyz.java 
svn propset svn:eol-style native java/engine/impl/yadiyadi/xyz.java
</source>

</li> 

<li> 
<p>
Run the tests (for more details, see the wiki links above).
</p> 

<source>
ant all
ant junitreport
</source>

<p> 
Resolve any test failures.
</p> 

</li> 

<li> 
<p> 
Make the patch.
</p> 

<source>
svn diff &gt; xyz.diff
</source>

</li>

<li> 

<p> 
Attach the patch to the Jira issue.
</p> 

<p> 
Include the following information with your post:
</p> 

     <ul>

     <li>Which tests were run.
     </li>

     <li> For a feature, a description of what the detailed functionality that
     is being implemented is essential.
     </li>

     <li> A description of the changes, e.g. how a feature is implemented or why
     the change fixes a bug. Hopefully this will be in comments in the code
     but sometimes an overview in the e-mail is useful, or have the e-mail
     point to an overview in the code comments.
     </li>

     <li>If the patch modifies more than one file then the output from
     'svn status' is very useful to have in the e-mail.
     </li>

     </ul>
</li>

</ol>

<p> 
<strong>Submit patches against the trunk</strong>
</p> 

<p> 
New features, code cleanup, performance
fixes and other significant changes need to be submitted against the trunk.
</p> 

<p> 
Bug fixes may be submitted against either the trunk or a branch.
</p> 

<p> 
See the <a href="http://mail-archives.apache.org/mod_mbox/db-derby-dev/200501.mbox/%3c1104707960.5876.100.camel@homer%3e">"Contributing with patches"</a> mail list topic.
</p> 

<p> 
<strong>Enigmail tips for sending and saving patches</strong>
</p> 

<p>
If you use Enigmail to send a patch to the
<a href="derby_mail.html">derby-dev</a> mail list be aware that, 
by default,
Enigmail handles Mozilla's <em>text=flowed</em> formatting 
by replacing leading spaces with a tilde ("~") character (see
<a href="http://enigmail.mozdev.org/troubles.html#flowed">
http://enigmail.mozdev.org/troubles.html#flowed</a>).
To send a patch in-line using Enigmail,
turn off the <em>Allow flowed text</em> setting:
</p>

<source>
     Enigmail -&gt; Preferences -&gt; Sending -&gt; Allow flowed text (RFC 2646)
</source>

<p>
If you use Enigmail to save a patch submitted to the
<a href="derby_mail.html">derby-dev</a> mail list,
you may need to decrypt and save that decrypted email if it was signed using
gnuPG because
lines that begin with a dash get escaped with "- " (see
<a href="http://www.stillhq.com/extracted/gnupg-api/doc/faq.html#q4.7">http://www.stillhq.com/extracted/gnupg-api/doc/faq.html#q4.7</a>).
To extract the text in Enigmail without the escape characters,
first decrypt the email, then save the decrypted message:
</p>

<source>
     Enigmail -&gt; Decrypt/verify
     Enigmail -&gt; Save decrypted message
</source>

</section>

<p>
<em>Last updated: May 4, 2006</em>
</p>

</body>
</document>
