cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [3/7] wp7 commit: [CB-2830] Delete old cordova js on reversion
Date Wed, 27 Mar 2013 23:40:53 GMT
[CB-2830] Delete old cordova js on reversion


Project: http://git-wip-us.apache.org/repos/asf/cordova-wp7/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp7/commit/200958b8
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp7/tree/200958b8
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp7/diff/200958b8

Branch: refs/heads/master
Commit: 200958b81536719a7e6e51ff5dd484b551cbe298
Parents: 0819634
Author: Benn Mapes <benn.mapes@gmail.com>
Authored: Wed Mar 27 13:15:55 2013 -0700
Committer: Benn Mapes <benn.mapes@gmail.com>
Committed: Wed Mar 27 13:36:53 2013 -0700

----------------------------------------------------------------------
 tooling/scripts/reversion.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/200958b8/tooling/scripts/reversion.js
----------------------------------------------------------------------
diff --git a/tooling/scripts/reversion.js b/tooling/scripts/reversion.js
index cbed71b..7e80239 100644
--- a/tooling/scripts/reversion.js
+++ b/tooling/scripts/reversion.js
@@ -245,12 +245,12 @@ function cleanup()
             fso.DeleteFile(BUILD_DESTINATION + FULL_PATH + '\\www\\' + full_www.Item(i).Name);
         }
     }
-    var standalone_www = shell.NameSpace(BUILD_DESTINATION + FULL_PATH + '\\www').Items();
+    var standalone_www = shell.NameSpace(BUILD_DESTINATION + STANDALONE_PATH + '\\www').Items();
     for(var i = 0; i < standalone_www.Count; i++)
     {
         if(standalone_www.Item(i).Name.match(/cordova[-](\d+)[.](\d+)[.](\d+)(rc\d)?[.]js/))
         {
-            fso.DeleteFile(BUILD_DESTINATION + FULL_PATH + '\\www\\' + standalone_www.Item(i).Name);
+            fso.DeleteFile(BUILD_DESTINATION + STANDALONE_PATH + '\\www\\' + standalone_www.Item(i).Name);
         }
     }
 }


Mime
View raw message