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.

105 righe
2.6 KiB

2 anni fa
<?xml version="1.0"?>
<!DOCTYPE project>
<project name="build-common-plugins" xmlns:antelope="antlib:ise.antelope.tasks">
<import file="build-common.xml" />
<import file="build-common-plugins-inspector.xml" />
<path id="plugins.includes.path">
<dirset dir="." excludes="${plugins.excludes}" includes="${plugins.includes}" />
</path>
<pathconvert pathsep="," property="plugins.includes.path" refid="plugins.includes.path" targetos="unix" />
<if>
<equals arg1="${basedir}" arg2="${user.dir}" />
<then>
<property name="plugin.type.dir" value=".." />
</then>
<else>
<property name="plugin.type.dir" value="${basedir}" />
</else>
</if>
<target name="build-service">
<for param="service.file">
<path>
<fileset
dir="."
includes="**/service.xml"
/>
</path>
<sequential>
<antelope:stringutil string="@{service.file}" property="service.file.index">
<antelope:indexof string="docroot" fromindex="0" />
</antelope:stringutil>
<if>
<equals arg1="${service.file.index}" arg2="-1" />
<then>
<antelope:stringutil string="@{service.file}" property="service.file.index">
<antelope:indexof string="service.xml" fromindex="0" />
</antelope:stringutil>
</then>
</if>
<antelope:stringutil string="@{service.file}" property="portlet.dir">
<antelope:substring beginindex="0" endindex="${service.file.index}" />
</antelope:stringutil>
<if>
<available file="${portlet.dir}/build.xml" />
<then>
<ant dir="${portlet.dir}" target="build-service" inheritAll="false" />
</then>
</if>
</sequential>
</for>
</target>
<target name="install">
<multiroot-subant
build.file="build.xml"
excludes="${plugins.excludes}"
includes="${plugins.includes}"
root.dir="${basedir}"
target="install"
/>
</target>
<target name="setup-eclipse">
<multiroot-subant
build.file="build.xml"
excludes="${plugins.excludes}"
includes="${plugins.includes}"
root.dir="${basedir}"
target="setup-eclipse"
/>
</target>
<target name="test-class-group">
<multiroot-subant
build.file="build.xml"
excludes="${plugins.excludes}"
includes="${plugins.includes}"
root.dir="${basedir}"
target="test-class-group"
>
<properties>
<propertyset>
<propertyref name="test.type" />
</propertyset>
</properties>
</multiroot-subant>
</target>
<target name="test-package">
<multiroot-subant
build.file="build.xml"
excludes="${plugins.excludes}"
includes="${plugins.includes}"
root.dir="${basedir}"
target="test-package"
/>
</target>
</project>