好的,我有一个 .sh 构建文件,我试图在 Eclipse 中运行项目时将其添加到构建过程中。
在 .sh 文件中,我所拥有的是:
mvn process-classes
这是我尝试构建它时返回的内容:
Buildfile: /home/samuel/Dev/workspaces/dauntless-workspace/Dauntless/scripts/instrumentation.sh
BUILD FAILED
/home/samuel/Dev/workspaces/dauntless-workspace/Dauntless/scripts/instrumentation.sh:1: Content is not allowed in prolog.
Total time: 59 milliseconds
构建配置的屏幕截图:
感谢您的宝贵时间, 塞缪尔·史密斯
最佳答案
Ant 文件是 XML。您也许可以将脚本添加为外部工具(它是“调试”和“运行”旁边的按钮),然后将其作为构建器添加到您的项目中。
关于Java Ant 生成器 - "Content is not allowed in prolog.".sh,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21148916/