cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Svetoslav Marinov (JIRA)" <j...@apache.org>
Subject [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
Date Fri, 22 Feb 2013 19:56:12 GMT
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

Mime
View raw message