You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Svetoslav Marinov (JIRA)" <ji...@apache.org> on 2013/02/22 20:56:12 UTC

[jira] [Created] (CB-2529) Create script fails on Windows at last step: .....phonegap-2.4.0\lib\android\bin\create.js(31, 5) Microsof t JScript runtime error: Path not found

Svetoslav Marinov created CB-2529:
-------------------------------------

             Summary: Create script fails on Windows at last step: .....phonegap-2.4.0\lib\android\bin\create.js(31, 5) Microsof t JScript runtime error: Path not found
                 Key: CB-2529
                 URL: https://issues.apache.org/jira/browse/CB-2529
             Project: Apache Cordova
          Issue Type: Bug
    Affects Versions: 2.4.0
         Environment: Windows 8 64bit
            Reporter: Svetoslav Marinov
            Priority: Blocker


C:\Users\User\Downloads\phonegap-2.4.0\lib\android\bin>create \Users\User\worksp
ace\LearnBGDaily com.orbisius.mobile.learnbgdaily LearnBGDaily
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Creating new android project...
Copying template files...
Copying js, jar & config.xml files...
Copying cordova command tools...
Updating AndroidManifest.xml and Main Activity...
C:\Users\User\Downloads\phonegap-2.4.0\lib\android\bin\create.js(31, 5) Microsof
t JScript runtime error: Path not found

Here is the fix

Add the following fix lines after line 158 of create.js.
That's right after: var PACKAGE_AS_PATH=PACKAGE.replace(/\./g, '\\');
 
-------------------- fix ----------------------
var ACTIVITY_DIR=PROJECT_PATH + '\\src\\' + PACKAGE_AS_PATH;
exec('%comspec% /c mkdir ' + ACTIVITY_DIR);
-------------------- /fix ----------------------

Credit: http://groups.google.com/group/phonegap/tree/browse_frm/month/2013-01/8958eef075e72a73?rnum=131&lnk=ol&pli=1


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira