Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

44 righe
1.0 KiB

2 anni fa
<?xml version="1.0"?>
<!DOCTYPE project>
<project name="webs" basedir="." default="deploy">
<import file="../build-common-plugins.xml" />
<target name="create">
<if>
<or>
<not>
<isset property="web.display.name" />
</not>
<not>
<isset property="web.name" />
</not>
</or>
<then>
<fail>This task must be called by the create script.</fail>
</then>
</if>
<property name="web.parent.dir" value="${user.dir}" />
<property name="web.dir" value="${web.parent.dir}/${web.name}-web" />
<if>
<available file="${web.dir}" />
<then>
<fail>${web.name}-web already exists.</fail>
</then>
</if>
<copy todir="${web.dir}">
<fileset
dir="${sdk.dir}/tools/templates/web_tmpl"
/>
</copy>
<replace dir="${web.dir}">
<replacefilter token="@plugin.type.dir@" value="${plugin.type.dir}" />
<replacefilter token="@web.display.name@" value="${web.display.name}" />
<replacefilter token="@web.name@" value="${web.name}" />
</replace>
</target>
</project>