You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2018/12/25 04:29:06 UTC

[1/4] tomee-site-generator git commit: TOMEE-2345 Add to all annotations outside codeblocks

Repository: tomee-site-generator
Updated Branches:
  refs/heads/master d244f5288 -> ee0724fcd


TOMEE-2345 Add  to all annotations outside codeblocks


Project: http://git-wip-us.apache.org/repos/asf/tomee-site-generator/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee-site-generator/commit/c7c4e443
Tree: http://git-wip-us.apache.org/repos/asf/tomee-site-generator/tree/c7c4e443
Diff: http://git-wip-us.apache.org/repos/asf/tomee-site-generator/diff/c7c4e443

Branch: refs/heads/master
Commit: c7c4e443ead08280eda4ac96d0bac4d10ba0cc7c
Parents: a96d235
Author: Carlos Chacin <cc...@gmail.com>
Authored: Sun Dec 16 15:04:23 2018 -0800
Committer: Carlos Chacin <cc...@gmail.com>
Committed: Sun Dec 16 15:04:23 2018 -0800

----------------------------------------------------------------------
 .../tomee/website/AddBacktickToAnnotations.java | 84 ++++++++++++++++++++
 1 file changed, 84 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee-site-generator/blob/c7c4e443/src/main/java/org/apache/tomee/website/AddBacktickToAnnotations.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/tomee/website/AddBacktickToAnnotations.java b/src/main/java/org/apache/tomee/website/AddBacktickToAnnotations.java
