You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2013/10/28 23:12:29 UTC

[1/5] git commit: [CB-5010] Incremented plugin version on dev branch.

Updated Branches:
  refs/heads/master 27288cd5c -> cfdb4ed4e


[CB-5010] Incremented plugin version on dev branch.


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/a1a2cc78
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/a1a2cc78
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/a1a2cc78

Branch: refs/heads/master
Commit: a1a2cc786ec1bc1a6d50a6fd2375b630dd66a409
Parents: 27288cd
Author: Steven Gill <st...@gmail.com>
Authored: Wed Oct 9 16:05:58 2013 -0700
Committer: Steven Gill <st...@gmail.com>
Committed: Wed Oct 9 16:05:58 2013 -0700

----------------------------------------------------------------------
 plugin.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/a1a2cc78/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 8e72e15..42acea4 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -3,7 +3,7 @@
 <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
 xmlns:android="http://schemas.android.com/apk/res/android"
            id="org.apache.cordova.file"
-      version="0.2.4">
+      version="0.2.5-dev">
     <name>File</name>
     <description>Cordova File Plugin</description>
     <license>Apache 2.0</license>


[3/5] git commit: CB-5128: added repo + issue tag to plugin.xml for file plugin

Posted by st...@apache.org.
CB-5128: added repo + issue tag to plugin.xml for file plugin


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/5ff5b803
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/5ff5b803
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/5ff5b803

Branch: refs/heads/master
Commit: 5ff5b80384924441c58789d8108b47875f9cece6
Parents: ada89a6
Author: hermwong <he...@gmail.com>
Authored: Tue Oct 22 13:12:08 2013 -0700
Committer: hermwong <he...@gmail.com>
Committed: Tue Oct 22 13:12:08 2013 -0700

----------------------------------------------------------------------
 plugin.xml | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/5ff5b803/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 42acea4..5b6cded 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -8,6 +8,8 @@ xmlns:android="http://schemas.android.com/apk/res/android"
     <description>Cordova File Plugin</description>
     <license>Apache 2.0</license>
     <keywords>cordova,file</keywords>
+    <repo>https://git-wip-us.apache.org/repos/asf/cordova-plugin-file.git</repo>
+    <issue>https://issues.apache.org/jira/browse/CB/component/12320651</issue>
 
     <js-module src="www/DirectoryEntry.js" name="DirectoryEntry">
         <clobbers target="window.DirectoryEntry" />


[2/5] git commit: CB-5015 [BlackBerry10] Add missing dependency for File.slice

Posted by st...@apache.org.
CB-5015 [BlackBerry10] Add missing dependency for File.slice


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/ada89a67
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/ada89a67
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/ada89a67

Branch: refs/heads/master
Commit: ada89a6753c738e91424f111fa78a7775ce8c35f
Parents: a1a2cc7
Author: Bryan Higgins <bh...@blackberry.com>
Authored: Wed Oct 16 08:35:29 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Wed Oct 16 08:35:29 2013 -0400

----------------------------------------------------------------------
 www/blackberry10/File.js | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/ada89a67/www/blackberry10/File.js
----------------------------------------------------------------------
diff --git a/www/blackberry10/File.js b/www/blackberry10/File.js
index 0ed39fd..7ba9734 100644
--- a/www/blackberry10/File.js
+++ b/www/blackberry10/File.js
@@ -19,6 +19,8 @@
  *
 */
 
