Skip to content

Commit d20751a

Browse files
committed
first import
1 parent f13afc7 commit d20751a

95 files changed

Lines changed: 12621 additions & 0 deletions

File tree

Some content is hidden

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

.gitignore

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
2+
.jsshell
3+
.js*shell
4+
5+
*.[oa]
6+
*~
7+
*.pyc
8+
*CVS
9+
*.so
10+
*.d
11+
*.class*
12+
.cvsignore*
13+
.svn
14+
.#*
15+
.git
16+
*#
17+
*.swp
18+
.MQLshell
19+
20+
#os x stuff
21+
*Thumbs.db*
22+
*.DS_Store
23+
24+
src/main/Foo.java
25+
src/main/Eliot.java
26+
.zeuspw
27+
28+
10gen.properties
29+
logs
30+
test-output
31+
oplog.*
32+
build
33+
crap
34+
hs_err_*
35+
doc
36+
docs
37+
target
38+
include/jython/cachedir
39+
40+
TAGS
41+
42+
#test local files
43+
src/test/ed/webtests/webtest-local.bash

GNU-AGPL-3.0.txt

Lines changed: 661 additions & 0 deletions
Large diffs are not rendered by default.

README

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
3+
ISSUES
4+
- mark as partial
5+
- count
6+
- binary

build.xml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
<?xml version='1.0'?>
2+
<project name="ED" default="compile" basedir=".">
3+
4+
<property name="targetdir" location="target"/>
5+
<property name="testdir" location="${targetdir}/test"/>
6+
7+
8+
<path id="classpath">
9+
<fileset dir="include">
10+
<include name="**/*.jar"/>
11+
</fileset>
12+
<pathelement path="conf" />
13+
<pathelement path="build" />
14+
15+
</path>
16+
17+
<target name="init">
18+
<mkdir dir="build" />
19+
<mkdir dir="logs" />
20+
<mkdir dir="${testdir}" />
21+
</target>
22+
23+
<target name="clean">
24+
<delete dir="build"/>
25+
</target>
26+
27+
<target name="compile" depends="init">
28+
29+
<javac srcdir="src/main/ed"
30+
destdir="build"
31+
optimize="off"
32+
deprecation="off"
33+
source="1.5"
34+
encoding="ISO-8859-1"
35+
memoryMaximumSize="256M"
36+
fork="true"
37+
debug="on" >
38+
<classpath refid="classpath"/>
39+
</javac>
40+
41+
<javac srcdir="src/test"
42+
destdir="build"
43+
optimize="off"
44+
deprecation="off"
45+
source="1.5"
46+
encoding="ISO-8859-1"
47+
debug="on" >
48+
<classpath refid="classpath"/>
49+
</javac>
50+
51+
</target>
52+
53+
54+
<target name="javadocs" depends="compile">
55+
56+
<javadoc packagenames="ed.*"
57+
sourcepath="src/main/"
58+
defaultexcludes="yes"
59+
destdir="docs/"
60+
author="true"
61+
version="true"
62+
source="1.5"
63+
use="true"
64+
access="package"
65+
>
66+
<link href="http://java.sun.com/j2se/1.5/docs/api/" />
67+
<classpath refid="classpath"/>
68+
</javadoc>
69+
70+
</target>
71+
72+
<target name="rebuild" depends="clean, compile"/>
73+
74+
<!-- - - - - - - - - - - - - - - - - - - - - - -->
75+
<!-- test stuff -->
76+
<!-- - - - - - - - - - - - - - - - - - - - - - -->
77+
78+
<taskdef name="testng"
79+
classpathref="classpath"
80+
classname="org.testng.TestNGAntTask"
81+
>
82+
</taskdef>
83+
84+
85+
<target name="test" depends="compile, test-basic" />
86+
87+
88+
<target name="test-basic" depends="init, compile">
89+
<testng classpathref="classpath" outputdir="${testdir}" listeners="ed.TestNGListener" haltonfailure="true" >
90+
<jvmarg value="-Xmx512M" />
91+
<xmlfileset dir="." includes="testng.xml"/>
92+
<sysproperty key="TESTNG:CODE_ROOT" value="${codeRoot}"/>
93+
</testng>
94+
</target>
95+
96+
<target name="test-mql" depends="compile, init">
97+
<testng classpathref="classpath"
98+
outputDir="${testdir}"
99+
haltOnFailure="true" verbose="2">
100+
<classfileset dir="build" includes="ed/db/mql/*Test.class" />
101+
</testng>
102+
</target>
103+
104+
</project>

common.bash

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
cd `dirname $0`
4+
5+
export ED_HOME=.
6+
# TODO get rid of this?
7+
export TZ=America/New_York
8+
9+
export CLASSPATH=.:build:conf:"$CLASSPATH"
10+
for j in `find include \( -name webtest -type d \) -prune -o -type f -name '*.jar' -print`; do
11+
export CLASSPATH="$CLASSPATH":$j
12+
done
13+
export CLASSPATH="$CLASSPATH":/opt/java/lib/tools.jar
14+
15+
export java_lib_path="-Djava.library.path=include"
16+
export headless="-Djava.awt.headless=true"
17+
export jruby_home="-Djruby.home=$ED_HOME/include/ruby"
18+
19+
export standard_options="-enableassertions $java_lib_path $headless $jruby_home"
20+
21+
export memory_large="-Xmx1000m -XX:MaxDirectMemorySize=600M"
22+
export memory_small="-Xmx200m -XX:MaxDirectMemorySize=200M"
23+
24+
export java_memory_large="java $standard_options $memory_large"
25+
export java_memory_small="java $standard_options $memory_small"

conf/agpl_1.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright (C) 2008 10gen Inc.
2+
3+
This program is free software: you can redistribute it and/or modify
4+
it under the terms of the GNU Affero General Public License, version 3,
5+
as published by the Free Software Foundation.
6+
7+
This program is distributed in the hope that it will be useful,
8+
but WITHOUT ANY WARRANTY; without even the implied warranty of
9+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10+
GNU Affero General Public License for more details.
11+
12+
You should have received a copy of the GNU Affero General Public License
13+
along with this program. If not, see <http://www.gnu.org/licenses/>.

conf/apache_1.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright (C) 2008 10gen Inc.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

conf/log4j.xml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
3+
4+
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
5+
6+
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
7+
<param name="Target" value="System.out"/>
8+
<param name="Threshold" value="INFO"/>
9+
10+
<layout class="org.apache.log4j.PatternLayout">
11+
<param name="ConversionPattern" value="[%c-%p] %d [%t]| %m%n"/>
12+
</layout>
13+
</appender>
14+
15+
<category name="org">
16+
<priority value="ERROR"/>
17+
</category>
18+
19+
<category name="com">
20+
<priority value="ERROR"/>
21+
</category>
22+
23+
<category name="org.apache.ftpserver">
24+
<priority value="DEBUG"/>
25+
</category>
26+
27+
<root>
28+
<appender-ref ref="CONSOLE"/>
29+
</root>
30+
31+
</log4j:configuration>

include/testng-5.8-jdk15.jar

824 KB
Binary file not shown.

mongo

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
. `dirname $0`/common.bash
4+
$java_memory_large ed.db.mql.MQLShell "$@"

0 commit comments

Comments
 (0)