每次我尝试使用 HTML5 Build Script 时都会出现以下错误:
-js.main.concat:
[echo] Concatenating Main JS scripts based on index.html...
[concat] /Volumes/[...]/intermediate/java.lang.NullPointerException does not exist.
[concat] /Volumes/[...]/intermediate/at does not exist.
[concat] /Volumes/[...]/intermediate/ScriptsToConcat.handleStartTag(ScriptsToConcat.java:38) does not exist.
[concat] /Volumes/[...]/intermediate/at does not exist.
[concat] /Volumes/[...]/intermediate/javax.swing.text.html.parser.DocumentParser.handleStartTag(DocumentParser.java:143) does not exist.
[concat] /Volumes/[...]/intermediate/at does not exist.
[concat] /Volumes/[...]/intermediate/javax.swing.text.html.parser.Parser.startTag(Parser.java:421) does not exist.
[concat] /Volumes/[...]/intermediate/at does not exist.
[concat] /Volumes/[...]/intermediate/javax.swing.text.html.parser.Parser.parseTag(Parser.java:1943) does not exist.
[concat] /Volumes/[...]/intermediate/at does not exist.
[concat] /Volumes/[...]/intermediate/javax.swing.text.html.parser.Parser.parseContent(Parser.java:2061) does not exist.
[concat] /Volumes/[...]/intermediate/at does not exist.
[concat] /Volumes/[...]/intermediate/javax.swing.text.html.parser.Parser.parse(Parser.java:2228) does not exist.
[concat] /Volumes/[...]/intermediate/at does not exist.
[concat] /Volumes/[...]/intermediate/javax.swing.text.html.parser.DocumentParser.parse(DocumentParser.java:105) does not exist.
[concat] /Volumes/[...]/intermediate/at does not exist.
[concat] /Volumes/[...]/intermediate/javax.swing.text.html.parser.ParserDelegator.parse(ParserDelegator.java:84) does not exist.
[concat] /Volumes/[...]/intermediate/at does not exist.
[concat] /Volumes/[...]/intermediate/ScriptsToConcat.main(ScriptsToConcat.java:50) does not exist.
(“[...]”是为了不显示我的客户的名字,路线还可以)
我正在使用最新的 h5bp 构建脚本并运行“ant build”
我在 html 中有以下内容:
<!-- scripts concatenated and minified via build script -->
<script src="js/plugins.js"></script>
<!-- end scripts-->
在“js”文件夹中,我有一个 12k plugins.js 和一个空白的 scripts.js(以防万一我离开它)
我正在使用带有最新 Java 的 Mac OS 10.6.8。default.properties 具有所有默认值。我试着改变
tool.yuicompressor = yuicompressor-2.4.7.jar
至
tool.yuicompressor = closure-compiler-v1346.jar
但同样的事情一直在发生。一个新的 safasg.js 文件在 /publish/js/ 中,但它是空白的(实际上是 2 行 os 空格)
我不知道如何解决这个问题