|
发表于 2017-1-8 16:51:31
|
显示全部楼层
<!-- 生成cordova源代码相关任务 -->
<target name="genSource" depends="prepareGenSource, checkWWW, copySourceTemplate, copySource, copyWWW, updateProject, addPlugins, createNewSrcProject" description="生成源代码" />
<target name="checkWWW">
<condition property="wwwExists">
<and>
<not>
<equals arg1="${mode}" arg2="4" />
</not>
<available file="${targetDir}/www" />
</and>
</condition>
<condition property="indexExists">
<or>
<or>
<equals arg1="${mode}" arg2="3" />
<equals arg1="${mode}" arg2="4" />
</or>
<available file="${targetDir}/www${webPath}/index.html" />
</or>
</condition>
<fail unless="indexExists" message="入口文件index.html不存在。请检查是否选择了需要发布的UI资源,并在生成App包时选择了“重新编译使用到的UI资源”" />
</target> |
|