When i try to build to the parent folder with HTML5 Boilerplate build script i get this message:

Your dir.publish folder is set to ../ which could delete your entire site or worse.

Firstly, the build script doesn't delete any files, it just replaces them right? Secondly, "or worse"? It's not like I'm googling google or mixing nitroglycerin here :(

Is there a work around?

EDIT: I deleted this line in build.xml:

<equals arg1="${dir.publish}" arg2="../"/>

It works fine but i feel a bit dirty. Should i?

有帮助吗?

解决方案 2

As stated in the edit. I funked around in the build.xml and deleted this line:

<equals arg1="${dir.publish}" arg2="../"/>

I haven't had any problems yet but use with caution.

其他提示

Haha, I wrote that error message, sorry :( but there is an ant task (clean) in build script which is to delete the publish and intermediate folders. And if you set your publish folder to ../ you can imagine what can happen :)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top