--- /dev/null
+<?xml version="1.0"?>\r
+<!DOCTYPE project>\r
+\r
+<project name="build-common-plugins" xmlns:antelope="antlib:ise.antelope.tasks">\r
+ <import file="build-common.xml" />\r
+\r
+ <target name="build-service">\r
+ <for param="service.file">\r
+ <path>\r
+ <fileset\r
+ dir="."\r
+ includes="*/docroot/WEB-INF/service.xml"\r
+ />\r
+ </path>\r
+ <sequential>\r
+ <antelope:stringutil string="@{service.file}" property="service.file.index">\r
+ <antelope:indexof string="docroot" fromindex="0" />\r
+ </antelope:stringutil>\r
+\r
+ <antelope:stringutil string="@{service.file}" property="portlet.dir">\r
+ <antelope:substring beginindex="0" endindex="${service.file.index}" />\r
+ </antelope:stringutil>\r
+\r
+ <ant dir="${portlet.dir}" target="build-service" inheritAll="false" />\r
+ </sequential>\r
+ </for>\r
+ </target>\r
+\r
+ <target name="clean">\r
+ <antcall target="loop-modules">\r
+ <param name="loop.modules.cmd" value="clean-module" />\r
+ </antcall>\r
+ </target>\r
+\r
+ <target name="clean-module">\r
+ <ant dir="${module.name}" target="clean" inheritAll="false" />\r
+ </target>\r
+\r
+ <target name="compile">\r
+ <antcall target="loop-modules">\r
+ <param name="loop.modules.cmd" value="compile-module" />\r
+ </antcall>\r
+ </target>\r
+\r
+ <target name="compile-module">\r
+ <ant dir="${module.name}" target="compile" inheritAll="false" />\r
+ </target>\r
+\r
+ <target name="deploy">\r
+ <antcall target="loop-modules">\r
+ <param name="loop.modules.cmd" value="deploy-module" />\r
+ </antcall>\r
+ </target>\r
+\r
+ <target name="deploy-module">\r
+ <ant dir="${module.name}" target="deploy" inheritAll="false" />\r
+ </target>\r
+\r
+ <target name="jar">\r
+ <antcall target="loop-modules">\r
+ <param name="loop.modules.cmd" value="jar-module" />\r
+ </antcall>\r
+ </target>\r
+\r
+ <target name="jar-module">\r
+ <ant dir="${module.name}" target="jar" inheritAll="false" />\r
+ </target>\r
+\r
+ <target name="loop-modules">\r
+ <if>\r
+ <not>\r
+ <equals arg1="${plugins.includes}" arg2="" />\r
+ </not>\r
+ <then>\r
+ <for param="module.name">\r
+ <path>\r
+ <dirset dir="." excludes="${plugins.excludes}" includes="${plugins.includes}" />\r
+ </path>\r
+ <sequential>\r
+ <antelope:stringutil string="@{module.name}" property="module.name.unix">\r
+ <antelope:replace regex="\\" replacement="/" />\r
+ </antelope:stringutil>\r
+\r
+ <antelope:grep in="${module.name.unix}" regex="(.*/)(.*)" group="2" property="module.name" />\r
+\r
+ <antcall target="${loop.modules.cmd}" />\r
+ </sequential>\r
+ </for>\r
+ </then>\r
+ </if>\r
+ </target>\r
+\r
+ <target name="setup-eclipse">\r
+ <antcall target="loop-modules">\r
+ <param name="loop.modules.cmd" value="setup-eclipse-module" />\r
+ </antcall>\r
+ </target>\r
+\r
+ <target name="setup-eclipse-module">\r
+ <ant dir="${module.name}" target="setup-eclipse" inheritAll="false" />\r
+ </target>\r
+\r
+ <target name="war">\r
+ <antcall target="loop-modules">\r
+ <param name="loop.modules.cmd" value="war-module" />\r
+ </antcall>\r
+ </target>\r
+\r
+ <target name="war-module">\r
+ <ant dir="${module.name}" target="war" inheritAll="false" />\r
+ </target>\r
+</project>
\ No newline at end of file