[
https://issues.apache.org/jira/browse/CB-5438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13827481#comment-13827481
]
qi commented on CB-5438:
------------------------
I just realized the two files, lib/test/androidexec.js, and lib/test/iosexec.js
were linux symbolic links. It's obvious can't work on Windows.
I had a simple workaround, take the relative path from above two links
(actually they're text files), resolve the path, then get content from the real
path, finally it works. But the jshint was still complaining, I had to run
'grunt test --force" to get tests ran.
> Can't buil/tes cordova-js on Windows
> ------------------------------------
>
> Key: CB-5438
> URL: https://issues.apache.org/jira/browse/CB-5438
> Project: Apache Cordova
> Issue Type: Bug
> Components: CordovaJS
> Affects Versions: Master
> Environment: Windows 8 x64
> Node v0.10.13
> Reporter: qi
> Priority: Critical
>
> Simply run 'grunt build', got,
> Running "jshint:src" (jshint) task
> Linting lib/test/androidexec.js ...ERROR
> [L1:C1] E030: Expected an identifier and instead saw '.'.
> ../android/exec.js
> [L1:C2] E033: Expected an operator and instead saw '.'.
> ../android/exec.js
> [L1:C3] E033: Expected an operator and instead saw '/'.
> ../android/exec.js
> [L1:C4] W033: Missing semicolon.
> ../android/exec.js
> [L1:C4] W015: Expected 'android' to have an indentation at 1 instead at 4.
> ../android/exec.js
> [L1:C19] W033: Missing semicolon.
> ../android/exec.js
> [L1:C4] W117: 'android' is not defined.
> ../android/exec.js
> [L1:C12] W117: 'exec' is not defined.
> ../android/exec.js
> Linting lib/test/iosexec.js ...ERROR
> [L1:C1] E030: Expected an identifier and instead saw '.'.
> ../ios/exec.js
> [L1:C2] E033: Expected an operator and instead saw '.'.
> ../ios/exec.js
> [L1:C3] E033: Expected an operator and instead saw '/'.
> ../ios/exec.js
> [L1:C4] W033: Missing semicolon.
> ../ios/exec.js
> [L1:C4] W015: Expected 'ios' to have an indentation at 1 instead at 4.
> ../ios/exec.js
> [L1:C15] W033: Missing semicolon.
> ../ios/exec.js
> [L1:C4] W117: 'ios' is not defined.
> ../ios/exec.js
> [L1:C8] W117: 'exec' is not defined.
> ../ios/exec.js
> Warning: Task "jshint:src" failed. Use --force to continue.
--
This message was sent by Atlassian JIRA
(v6.1#6144)