+var fileUtils = require('./BB10Utils');
+
 /**
  * Constructor.
  * name {DOMString} name of the file, without path information


[5/5] git commit: [CB-5188] Updated version and RELEASENOTES.md for release 0.2.5

Posted by st...@apache.org.
[CB-5188] Updated version and RELEASENOTES.md for release 0.2.5


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/cfdb4ed4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/cfdb4ed4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/cfdb4ed4

Branch: refs/heads/master
Commit: cfdb4ed4ed8dfadfdb82c9a720cbdd048428a6f5
Parents: 1c02245
Author: Steven Gill <st...@gmail.com>
Authored: Mon Oct 28 11:47:10 2013 -0700
Committer: Steven Gill <st...@gmail.com>
Committed: Mon Oct 28 11:47:10 2013 -0700

----------------------------------------------------------------------
 RELEASENOTES.md | 6 ++++++
 plugin.xml      | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/cfdb4ed4/RELEASENOTES.md
----------------------------------------------------------------------
diff --git a/RELEASENOTES.md b/RELEASENOTES.md
index 5a06f4e..2fd1c95 100644
--- a/RELEASENOTES.md
+++ b/RELEASENOTES.md
@@ -43,3 +43,9 @@
 * CB-5020 - File plugin should execute on a separate thread
 * [CB-4915] Incremented plugin version on dev branch.
 * CB-4504: Updating FileUtils.java to compensate for Java porting failures in the Android SDK. This fails because Java knows nothing about android_asset not being an actual filesystem
+
+ ### 0.2.5 (Oct 28, 2013)
+* CB-5129: Add a consistent filesystem attribute to FileEntry and DirectoryEntry objects
+* CB-5128: added repo + issue tag to plugin.xml for file plugin
+* CB-5015 [BlackBerry10] Add missing dependency for File.slice
+* [CB-5010] Incremented plugin version on dev branch.

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/cfdb4ed4/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 5b6cded..24f538d 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -3,7 +3,7 @@
 <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
 xmlns:android="http://schemas.android.com/apk/res/android"
            id="org.apache.cordova.file"
-      version="0.2.5-dev">
+      version="0.2.5">
     <name>File</name>
     <description>Cordova File Plugin</description>
     <license>Apache 2.0</license>


[4/5] git commit: CB-5129: Add a consistent filesystem attribute to FileEntry and DirectoryEntry objects

Posted by st...@apache.org.
CB-5129: Add a consistent filesystem attribute to FileEntry and DirectoryEntry objects


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/1c022459
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/1c022459
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/1c022459

Branch: refs/heads/master
Commit: 1c022459c6ac71a8b5bfb479b063278292a78e04
Parents: 5ff5b80
Author: Ian Clelland <ic...@chromium.org>
Authored: Tue Oct 22 14:45:37 2013 -0400
Committer: Ian Clelland <ic...@chromium.org>
Committed: Wed Oct 23 11:50:39 2013 -0400

----------------------------------------------------------------------
 www/DirectoryEntry.js | 12 +++++++-----
 www/Entry.js          | 10 +++++++---
 www/FileEntry.js      |  4 ++--
 www/FileSystem.js     |  2 +-
 4 files changed, 17 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/1c022459/www/DirectoryEntry.js
----------------------------------------------------------------------
diff --git a/www/DirectoryEntry.js b/www/DirectoryEntry.js
index 9e55adf..053ef9a 100644
--- a/www/DirectoryEntry.js
+++ b/www/DirectoryEntry.js
@@ -33,10 +33,10 @@ var argscheck = require('cordova/argscheck'),
  * {boolean} isDirectory always true (readonly)
  * {DOMString} name of the directory, excluding the path leading to it (readonly)
  * {DOMString} fullPath the absolute full path to the directory (readonly)
- * TODO: implement this!!! {FileSystem} filesystem on which the directory resides (readonly)
+ * {FileSystem} filesystem on which the directory resides (readonly)
  */
