尝试在本地复制一些测试并遇到问题。
这是一个基本的脚本。我简单的Gradle任务:
task runJSUnitTests(type:Exec) {
logger.warn('Starting the JS Unit Tests >>>>>>>>>>>>>>>>> ' + )
commandLine 'deploy/scripts/RunJSDTests_win.sh', 'unit', JSTD_SERVER_PORT, PYTHON_SERVER_PORT
}
然后我只有一个空白的RunJSDTests_win.sh脚本:
#!/bin/sh
echo "What's up?"
# TODO: put script back when this error is resolved
exit
但它产生了这个Java错误
Cannot run program "./deploy/scripts/RunJSDTests_win.sh" (in directory "C:\SomeProjectRoot\"): CreateProcess error=193, %1 is not a valid Win32 application
此外,我收到此错误:
No publish configurations specified for project ':' and the default 'archives' configuration does not exist.
如果我在bash提示符下执行java -version,我会得到 java版“1.7.0_55”