1

My first problem was that, though the documentation warned the JDK was required, and though I set the bin directory to that of the JDK, tools.jar was being searched for in the JRE folder. This made no sense, but I copied the tools.jar file over and it got past that problem. The next problem I had was the build script failing due to a failure to find a main.css file. I'm on a Windows 7 machine, and this is what I did to attempt the build:

  1. Downloaded WinAnt v7 and installed it, specifying the jdk1.7.0_04/bin folder when asked for a Java directory.
  2. Downloaded and unpacked a brand new package from HTML5Boilerplate, keeping the extra comments and such.
  3. Downloaded the build project, unpacked it, and dropped its contents into a build folder at the root of the HTML5Boilerplate folder.
  4. Opened a command prompt, navigated to the build directory, and ran the ant command.

The only thing I could think of that was causing the JDK/JRE problem was that this is a 64-bit system. That's just a guess, but the copied file worked OK for now.

This process performs some of the work without complaint, creating intermediate and publish directories, but then fails out, saying that it can't find a main.css file to copy. I want to stress that I didn't make any modifications at all to the files, so I'm confused as to why the build script can't find a file I didn't remove or rename. In the config/default.properties file of the build folder, on lines 74 and 80, it hard-codes main.js and main.css as file names used. I'm not sure if those are supposed to be dynamically generated, or if they must be manually created and included in the project for the build script to run. If so, why doesn't the default structure downloaded from the website have them? If they're dynamically created, I need advice on what is going wrong.

I'd really like to get this up and running so I can get started using HTML5Boilerplate, but I'm a little lost here.

-edit

After renaming the styles.css file to main.css, the build completed correctly, but the resulting files aren't correct. I read that the script would update the html file references to css and javascript files, but it didn't. For instance, I ended up with e68668b.css after the script ran, but the html file still referenced styles.css. Same for the javascript file. Help!

4

1 回答 1

1

我发现了问题。构建脚本现在是一个单独的项目,我从 github 下载。我从 HTML5Boilerplate 网站下载了 HTML5Boilerplate zip 文件,不幸的是它仍然具有旧的文件夹结构。我去了 github 并在那里下载了 HTML5Boilerplate 模板,这有所作为。

HTML5Boilerplate网站的链接指向github的3.0.2版本

github 的链接指向版本 3.0.2-69

这就是她写的全部内容。在这两个版本之间,一些文件的名称以及一些文件夹结构发生了变化,并且我下载的构建脚本引用了最新的结构。

于 2012-07-10T17:50:54.217 回答