0

我是蚂蚁新手,但我的期望是 h5bp 中的构建脚本将使用最后修改的信息来确保它只在需要时生成新文件。这不会发生 - 一切似乎都在每次调用ant build. 有什么办法可以防止这种情况发生吗?它是 h5bp 构建脚本的设计功能吗?

当我需要时,我已经将 ftp 扩展project.xml到我的服务器(并且还复制到我的开发服务器),我觉得这非常有用。然而,由于要从publish文件夹中复制的图像具有新的日期,即使未更改,它们每次都被 ftp 上传,这是缓慢且不必要的。FWIW 我在 Windows 7 上运行它(上传到 Linux/Apache 服务器)。

浏览build.xml文件,我看到了很多overwrite设置——大多数是 to"no"和一些 to "yes",所以我想已经做出了一些有意识的决定。感谢理解为什么。

感谢任何建议。

谢谢

阿博

PS 除此之外,构建脚本很棒!

4

2 回答 2

0

So, I think I can answer some of my own question.

The publish (and intermediate) directories are deleted on each build, so the published image files are always regenerated.

Anyone know if there's a reason that the img directory cannot be left in publish and intermediate?

Thanks

于 2012-02-06T11:45:27.570 回答
0

每次您构建一个新版本时,IT 都会从源代码生成一个新版本。留下旧图像只会导致大量不必要的文件。

也许您可以在第一次通过 FTP 传输图像文件时设置一个标志,然后除非特别要求,否则不上传图像?

于 2012-02-13T01:40:57.883 回答