每当我尝试使用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(以防万一我离开了)
我正在使用Mac OS 10.6.8和最新的Java。 default.properties具有所有默认值。 我试过改变
tool.yuicompressor = yuicompressor-2.4.7.jar
到
tool.yuicompressor = closure-compiler-v1346.jar
但同样一直在发生。一个新的safasg.js文件在/ publish / js /中,但它是空白的(实际上是2行os空格)
我不知道如何解决这个问题
答案 0 :(得分:1)
在这一行:
<!-- end scripts-->
's'和' - &gt;'之间应该有一个空格部分:
<!-- end scripts -->