您好,我在设置 Ant BuildScript 时遇到问题 当我运行 ant 时,Java 脚本和 CSS 未压缩,样式表链接未更新为随机数。
在 project.properties 文件中,我使用以下内容。
file.root.stylesheet = screen.css
dir.js = includes/js
dir.js.main = ${dir.js}
#build.css.scss = true
dir.css = css
构建 sass 已关闭,因为它已经由 compass 编译
我试图通过将这一行放在 js 脚本周围来拥有一个 js 文件
<!-- //-beg- concat_js -->
<script src="includes/js/script1.js"></script>
<script src="includes/js/script2.js"></script>
<!-- //-end- concat_js -->
我使用的文件夹结构如下:
- css/
- 图片/
- 包括/sass
- 基础.scc,屏幕.scss
- 包括/js
- 包括/file.php
我收到以下错误
-js.all.minify:
[echo] Minifying scripts
[copy] Copying 4 files to c:\projectfolder\intermediate\includes\js
[apply] c:\projectfolder\includes\js\plugins.js:86: ERROR - Parse error. IE8 (and below) will parse trailing commas in array and object literals incorrectly. If you are targeting newer
versions of JS, set the appropriate language_in option.
[apply] firstName : "required",
[apply] ^
[apply]
[apply] 1 error(s), 0 warning(s)
[apply] Result: 1
-js.main.concat:
[echo] Concatenating Main JS scripts based on index.html...
[exec] Result: 1
[concat] c:\projectfolder\intermediate\Exception does not exist.
[concat] c:\projectfolder\intermediate\in does not exist.
[concat] c:\projectfolder\intermediate\thread does not exist.
[concat] c:\projectfolder\intermediate\"main" does not exist.
[concat] c:\projectfolder\intermediate\java.io.FileNotFoundException: does not exist.
[concat] c:\projectfolder\intermediate\index.html does not exist.
[concat] c:\projectfolder\intermediate\(Het does not exist.
[concat] c:\projectfolder\intermediate\systeem does not exist.
[concat] c:\projectfolder\intermediate\kan does not exist.
[concat] c:\projectfolder\intermediate\het does not exist.
[concat] c:\projectfolder\intermediate\opgegeven does not exist.
[concat] c:\projectfolder\intermediate\bestand does not exist.
[concat] c:\projectfolder\intermediate\niet does not exist.
[concat] c:\projectfolder\intermediate\vinden) does not exist.
[concat] c:\projectfolder\intermediate\at does not exist.
[concat] c:\projectfolder\intermediate\java.io.FileInputStream.open(Native does not exist.
[concat] c:\projectfolder\intermediate\Method) does not exist.
[concat] c:\projectfolder\intermediate\at does not exist.
[concat] c:\projectfolder\intermediate\java.io.FileInputStream.<init>(FileInputStream.java:138) does not exist.
[concat] c:\projectfolder\intermediate\at does not exist.
[concat] c:\projectfolder\intermediate\java.io.FileInputStream.<init>(FileInputStream.java:97) does not exist.
[concat] c:\projectfolder\intermediate\at does not exist.
[concat] c:\projectfolder\intermediate\java.io.FileReader.<init>(FileReader.java:58) does not exist.
[concat] c:\projectfolder\intermediate\at does not exist.
[concat] c:\projectfolder\intermediate\FindAttribute.main(Unknown does not exist.
[concat] c:\projectfolder\intermediate\Source) does not exist.
我在我的 jsfiddle 帐户 http://jsfiddle.net/piggybattery/bpxBM/1/中放置了完整的错误日志
有谁知道如何链接到这个结构?