You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2014/01/17 00:01:53 UTC

[4/6] git commit: One more case : default classpath + command alias, ex Console=>WPCordovaClassLib.Cordova.Commands + 'DebugConsole'

One more case : default classpath + command alias, ex Console=>WPCordovaClassLib.Cordova.Commands + 'DebugConsole'


Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/6b3c6e2b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/6b3c6e2b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/6b3c6e2b

Branch: refs/heads/master
Commit: 6b3c6e2bbf76bb7093b3489ba759e5199d40b3cd
Parents: 7c86b30
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Thu Jan 16 14:33:31 2014 -0800
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Thu Jan 16 14:33:31 2014 -0800

----------------------------------------------------------------------
 wp8/template/cordovalib/CommandFactory.cs | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/6b3c6e2b/wp8/template/cordovalib/CommandFactory.cs
----------------------------------------------------------------------
diff --git a/wp8/template/cordovalib/CommandFactory.cs b/wp8/template/cordovalib/CommandFactory.cs
index aedd3a4..4bd5a09 100644
--- a/wp8/template/cordovalib/CommandFactory.cs
+++ b/wp8/template/cordovalib/CommandFactory.cs
@@ -73,6 +73,11 @@ namespace WPCordovaClassLib.Cordova
 
                     if (t == null)
                     {
+                        t = Type.GetType(BaseCommandNamespacePrefix + alias);
+                    }
+
+                    if (t == null)
+                    {
                         t = Type.GetType(alias + "." + service);
                     }
                 }