new file mode 100644
index 0000000..01ea9d7
--- /dev/null
+++ b/src/main/java/org/apache/tomee/website/AddBacktickToAnnotations.java
@@ -0,0 +1,84 @@
+/*
+ * 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.
+ */
+package org.apache.tomee.website;
+
+import org.apache.openejb.loader.IO;
+import org.apache.openejb.util.Join;
+
+import java.io.File;
+import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.regex.Pattern;
+
+public class AddBacktickToAnnotations {
+
+    private static final String REGEX = "([^=*].*)([^`]@\\w+)(.*)";
+
+    private static final Pattern annotation = Pattern.compile(REGEX);
+
+    private static final AtomicBoolean isCodeBlock = new AtomicBoolean(false);
+
+    public static void main(String[] args) throws Exception {
+
+        final File docs = new File("repos/tomee-8.0/docs/");
+
+        Files.walk(docs.toPath())
+             .map(Path::toFile)
+             .filter(File::isFile)
+             .filter(path -> path.getName().endsWith(".adoc"))
+             .forEach(AddBacktickToAnnotations::process);
+
+    }
+
+    public static void process(final File destReadme) {
+        try {
+            final List<String> completed = new ArrayList<>();
+            for (String line : IO.slurp(destReadme).split("\n")) {
+                if (line == null) { return; }
+                if (line.equals("----")) {
+                    if (!isCodeBlock.get()) {
+                        isCodeBlock.set(true);
+                    } else {
+                        isCodeBlock.set(false);
+                    }
+                    completed.add(line);
+                } else if (!isCodeBlock.get()) {
+                    completed.add(replace(line));
+                } else {
+                    completed.add(line);
+                }
+            }
+            // Update the destination readme file
+            IO.copy(IO.read(Join.join("\n", completed) + "\n"), destReadme);
+
+        } catch (IOException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private static String replace(final String line) {
+        if (annotation.matcher(line).matches()) {
+            return line.replaceAll("([^a-z|`])(@\\w+)", "$1`$2`");
+        } else {
+            return line;
+        }
+    }
+}


[3/4] tomee-site-generator git commit: Merge branch 'TOMEE-2345' of github.com:cchacin/tomee-site-generator

Posted by db...@apache.org.
Merge branch 'TOMEE-2345' of github.com:cchacin/tomee-site-generator


Project: http://git-wip-us.apache.org/repos/asf/tomee-site-generator/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee-site-generator/commit/04cc5d1e
Tree: http://git-wip-us.apache.org/repos/asf/tomee-site-generator/tree/04cc5d1e
Diff: http://git-wip-us.apache.org/repos/asf/tomee-site-generator/diff/04cc5d1e

Branch: refs/heads/master
Commit: 04cc5d1e3e7919e7f604295760385037e0092699
Parents: d244f52 c7c4e44
Author: David Blevins <da...@gmail.com>
Authored: Mon Dec 24 20:28:18 2018 -0800
Committer: David Blevins <da...@gmail.com>
Committed: Mon Dec 24 20:28:18 2018 -0800

----------------------------------------------------------------------
 .../tomee/website/AddBacktickToAnnotations.java | 84 ++++++++++++++++++++
 1 file changed, 84 insertions(+)
----------------------------------------------------------------------



[4/4] tomee-site-generator git commit: Merge branch 'link-jira' of github.com:Daniel-Dos/tomee-site-generator

Posted by db...@apache.org.
Merge branch 'link-jira' of github.com:Daniel-Dos/tomee-site-generator


Project: http://git-wip-us.apache.org/repos/asf/tomee-site-generator/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee-site-generator/commit/ee0724fc
Tree: http://git-wip-us.apache.org/repos/asf/tomee-site-generator/tree/ee0724fc
Diff: http://git-wip-us.apache.org/repos/asf/tomee-site-generator/diff/ee0724fc

Branch: refs/heads/master
Commit: ee0724fcdf3543b014a3869ebbd22512159499ba
Parents: 04cc5d1 fa3d829
Author: David Blevins <da...@gmail.com>
Authored: Mon Dec 24 20:28:54 2018 -0800
Committer: David Blevins <da...@gmail.com>
Committed: Mon Dec 24 20:28:54 2018 -0800

----------------------------------------------------------------------
 src/main/jbake/content/community/sources.adoc | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------



[2/4] tomee-site-generator git commit: add link to Jira.

Posted by db...@apache.org.
add link to Jira.


Project: http://git-wip-us.apache.org/repos/asf/tomee-site-generator/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee-site-generator/commit/fa3d8293
Tree: http://git-wip-us.apache.org/repos/asf/tomee-site-generator/tree/fa3d8293
Diff: http://git-wip-us.apache.org/repos/asf/tomee-site-generator/diff/fa3d8293

Branch: refs/heads/master
Commit: fa3d8293c1db5cab7d0ba187319450e22cf84090
Parents: a96d235
Author: Daniel Dias <da...@gmail.com>
Authored: Tue Dec 18 01:21:16 2018 -0200
Committer: Daniel Dias <da...@gmail.com>
Committed: Tue Dec 18 01:21:16 2018 -0200

----------------------------------------------------------------------
 src/main/jbake/content/community/sources.adoc | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee-site-generator/blob/fa3d8293/src/main/jbake/content/community/sources.adoc
----------------------------------------------------------------------
diff --git a/src/main/jbake/content/community/sources.adoc b/src/main/jbake/content/community/sources.adoc
index b6b96ad..ee8eea4 100755
--- a/src/main/jbake/content/community/sources.adoc
+++ b/src/main/jbake/content/community/sources.adoc
@@ -61,3 +61,11 @@ TomEE is using Buildbot for its continuous integration. You can access main buil
 
 - https://ci.apache.org/builders/tomee-trunk-ubuntu[TomEE Master]
 - https://ci.apache.org/builders/tomee-1.7.x-ubuntu[TomEE 1.7.x]
+
+=== Issues
+
+Tomee uses Jira for issues, if you are looking for a problem or reporting one, use the following address:
+
+- Create a ticket on http://issues.apache.org/jira/browse/TOMEE
+
+- Open a PR in the Gihub mirror with the ticket number e.g `TOMEE-1000 - Ticket Description`
\ No newline at end of file