Skip to content

Instantly share code, notes, and snippets.

@takahi-i
Last active February 18, 2018 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takahi-i/c545aab57df6d69cb2379c61ebe2f8d7 to your computer and use it in GitHub Desktop.
Save takahi-i/c545aab57df6d69cb2379c61ebe2f8d7 to your computer and use it in GitHub Desktop.
Temaplate of RedPen problem

Commands

Add list of commands you run.

$ bin/redpen-server -c redpen-config.xml 

Setting files

Add all setting files.

<redpen-conf lang="en">
    <validators>
        <validator name="SentenceLength">
            <property name="max_len" value="200"/>
        </validator>
        <validator name="InvalidSymbol" />
        <validator name="SpaceWithSymbol" />
        <validator name="SectionLength">
            <property name="max_num" value="2000"/>
        </validator>
        <validator name="ParagraphNumber" />
    </validators>
    <symbols>
         <symbol name="EXCLAMATION_MARK" value="!" invalid-chars="!" after-space="true" />
         <symbol name="LEFT_QUOTATION_MARK" value="\'"  invalid-chars="“" before-space="true" />
    </symbols>
</redpen-conf>

log file

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
^M  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0^M100   309  100   292  100    17  37774   2199 --:--:-- --:--:-- --:--:-- 41714
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /shutdown. Reason:
<pre>    Not Found</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/>

</body>
</html>
2018-02-15 00:59:34.233:INFO::main: Logging initialized @216ms
2018-02-15 00:59:34.292:INFO:oejs.Server:main: jetty-9.2.z-SNAPSHOT
2018-02-15 00:59:37.230:INFO:oejw.StandardDescriptorProcessor:main: NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet
2018-02-15 00:59:37.260:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@26b3fd41{/,file:/private/var/folders/53/yjhmyqj96k59h64cwvzb8ny00000gn/T/jetty-0.0.0.0-9999-redpen-server.war-_-any-14554759016378509213.dir/webapp/,AVAILABLE}{file:/Users/takahi-i/Idea\
Projects/redpen/redpen-distribution/target/redpen-distribution-1.10.2-SNAPSHOT/bin/redpen-server.war}
2018-02-15 00:59:37.276:INFO:oejs.ServerConnector:main: Started ServerConnector@200e653a{HTTP/1.1}{0.0.0.0:9999}
2018-02-15 00:59:37.277:INFO:oe

Status

Add image of redpen-server or output from redpen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment