sito per le richieste......
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.

47 righe
1.3 KiB

<?xml version="1.0"?>
<!DOCTYPE project>
<project name="hooks" basedir="." default="deploy">
<import file="../build-common-plugins.xml" />
<target name="create">
<if>
<or>
<not>
<isset property="hook.display.name" />
</not>
<not>
<isset property="hook.name" />
</not>
</or>
<then>
<fail>This task must be called by the create script.</fail>
</then>
</if>
<property name="hook.parent.dir" value="${user.dir}" />
<property name="hook.dir" value="${hook.parent.dir}/${hook.name}-hook" />
<if>
<available file="${hook.dir}" />
<then>
<fail>${hook.name}-hook already exists.</fail>
</then>
</if>
<copy todir="${hook.dir}">
<fileset
dir="${sdk.dir}/tools/templates/hook_tmpl"
/>
</copy>
<replace dir="${hook.dir}">
<replacefilter token="@app.server.tomcat.manager.password@" value="${app.server.tomcat.manager.password}" />
<replacefilter token="@app.server.tomcat.manager.user@" value="${app.server.tomcat.manager.user}" />
<replacefilter token="@hook.display.name@" value="${hook.display.name}" />
<replacefilter token="@hook.name@" value="${hook.name}" />
<replacefilter token="@jmx.remote.port@" value="${jmx.remote.port}" />
<replacefilter token="@plugin.type.dir@" value="${plugin.type.dir}" />
</replace>
</target>
</project>