-var DirectoryEntry = function(name, fullPath) {
-     DirectoryEntry.__super__.constructor.call(this, false, true, name, fullPath);
+var DirectoryEntry = function(name, fullPath, fileSystem) {
+     DirectoryEntry.__super__.constructor.call(this, false, true, name, fullPath, fileSystem);
 };
 
 utils.extend(DirectoryEntry, Entry);
@@ -58,8 +58,9 @@ DirectoryEntry.prototype.createReader = function() {
  */
 DirectoryEntry.prototype.getDirectory = function(path, options, successCallback, errorCallback) {
     argscheck.checkArgs('sOFF', 'DirectoryEntry.getDirectory', arguments);
+    var fs = this.filesystem;
     var win = successCallback && function(result) {
-        var entry = new DirectoryEntry(result.name, result.fullPath);
+        var entry = new DirectoryEntry(result.name, result.fullPath, fs);
         successCallback(entry);
     };
     var fail = errorCallback && function(code) {
@@ -92,9 +93,10 @@ DirectoryEntry.prototype.removeRecursively = function(successCallback, errorCall
  */
 DirectoryEntry.prototype.getFile = function(path, options, successCallback, errorCallback) {
     argscheck.checkArgs('sOFF', 'DirectoryEntry.getFile', arguments);
+    var fs = this.filesystem;
     var win = successCallback && function(result) {
         var FileEntry = require('./FileEntry');
-        var entry = new FileEntry(result.name, result.fullPath);
+        var entry = new FileEntry(result.name, result.fullPath, fs);
         successCallback(entry);
     };
     var fail = errorCallback && function(code) {

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/1c022459/www/Entry.js
----------------------------------------------------------------------
diff --git a/www/Entry.js b/www/Entry.js
index 0e1bc02..09afb6f 100644
--- a/www/Entry.js
+++ b/www/Entry.js
@@ -37,6 +37,9 @@ var argscheck = require('cordova/argscheck'),
  * @param fullPath
  *            {DOMString} the absolute full path to the file or directory
  *            (readonly)
+ * @param fileSystem
+ *            {FileSystem} the filesystem on which this entry resides
+ *            (readonly)
  */
 function Entry(isFile, isDirectory, name, fullPath, fileSystem) {
     this.isFile = !!isFile;
@@ -107,7 +110,7 @@ Entry.prototype.moveTo = function(parent, newName, successCallback, errorCallbac
             if (entry) {
                 if (successCallback) {
                     // create appropriate Entry object
-                    var result = (entry.isDirectory) ? new (require('./DirectoryEntry'))(entry.name, entry.fullPath) : new (require('org.apache.cordova.file.FileEntry'))(entry.name, entry.fullPath);
+                    var result = (entry.isDirectory) ? new (require('./DirectoryEntry'))(entry.name, entry.fullPath, entry.filesystem) : new (require('org.apache.cordova.file.FileEntry'))(entry.name, entry.fullPath, entry.filesystem);
                     successCallback(result);
                 }
             }
@@ -148,7 +151,7 @@ Entry.prototype.copyTo = function(parent, newName, successCallback, errorCallbac
             if (entry) {
                 if (successCallback) {
                     // create appropriate Entry object
-                    var result = (entry.isDirectory) ? new (require('./DirectoryEntry'))(entry.name, entry.fullPath) : new (require('org.apache.cordova.file.FileEntry'))(entry.name, entry.fullPath);
+                    var result = (entry.isDirectory) ? new (require('./DirectoryEntry'))(entry.name, entry.fullPath, entry.filesystem) : new (require('org.apache.cordova.file.FileEntry'))(entry.name, entry.fullPath, entry.filesystem);
                     successCallback(result);
                 }
             }
@@ -206,9 +209,10 @@ Entry.prototype.remove = function(successCallback, errorCallback) {
  */
 Entry.prototype.getParent = function(successCallback, errorCallback) {
     argscheck.checkArgs('FF', 'Entry.getParent', arguments);
+    var fs = this.filesystem;
     var win = successCallback && function(result) {
         var DirectoryEntry = require('./DirectoryEntry');
-        var entry = new DirectoryEntry(result.name, result.fullPath);
+        var entry = new DirectoryEntry(result.name, result.fullPath, fs);
         successCallback(entry);
     };
     var fail = errorCallback && function(code) {

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/1c022459/www/FileEntry.js
----------------------------------------------------------------------
diff --git a/www/FileEntry.js b/www/FileEntry.js
index 79064ac..dc9352d 100644
--- a/www/FileEntry.js
+++ b/www/FileEntry.js
@@ -35,8 +35,8 @@ var utils = require('cordova/utils'),
  * {DOMString} fullPath the absolute full path to the file (readonly)
  * {FileSystem} filesystem on which the file resides (readonly)
  */
-var FileEntry = function(name, fullPath) {
-     FileEntry.__super__.constructor.apply(this, [true, false, name, fullPath]);
+var FileEntry = function(name, fullPath, fileSystem) {
+     FileEntry.__super__.constructor.apply(this, [true, false, name, fullPath, fileSystem]);
 };
 
 utils.extend(FileEntry, Entry);

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/1c022459/www/FileSystem.js
----------------------------------------------------------------------
diff --git a/www/FileSystem.js b/www/FileSystem.js
index 030365f..76e3f89 100644
--- a/www/FileSystem.js
+++ b/www/FileSystem.js
@@ -31,7 +31,7 @@ var DirectoryEntry = require('./DirectoryEntry');
 var FileSystem = function(name, root) {
     this.name = name || null;
     if (root) {
-        this.root = new DirectoryEntry(root.name, root.fullPath);
+        this.root = new DirectoryEntry(root.name, root.fullPath, this);
     }
 };