summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2009-10-27 15:58:27 -0400
committerMathias Stearn <mathias@10gen.com>2009-10-27 15:59:37 -0400
commitd27c8505eac9299b517538d97cd5ead4d185d1f6 (patch)
tree214e5090c6ee496adcedf0d5b3c95f2b648c68d5 /scripting
parent5b8a87f0245c76f5c8ead8f7c4ff2c7cc823f650 (diff)
downloadmongo-d27c8505eac9299b517538d97cd5ead4d185d1f6.tar.gz
all client files now marked as Apache 2.0. SERVER-329.
Diffstat (limited to 'scripting')
-rw-r--r--scripting/engine.cpp15
-rw-r--r--scripting/engine.h15
-rw-r--r--scripting/engine_java.cpp29
-rw-r--r--scripting/engine_java.h29
-rw-r--r--scripting/engine_none.cpp15
-rw-r--r--scripting/engine_spidermonkey.cpp15
-rw-r--r--scripting/engine_spidermonkey.h15
-rw-r--r--scripting/engine_v8.cpp17
-rw-r--r--scripting/engine_v8.h17
-rw-r--r--scripting/sm_db.cpp15
-rw-r--r--scripting/v8_db.cpp15
-rw-r--r--scripting/v8_db.h15
-rw-r--r--scripting/v8_utils.cpp17
-rw-r--r--scripting/v8_utils.h15
-rw-r--r--scripting/v8_wrapper.cpp15
-rw-r--r--scripting/v8_wrapper.h15
16 files changed, 244 insertions, 30 deletions
diff --git a/scripting/engine.cpp b/scripting/engine.cpp
index 0eeb843ba0f..3300e389c24 100644
--- a/scripting/engine.cpp
+++ b/scripting/engine.cpp
@@ -1,5 +1,20 @@
// engine.cpp
+/* Copyright 2009 10gen Inc.
+ *
+ * Licensed 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.
+ */
+
#include "stdafx.h"
#include "engine.h"
#include "../util/file.h"
diff --git a/scripting/engine.h b/scripting/engine.h
index 502f82949b0..dfef5aa58a9 100644
--- a/scripting/engine.h
+++ b/scripting/engine.h
@@ -1,5 +1,20 @@
// engine.h
+/* Copyright 2009 10gen Inc.
+ *
+ * Licensed 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.
+ */
+
#pragma once
#include "../stdafx.h"
diff --git a/scripting/engine_java.cpp b/scripting/engine_java.cpp
index 484507051da..0ed6f1d6e23 100644
--- a/scripting/engine_java.cpp
+++ b/scripting/engine_java.cpp
@@ -1,19 +1,20 @@
// java.cpp
-/**
-* Copyright (C) 2008 10gen Inc.
-*
-* it under the terms of the GNU Affero General Public License, version 3,
-* as published by the Free Software Foundation.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU Affero General Public License for more details.
-*
-* You should have received a copy of the GNU Affero General Public License
-* along with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
+/* Copyright 2009 10gen Inc.
+ *
+ * Licensed 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.
+ */
+
#include "stdafx.h"
#include "engine_java.h"
diff --git a/scripting/engine_java.h b/scripting/engine_java.h
index e85042fae0e..b4d71d022b3 100644
--- a/scripting/engine_java.h
+++ b/scripting/engine_java.h
@@ -1,20 +1,19 @@
// engine_java.h
-/**
-* Copyright (C) 2008 10gen Inc.
-*
-* This program is free software: you can redistribute it and/or modify
-* it under the terms of the GNU Affero General Public License, version 3,
-* as published by the Free Software Foundation.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU Affero General Public License for more details.
-*
-* You should have received a copy of the GNU Affero General Public License
-* along with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
+/* Copyright 2009 10gen Inc.
+ *
+ * Licensed 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.
+ */
/* this file contains code to call into java (into the 10gen sandbox) from inside the database */
diff --git a/scripting/engine_none.cpp b/scripting/engine_none.cpp
index 9b55d516f68..2320d0e909a 100644
--- a/scripting/engine_none.cpp
+++ b/scripting/engine_none.cpp
@@ -1,5 +1,20 @@
// engine_none.cpp
+/* Copyright 2009 10gen Inc.
+ *
+ * Licensed 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.
+ */
+
#include "engine.h"
namespace mongo {
diff --git a/scripting/engine_spidermonkey.cpp b/scripting/engine_spidermonkey.cpp
index e76de3f6f90..e3505c192b4 100644
--- a/scripting/engine_spidermonkey.cpp
+++ b/scripting/engine_spidermonkey.cpp
@@ -1,5 +1,20 @@
// engine_spidermonkey.cpp
+/* Copyright 2009 10gen Inc.
+ *
+ * Licensed 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.
+ */
+
#include "stdafx.h"
#include "engine_spidermonkey.h"
diff --git a/scripting/engine_spidermonkey.h b/scripting/engine_spidermonkey.h
index bb4abf5a6b0..8aeb56cc5fc 100644
--- a/scripting/engine_spidermonkey.h
+++ b/scripting/engine_spidermonkey.h
@@ -1,5 +1,20 @@
// engine_spidermonkey.h
+/* Copyright 2009 10gen Inc.
+ *
+ * Licensed 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.
+ */
+
#pragma once
#include "engine.h"
diff --git a/scripting/engine_v8.cpp b/scripting/engine_v8.cpp
index f1a79962214..512f524470a 100644
--- a/scripting/engine_v8.cpp
+++ b/scripting/engine_v8.cpp
@@ -1,3 +1,20 @@
+//engine_v8.cpp
+
+/* Copyright 2009 10gen Inc.
+ *
+ * Licensed 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.
+ */
+
#include "engine_v8.h"
#include "v8_wrapper.h"
diff --git a/scripting/engine_v8.h b/scripting/engine_v8.h
index b97f76719b0..7b2a7ac1bd0 100644
--- a/scripting/engine_v8.h
+++ b/scripting/engine_v8.h
@@ -1,3 +1,20 @@
+//engine_v8.h
+
+/* Copyright 2009 10gen Inc.
+ *
+ * Licensed 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.
+ */
+
#pragma once
#include <vector>
diff --git a/scripting/sm_db.cpp b/scripting/sm_db.cpp
index b6af6bd1413..fe1e943a894 100644
--- a/scripting/sm_db.cpp
+++ b/scripting/sm_db.cpp
@@ -1,5 +1,20 @@
// sm_db.cpp
+/* Copyright 2009 10gen Inc.
+ *
+ * Licensed 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.
+ */
+
// hacked in right now from engine_spidermonkey.cpp
namespace mongo {
diff --git a/scripting/v8_db.cpp b/scripting/v8_db.cpp
index 6d42203df7f..519038b3b1a 100644
--- a/scripting/v8_db.cpp
+++ b/scripting/v8_db.cpp
@@ -1,5 +1,20 @@
// v8_db.cpp
+/* Copyright 2009 10gen Inc.
+ *
+ * Licensed 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.
+ */
+
#include "v8_wrapper.h"
#include "v8_utils.h"
#include "v8_db.h"
diff --git a/scripting/v8_db.h b/scripting/v8_db.h
index 14b99eefed0..2f072e907ee 100644
--- a/scripting/v8_db.h
+++ b/scripting/v8_db.h
@@ -1,5 +1,20 @@
// v8_db.h
+/* Copyright 2009 10gen Inc.
+ *
+ * Licensed 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.
+ */
+
#pragma once
#include <v8.h>
diff --git a/scripting/v8_utils.cpp b/scripting/v8_utils.cpp
index bca67bf6a6c..48b86976b7d 100644
--- a/scripting/v8_utils.cpp
+++ b/scripting/v8_utils.cpp
@@ -1,4 +1,19 @@
-// ShellUtils.cpp
+// v8_utils.cpp
+
+/* Copyright 2009 10gen Inc.
+ *
+ * Licensed 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.
+ */
#include "v8_utils.h"
#include <iostream>
diff --git a/scripting/v8_utils.h b/scripting/v8_utils.h
index 5d192fb3025..7b4c2a7788d 100644
--- a/scripting/v8_utils.h
+++ b/scripting/v8_utils.h
@@ -1,5 +1,20 @@
// v8_utils.h
+/* Copyright 2009 10gen Inc.
+ *
+ * Licensed 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.
+ */
+
#pragma once
#include <v8.h>
diff --git a/scripting/v8_wrapper.cpp b/scripting/v8_wrapper.cpp
index 346fcbb4af2..bce4461a0ce 100644
--- a/scripting/v8_wrapper.cpp
+++ b/scripting/v8_wrapper.cpp
@@ -1,5 +1,20 @@
// v8_wrapper.cpp
+/* Copyright 2009 10gen Inc.
+ *
+ * Licensed 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.
+ */
+
#include "v8_wrapper.h"
#include "v8_utils.h"
diff --git a/scripting/v8_wrapper.h b/scripting/v8_wrapper.h
index fd4406036dd..e2dc15e9e46 100644
--- a/scripting/v8_wrapper.h
+++ b/scripting/v8_wrapper.h
@@ -1,5 +1,20 @@
// v8_wrapper.h
+/* Copyright 2009 10gen Inc.
+ *
+ * Licensed 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.
+ */
+
#pragma once
#include <v8.h>