js构建器文件未找到异常
我尝试运行 JSBuilder 脚本(*.bat 文件):
"java.exe" -jar JSBuilder2.jar --projectFile "script_name.jsb2" --homeDir "C:\Users\Tomasz\Desktop" --verbose
在 script_name.jsb2 中我得到:
{
"projectName": "Name",
"deployDir": "\\Name\\Deploy",
"licenseText": "licence",
"pkgs": [{
"name": "Name",
"file": "Name.js",
"isDebug": true,
"fileIncludes": [ {
"text": "file1.js",
"path": "\\Name\\"
},{
"text": "file2.js",
"path": "\\Name\\"
}]
}],
"resources": []
}
并且我得到错误:
java.io.FileNotFoundException: null\Name\file1.js
我找不到 null
是如何来自的?文件和文件夹(homeDir)现有,-这是Windows 7,在不同的(XP)类似脚本上没有这样的问题...
我缺少什么?
I try to run JSBuilder script (*.bat file):
"java.exe" -jar JSBuilder2.jar --projectFile "script_name.jsb2" --homeDir "C:\Users\Tomasz\Desktop" --verbose
in script_name.jsb2 I got:
{
"projectName": "Name",
"deployDir": "\\Name\\Deploy",
"licenseText": "licence",
"pkgs": [{
"name": "Name",
"file": "Name.js",
"isDebug": true,
"fileIncludes": [ {
"text": "file1.js",
"path": "\\Name\\"
},{
"text": "file2.js",
"path": "\\Name\\"
}]
}],
"resources": []
}
and I got error:
java.io.FileNotFoundException: null\Name\file1.js
I can not find how null
is coming from ? files and folders (homeDir) existing, - this is Windows 7, on different one (XP) similar script has no such problems...
What I am missing ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 *.bat 文件参数
--projectFile
中,应提供完整路径,如c:\....
,这会有所不同In *.bat file parameter
--projectFile
should be provided with full path likec:\....
it make the difference