Updated Branches:
  refs/heads/master 4233391da -> acda8049c

added files from org.apache.core.file name space & updated config


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/acda8049
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/acda8049
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/acda8049

Branch: refs/heads/master
Commit: acda8049cad222d304f7a43334d43018aeb277d1
Parents: 4233391
Author: hermwong <[email protected]>
Authored: Wed Jul 10 15:38:25 2013 -0700
Committer: hermwong <[email protected]>
Committed: Wed Jul 10 15:38:25 2013 -0700

----------------------------------------------------------------------
 plugin.xml                                      |  5 ++++
 src/android/EncodingException.java              | 28 +++++++++++++++++++
 src/android/FileExistsException.java            | 28 +++++++++++++++++++
 src/android/FileUtils.java                      |  6 +---
 src/android/InvalidModificationException.java   | 29 ++++++++++++++++++++
 src/android/NoModificationAllowedException.java | 28 +++++++++++++++++++
 src/android/TypeMismatchException.java          | 29 ++++++++++++++++++++
 7 files changed, 148 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/acda8049/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 8cacd49..bd76ef2 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -85,6 +85,11 @@
             <uses-permission 
android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
         </config-file>
 
+        <source-file src="src/android/EncodingException.java" 
target-dir="src/org/apache/cordova/core" />
+        <source-file src="src/android/FileExistsException.java" 
target-dir="src/org/apache/cordova/core" />
+        <source-file src="src/android/InvalidModificationException.java" 
target-dir="src/org/apache/cordova/core" />
+        <source-file src="src/android/NoModificationAllowedException.java" 
target-dir="src/org/apache/cordova/core" />
+        <source-file src="src/android/TypeMismatchException.java" 
target-dir="src/org/apache/cordova/core" />
         <source-file src="src/android/FileUtils.java" 
target-dir="src/org/apache/cordova/core" />
     </platform>
     

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/acda8049/src/android/EncodingException.java
----------------------------------------------------------------------
diff --git a/src/android/EncodingException.java 
b/src/android/EncodingException.java
new file mode 100644
index 0000000..a32e18e
--- /dev/null
+++ b/src/android/EncodingException.java
@@ -0,0 +1,28 @@
+/*
+       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.cordova.file;
+
+public class EncodingException extends Exception {
+
+    public EncodingException(String message) {
+        super(message);
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/acda8049/src/android/FileExistsException.java
----------------------------------------------------------------------
diff --git a/src/android/FileExistsException.java 
b/src/android/FileExistsException.java
new file mode 100644
index 0000000..18aa7ea
--- /dev/null
+++ b/src/android/FileExistsException.java
@@ -0,0 +1,28 @@
+/*
+       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.cordova.file;
+
+public class FileExistsException extends Exception {
+
+    public FileExistsException(String msg) {
+        super(msg);
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/acda8049/src/android/FileUtils.java
----------------------------------------------------------------------
diff --git a/src/android/FileUtils.java b/src/android/FileUtils.java
index 23d15b0..8c8f513 100755
--- a/src/android/FileUtils.java
+++ b/src/android/FileUtils.java
@@ -30,11 +30,7 @@ import org.apache.cordova.CordovaPlugin;
 import org.apache.cordova.PluginResult;
 import org.apache.cordova.DirectoryManager;
 import org.apache.cordova.FileHelper;
-import org.apache.cordova.file.EncodingException;
-import org.apache.cordova.file.FileExistsException;
-import org.apache.cordova.file.InvalidModificationException;
-import org.apache.cordova.file.NoModificationAllowedException;
-import org.apache.cordova.file.TypeMismatchException;
+
 import org.json.JSONArray;
 import org.json.JSONException;
 import org.json.JSONObject;

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/acda8049/src/android/InvalidModificationException.java
----------------------------------------------------------------------
diff --git a/src/android/InvalidModificationException.java 
b/src/android/InvalidModificationException.java
new file mode 100644
index 0000000..aebab4d
--- /dev/null
+++ b/src/android/InvalidModificationException.java
@@ -0,0 +1,29 @@
+/*
+       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.cordova.file;
+
+public class InvalidModificationException extends Exception {
+
+    public InvalidModificationException(String message) {
+        super(message);
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/acda8049/src/android/NoModificationAllowedException.java
----------------------------------------------------------------------
diff --git a/src/android/NoModificationAllowedException.java 
b/src/android/NoModificationAllowedException.java
new file mode 100644
index 0000000..8cae115
--- /dev/null
+++ b/src/android/NoModificationAllowedException.java
@@ -0,0 +1,28 @@
+/*
+       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.cordova.file;
+
+public class NoModificationAllowedException extends Exception {
+
+    public NoModificationAllowedException(String message) {
+        super(message);
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/acda8049/src/android/TypeMismatchException.java
----------------------------------------------------------------------
diff --git a/src/android/TypeMismatchException.java 
b/src/android/TypeMismatchException.java
new file mode 100644
index 0000000..0ea5993
--- /dev/null
+++ b/src/android/TypeMismatchException.java
@@ -0,0 +1,29 @@
+/*
+       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.cordova.file;
+
+public class TypeMismatchException extends Exception {
+
+    public TypeMismatchException(String message) {
+        super(message);
+    }
+
+}

Reply via email to