Skip to content

Commit dfd5fcf

Browse files
committed
initial commit
0 parents  commit dfd5fcf

15 files changed

+407
-0
lines changed

README.markdown

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# regexplanet-java
2+
3+
This is the Java backend for RegexPlanet, a tool for online regular expression testing.
4+
5+
See [API docs](http://www.regexplanet.com/support/api.html) for what it is supposed to do.
6+
7+
See [Java online regex test page](http://www.regexplanet.com/advanced/java/index.html) to use it to test your regular expressions.

build.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<project name="RegexPlanet-Java" default="compile">
2+
3+
<property name="appengine.sdk" location="/usr/local/appengine-java-sdk"/>
4+
5+
<fail message="Please define the appengine.sdk property to point to your SDK directory">
6+
<condition>
7+
<not> <and>
8+
<isset property="appengine.sdk"/>
9+
<available file="${appengine.sdk}/config/user/ant-macros.xml"/>
10+
</and> </not>
11+
</condition>
12+
</fail>
13+
14+
<!-- Pick up the Ant macros and taskdefs for App Engine -->
15+
<import file="${appengine.sdk}/config/user/ant-macros.xml"/>
16+
17+
<!-- Change if you like e.g. "war" better than "www" for the output -->
18+
<property name="war.dir" location="www"/>
19+
20+
<target name="clean" description="Force a clean slate to rebuild">
21+
<delete dir="${war.dir}/WEB-INF/classes"/>
22+
<delete defaultexcludes="no" dir="${war.dir}">
23+
<include name="**/*~"/>
24+
</delete>
25+
</target>
26+
27+
<target name="run" description="Run the dev_appserver">
28+
<dev_appserver war="${war.dir}" address="0.0.0.0" port="8082"/>
29+
</target>
30+
</project>

deploy.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/usr/local/appengine-java-sdk/bin/appcfg.sh -e fileformat@gmail.com update www/

www/WEB-INF/appengine-web.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
2+
3+
<application>regexplanet-java</application>
4+
5+
<sessions-enabled>true</sessions-enabled>
6+
7+
<!--
8+
<static-error-handlers>
9+
<handler file="/_err/over_quota.txt" error-code="over_quota"/>
10+
<handler file="/_err/dos_denial.txt" error-code="dos_api_denial" />
11+
<handler file="/_err/timeout.txt" error-code="timeout" />
12+
</static-error-handlers>
13+
-->
14+
15+
<static-files>
16+
<include path="/favicon.ico" expiration="7d" />
17+
</static-files>
18+
19+
<system-properties>
20+
<property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/>
21+
</system-properties>
22+
23+
<threadsafe>true</threadsafe>
24+
25+
<version>3</version>
26+
27+
</appengine-web-app>

www/WEB-INF/lib/commons-codec-1.5.jar

71.4 KB
Binary file not shown.
56.4 KB
Binary file not shown.
306 KB
Binary file not shown.

www/WEB-INF/lib/guava-10.0.1.jar

1.43 MB
Binary file not shown.

www/WEB-INF/lib/json_simple-1.1.jar

15.7 KB
Binary file not shown.

www/WEB-INF/web.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
<web-app
3+
xmlns="http://java.sun.com/xml/ns/javaee"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
6+
version="2.5">
7+
8+
<display-name>RegexPlanet Java API</display-name>
9+
10+
<error-page>
11+
<error-code>404</error-code>
12+
<location>/_err/404.jsp</location>
13+
</error-page>
14+
15+
<error-page>
16+
<error-code>500</error-code>
17+
<location>/_err/500.jsp</location>
18+
</error-page>
19+
20+
<system-properties>
21+
<property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/>
22+
</system-properties>
23+
24+
<welcome-file-list>
25+
<welcome-file>index.jsp</welcome-file>
26+
</welcome-file-list>
27+
28+
</web-app>

www/_err/404.jsp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<%@ page buffer="16kb"
2+
contentType="text/plain;charset=utf-8"
3+
import="java.io.*,
4+
java.util.*,
5+
javax.mail.*,
6+
javax.mail.internet.*"
7+
%>404: File not found

www/_err/500.jsp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<%@ page buffer="16kb"
2+
contentType="text/plain;charset=utf-8"
3+
import="java.io.*,
4+
java.util.*,
5+
javax.mail.*,
6+
javax.mail.internet.*"
7+
%>{ "success": false, "message": "500: Server Error" }
8+

www/hello.jsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<%@ page contentType="text/plain;charset=utf-8" %>Hello World!

www/index.jsp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<%
2+
response.sendRedirect("http://www.regexplanet.com/advanced/java/index.html");
3+
%>

0 commit comments

Comments
 (0)