Github user martincgg commented on the pull request:
https://github.com/apache/cordova-mobile-spec/pull/63#issuecomment-42857438
@shazron it's the same problem.
I've contributed with createmobilespec.js and I've faced this problem with
blackberry10.
This is what happens when this path (this fix):
"blackberry10" : { "uri" : top_dir + "cordova-blackberry" + path.sep +
"blackberry10" }
it's set in config.json.
Output:
Adding Platform: blackberry10
Checking if platform "blackberry10" passes minimum requirements...
Creating blackberry10 project...
Running command: cmd /s /c
C:\Users\Administrator\testMB\cordova-blackberry\blackberry10\blackberry10\bin\create
C:\Users\Administrator\testMB\mobilespec\platforms\blackberry10
org.apache.mobilespec mobilespec
The system cannot find the path specified.
Command finished with error code 1: cmd
/s,/c,C:\Users\Administrator\testMB\cordova-blackberry\blackberry10\blackberry10\bin\create,C:\Users\Administrator\testMB\mobilespec\platforms\blackberry10,org.apache.mobilespec,mobilespec
Error: cmd: Command failed with exit code 1
at ChildProcess.whenDone
(C:\Users\Administrator\testMB\cordova-cli\src\supe
rspawn.js:126:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:753:16)
at Process.ChildProcess._handle.onexit (child_process.js:820:5)
The problem is that the blackberry10_parser.js it doesn't look for the
subdirectory 'blackberry10' under cordova-blackberry.
Then later when it tries to create the project it's not gonna pass through
here:
https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/cordova/lazy_load.js#L63
Because lazy_loads.js it looks for the subdirectory under cordova-blackberry
Result if you set this path: "blackberry10" : { "uri" : top_dir +
"cordova-blackberry" + path.sep + "blackberry10" }
At project creation lazy_loads.js it will try to set the custom library as:
cordova-blackberry\blackberry10\blackberry10\
The blackberry10_parser.js it makes fail the requirements check because it
doesn't look for 'blackberry10' folder under cordova-blackberry.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---