Skip to content

Commit e50e6b3

Browse files
committed
add processed docs
1 parent 9da79e4 commit e50e6b3

File tree

219 files changed

+16194
-2156
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

219 files changed

+16194
-2156
lines changed

.gitignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ bin
66
*/.gitignore
77
.gitkeep
88
/helloworld-jsp
9-
README.html
10-
SERVICES.html
11-
CHANGES.html
12-
CONTRIBUTING.html
13-
RELEASE_PROCEDURE.html
149
out
1510
nb-configuration.xml
1611
nbactions.xml

CONTRIBUTING.html

Lines changed: 287 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,287 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head><title>Quickstarts Contributing Guide</title>
4+
<link href="http://static.jboss.org/ffe/0/www/vendor/redhat/documentation.css" rel="stylesheet"></link>
5+
<link href="http://static.jboss.org/ffe/0/www/vendor/redhat/pygments.css" rel="stylesheet"></link>
6+
</head>
7+
<body><h1><a href="#quickstarts-contributing-guide" id="quickstarts-contributing-guide">Quickstarts Contributing Guide</a></h1>
8+
<h2><a href="#purpose-of-the-quickstarts" id="purpose-of-the-quickstarts">Purpose of the quickstarts</a></h2>
9+
<ul>
10+
<li>
11+
<p>To demonstrate Java EE 7 technologies</p>
12+
</li>
13+
<li>
14+
<p>To provide developers with working examples and instructions that are easy to follow .</p>
15+
</li>
16+
<li>
17+
<p>To allow examples to be copied by developers and used as the basis for their own projects.</p>
18+
</li>
19+
</ul>
20+
<h2><a href="#basic-steps" id="basic-steps">Basic Steps</a></h2>
21+
<p>To contribute to the quickstarts, fork the quickstart repository to your own Git, clone your fork, commit your work on topic branches, and make pull requests.</p>
22+
<p>If you don't have the Git client (<code>git</code>), get it from: <a href="http://git-scm.com/">http://git-scm.com/</a></p>
23+
<p>Here are the steps in detail:</p>
24+
<ol>
25+
<li>
26+
<p><a href="https://github.com/wildfly/quickstart/fork_select">Fork</a> the project. This creates a the project in your own Git with the default remote name 'origin'.</p>
27+
</li>
28+
<li>
29+
<p>Clone your fork. This creates and populates a directory in your local file system.</p>
30+
<pre><code>git clone [email protected]:&lt;your-username&gt;/quickstart.git
31+
</code></pre>
32+
</li>
33+
<li>
34+
<p>Add the remote <code>upstream</code> repository so you can fetch any changes to the original forked repository.</p>
35+
<pre><code>git remote add upstream [email protected]:wildfly/quickstart.git
36+
</code></pre>
37+
</li>
38+
<li>
39+
<p>Get the latest files from the <code>upstream</code> repository.</p>
40+
<pre><code>git fetch upstream
41+
</code></pre>
42+
</li>
43+
<li>
44+
<p>Create a new topic branch to contain your features, changes, or fixes using the <code>git checkout -b &lt;topic-branch-name&gt; upstream/master</code> command. For example:</p>
45+
<pre><code>git checkout -b helloworld-fix upstream/master
46+
</code></pre>
47+
</li>
48+
<li>
49+
<p>Contribute new code or make changes to existing files. Make sure that you follow the <em>General Guidelines</em> below.</p>
50+
</li>
51+
<li>
52+
<p>To verify if your code followed the General Guidelines you can run <a href="http://www.jboss.org/jdf/quickstarts/qstools/">QS Tools</a> on your project.</p>
53+
</li>
54+
</ol>
55+
<ul>
56+
<li>To run QS Tools, go to your quickstart project root and execute:
57+
<pre><code> mvn -U org.jboss.maven.plugins:maven-qstools-plugin:check
58+
</code></pre>
59+
</li>
60+
</ul>
61+
<p>This will generate a report on <code>QUICKSTART_HOME/target/site/qschecker.html</code>. Review the report to determine if your quickstart project violates any item in the <em>General Guidelines</em>.</p>
62+
<ol>
63+
<li>Use the <code>git add</code> command to add new or changed file contents to the staging area.</li>
64+
</ol>
65+
<ul>
66+
<li>If you create a new quickstart, you can add files using the subfolder and file names. The following is an example of new quickstart folders and files you may want to stage:
67+
<pre><code> git add src/
68+
git add pom.xml
69+
git add README.md
70+
</code></pre>
71+
</li>
72+
</ul>
73+
<p><em>Note: It is probably best not to add the entire quickstart root folder because you may unintentionally add classes or other target files that should not be in source control.</em><br />
74+
* If you only modified a few files, use <code>git add &lt;filename&gt;</code> for every file you create or change. For example:</p>
75+
<pre><code> git add README.md
76+
</code></pre>
77+
<ol>
78+
<li>
79+
<p>Use the git status command to view the status of the files in the directory and in the staging area and ensure that all modified files are properly staged:</p>
80+
<pre><code>git status
81+
</code></pre>
82+
</li>
83+
<li>
84+
<p>Commit your changes to your local topic branch.</p>
85+
<pre><code>git commit -m 'Description of change...'
86+
</code></pre>
87+
</li>
88+
<li>
89+
<p>Push your local topic branch to your github forked repository. This will create a branch on your Git fork repository with the same name as your local topic branch name.</p>
90+
<pre><code>git push origin HEAD
91+
</code></pre>
92+
</li>
93+
</ol>
94+
<p><em>Note: The above command assumes your remote repository is named 'origin'. You can verify your forked remote repository name using the command <code>git remote -v</code></em>. 12. Browse to the <topic-branch-name> branch on your forked Git repository and <a href="http://help.github.com/send-pull-requests/">open a Pull Request</a>. Give it a clear title and description.</p>
95+
<h2><a href="#general-guidelines" id="general-guidelines">General Guidelines</a></h2>
96+
<ul>
97+
<li>
98+
<p>The sample project should be formatted using the WildFly profiles found at <a href="http://github.com/jboss/ide-config/tree/master/">http://github.com/jboss/ide-config/tree/master/</a></p>
99+
</li>
100+
<li>
101+
<p>Code should be well documented with good comments. Please add an author tag (@author) to credit yourself for writing the code.</p>
102+
</li>
103+
<li>You should use readable variable names to make it easy for users to read the code.</li>
104+
<li>
105+
<p>The package must be <em>org.wildfly.quickstarts</em></p>
106+
</li>
107+
<li>
108+
<p>The quickstart project or folder name should match the quickstart name. Each sample project should have a unique name, allowing easy identification by users and developers.</p>
109+
</li>
110+
<li>
111+
<p>The quickstart project <code>&lt;artifactId&gt;</code> in the <code>pom.xml</code> file must be prefixed by <code>wildfly-</code>. For example, the <code>&lt;artifactId&gt;</code> for a <code>is-f-fast</code> quickstart is <code>wildfly-is-f-fast</code>.</p>
112+
</li>
113+
<li>
114+
<p>If you create a quickstart that uses a database table, make sure the name you use for the table is unique across all quickstarts.</p>
115+
</li>
116+
<li>
117+
<p>The project must follow the structure used by existing quickstarts such as <a href="https://github.com/wildfly/quickstart/tree/master/numberguess">numberguess</a>. A good starting point would be to copy the <code>numberguess</code> project.</p>
118+
</li>
119+
<li>
120+
<p>The sample project should be importable into JBoss Developer Studio/JBoss Tools and be deployable from there.</p>
121+
</li>
122+
<li>
123+
<p>Maven POMs must be used. No other build system is allowed unless the purpose of the quickstart is to show another build system in use. If using Maven it should:</p>
124+
</li>
125+
<li>
126+
<p>Not inherit from another POM</p>
127+
</li>
128+
<li>Maven POMs must use the Java EE spec BOM/POM imports</li>
129+
<li>The POMs must be commented, with a comment each item in the POM</li>
130+
<li>Import the various BOMs, either directly from a project, or from <a href="http://www.jboss.org/jdf/stack/stacks/">JBoss BOMs</a>, to determine version numbers. You should aim to have no dependencies declared directly. If you do, work with the jdf team to get them added to a BOM.</li>
131+
<li>Use the WildFly Maven Plugin to deploy the example</li>
132+
<li>
133+
<p>The sample project must contain a <code>README.md</code> file using the <code>template/README.md</code> file as a guideline</p>
134+
</li>
135+
<li>
136+
<p>Don't forget to update the <code>pom.xml</code> in the quickstart root directory. Add your quickstart to the 'modules' section.</p>
137+
</li>
138+
<li>
139+
<p>The project must target Java 6</p>
140+
</li>
141+
<li>
142+
<p>CDI should be used as the programming model</p>
143+
</li>
144+
<li>Avoid using a web.xml if possible. Use faces-config.xml to activate JSF if needed.</li>
145+
<li>Any tests should use Arquillian.</li>
146+
</ul>
147+
<h2><a href="#kitchensink-variants" id="kitchensink-variants">Kitchensink variants</a></h2>
148+
<p>There are multiple quickstarts based on the kitchensink example. Each showcases different technologies and techniques including pure EE7, JSF, HTML5, and GWT.</p>
149+
<p>If you wish to contribute a kitchensink variant is it important that you follow the look and feel of the original so that useful comparisons can be made. This does not mean that variants can not expand, and showcase additional functionality. Multiple variants already do that. These include mobile interfaces, push updates, and more.</p>
150+
<p>Below are rules for the <em>look and feel</em> of the variants:</p>
151+
<ul>
152+
<li>
153+
<p>Follow the primary layout, style, and graphics of the original.</p>
154+
</li>
155+
<li>
156+
<p>Projects can have 3-4 lines directly under the WildFly banner in the middle section to describe what makes this variant different.</p>
157+
<ul>
158+
<li>How projects use that space is up to them, but options include plain text, bullet points, etc....</li>
159+
</ul>
160+
</li>
161+
<li>
162+
<p>Projects can have their logo in the left side of the banner.</p>
163+
<ul>
164+
<li>The sidebar area can contain a section with links to the related projects, wiki, tutorials, etc...</li>
165+
<li>This should be below any WildFly link areas.</li>
166+
</ul>
167+
<p>If appropriate for the technology the application should expose RESTful endpoints following the example of the original kitchensink quickstart. This should also include the RESTful links in the member table.</p>
168+
</li>
169+
</ul>
170+
<h2><a href="#setup-your-environment" id="setup-your-environment">Setup your environment</a></h2>
171+
<p>The quickstart README.md files are converted to HTML using markdown. We recommend using redcarpet, as that is what github uses, but you can use any markdown tool really.</p>
172+
<p>There are two scripts, <code>dist/github-flaoured-markdown.rb</code>, that will convert an individual file, and <code>dist/release-utils.sh -m</code>, that will convert all the files.</p>
173+
<p>To setup the environment you need to follow these steps.</p>
174+
<ol>
175+
<li>
176+
<p>Install Ruby <em>1.9.X</em></p>
177+
<p>For RHEL you can use this <a href="https://github.com/lnxchk/ruby-1.9.3-rpm">spec</a></p>
178+
<p>In general, you're better off not relying on your OSs ruby install, they are often quite broken.</p>
179+
</li>
180+
<li>
181+
<p>Install Ruby GEMs</p>
182+
<pre><code>gem install nokogiri pygments.rb redcarpet fileutils
183+
</code></pre>
184+
</li>
185+
<li>
186+
<p>Install Python Eggs</p>
187+
<p>You'll need python eggs installed, which often isn't available on OS installs of python. Google to find out how to install it</p>
188+
</li>
189+
<li>
190+
<p>Install pygments</p>
191+
<pre><code> sudo easy_install pygments
192+
</code></pre>
193+
</li>
194+
</ol>
195+
<h2><a href="#license-information-and-contributor-agreement" id="license-information-and-contributor-agreement">License Information and Contributor Agreement</a></h2>
196+
<p>JBoss Developer Framework is licensed under the Apache License 2.0, as we believe it is one of the most permissive Open Source license. This allows developers to easily make use of the code samples in JBoss Developer Framework.</p>
197+
<p>There is no need to sign a contributor agreement to contribute to JBoss Developer Framework. You just need to explicitly license any contribution under the AL 2.0. If you add any new files to JBoss Developer Framework, make sure to add the correct header.</p>
198+
<h3><a href="#java-javascript-and-css-files" id="java-javascript-and-css-files">Java, Javascript and CSS files</a></h3>
199+
<pre><code> /**
200+
* JBoss, Home of Professional Open Source
201+
* Copyright 2015, Red Hat, Inc. and/or its affiliates, and individual
202+
* contributors by the @authors tag. See the copyright.txt in the
203+
* distribution for a full listing of individual contributors.
204+
*
205+
* Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
206+
* you may not use this file except in compliance with the License.
207+
* You may obtain a copy of the License at
208+
* http://www.apache.org/licenses/LICENSE-2.0
209+
* Unless required by applicable law or agreed to in writing, software
210+
* distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
211+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
212+
* See the License for the specific language governing permissions and
213+
* limitations under the License.
214+
*/
215+
</code></pre>
216+
<h3><a href="#html-xml-xsd-and-xhtml-files" id="html-xml-xsd-and-xhtml-files">HTML, XML, XSD and XHTML files</a></h3>
217+
<pre><code> &lt;!--
218+
JBoss, Home of Professional Open Source
219+
Copyright 2015, Red Hat, Inc. and/or its affiliates, and individual
220+
contributors by the @authors tag. See the copyright.txt in the
221+
distribution for a full listing of individual contributors.
222+
223+
Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
224+
you may not use this file except in compliance with the License.
225+
You may obtain a copy of the License at
226+
http://www.apache.org/licenses/LICENSE-2.0
227+
Unless required by applicable law or agreed to in writing, software
228+
distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
229+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
230+
See the License for the specific language governing permissions and
231+
limitations under the License.
232+
--&gt;
233+
</code></pre>
234+
<h3><a href="#properties-files-and-bash-scripts" id="properties-files-and-bash-scripts">Properties files and Bash Scripts</a></h3>
235+
<pre><code> # JBoss, Home of Professional Open Source
236+
# Copyright 2015, Red Hat, Inc. and/or its affiliates, and individual
237+
# contributors by the @authors tag. See the copyright.txt in the
238+
# distribution for a full listing of individual contributors.
239+
#
240+
# Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
241+
# you may not use this file except in compliance with the License.
242+
# You may obtain a copy of the License at
243+
# http://www.apache.org/licenses/LICENSE-2.0
244+
# Unless required by applicable law or agreed to in writing, software
245+
# distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
246+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
247+
# See the License for the specific language governing permissions and
248+
# limitations under the License.
249+
</code></pre>
250+
<h3><a href="#sql-files" id="sql-files">SQL files</a></h3>
251+
<pre><code> --
252+
-- JBoss, Home of Professional Open Source
253+
-- Copyright 2015, Red Hat, Inc. and/or its affiliates, and individual
254+
-- contributors by the @authors tag. See the copyright.txt in the
255+
-- distribution for a full listing of individual contributors.
256+
--
257+
-- Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
258+
-- you may not use this file except in compliance with the License.
259+
-- You may obtain a copy of the License at
260+
-- http://www.apache.org/licenses/LICENSE-2.0
261+
-- Unless required by applicable law or agreed to in writing, software
262+
-- distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
263+
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
264+
-- See the License for the specific language governing permissions and
265+
-- limitations under the License.
266+
--
267+
</code></pre>
268+
<h3><a href="#jsp-files" id="jsp-files">JSP files</a></h3>
269+
<pre><code> &lt;%--
270+
JBoss, Home of Professional Open Source
271+
Copyright 2015, Red Hat, Inc. and/or its affiliates, and individual
272+
contributors by the @authors tag. See the copyright.txt in the
273+
distribution for a full listing of individual contributors.
274+
275+
Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
276+
you may not use this file except in compliance with the License.
277+
You may obtain a copy of the License at
278+
http://www.apache.org/licenses/LICENSE-2.0
279+
Unless required by applicable law or agreed to in writing, software
280+
distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
281+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
282+
See the License for the specific language governing permissions and
283+
limitations under the License.
284+
--%&gt;
285+
</code></pre>
286+
</body>
287+
</html>

0 commit comments

Comments
 (0)