1 <?xml version="1.0"?>
\r
4 <project name="build-common-plugins" xmlns:antelope="antlib:ise.antelope.tasks">
\r
5 <import file="build-common.xml" />
\r
7 <target name="build-service">
\r
8 <for param="service.file">
\r
12 includes="*/docroot/WEB-INF/service.xml"
\r
16 <antelope:stringutil string="@{service.file}" property="service.file.index">
\r
17 <antelope:indexof string="docroot" fromindex="0" />
\r
18 </antelope:stringutil>
\r
20 <antelope:stringutil string="@{service.file}" property="portlet.dir">
\r
21 <antelope:substring beginindex="0" endindex="${service.file.index}" />
\r
22 </antelope:stringutil>
\r
24 <ant dir="${portlet.dir}" target="build-service" inheritAll="false" />
\r
29 <target name="clean">
\r
30 <antcall target="loop-modules">
\r
31 <param name="loop.modules.cmd" value="clean-module" />
\r
35 <target name="clean-module">
\r
36 <ant dir="${module.name}" target="clean" inheritAll="false" />
\r
39 <target name="compile">
\r
40 <antcall target="loop-modules">
\r
41 <param name="loop.modules.cmd" value="compile-module" />
\r
45 <target name="compile-module">
\r
46 <ant dir="${module.name}" target="compile" inheritAll="false" />
\r
49 <target name="deploy">
\r
50 <antcall target="loop-modules">
\r
51 <param name="loop.modules.cmd" value="deploy-module" />
\r
55 <target name="deploy-module">
\r
56 <ant dir="${module.name}" target="deploy" inheritAll="false" />
\r
60 <antcall target="loop-modules">
\r
61 <param name="loop.modules.cmd" value="jar-module" />
\r
65 <target name="jar-module">
\r
66 <ant dir="${module.name}" target="jar" inheritAll="false" />
\r
69 <target name="loop-modules">
\r
72 <equals arg1="${plugins.includes}" arg2="" />
\r
75 <for param="module.name">
\r
77 <dirset dir="." excludes="${plugins.excludes}" includes="${plugins.includes}" />
\r
80 <antelope:stringutil string="@{module.name}" property="module.name.unix">
\r
81 <antelope:replace regex="\\" replacement="/" />
\r
82 </antelope:stringutil>
\r
84 <antelope:grep in="${module.name.unix}" regex="(.*/)(.*)" group="2" property="module.name" />
\r
86 <antcall target="${loop.modules.cmd}" />
\r
93 <target name="setup-eclipse">
\r
94 <antcall target="loop-modules">
\r
95 <param name="loop.modules.cmd" value="setup-eclipse-module" />
\r
99 <target name="setup-eclipse-module">
\r
100 <ant dir="${module.name}" target="setup-eclipse" inheritAll="false" />
\r
103 <target name="war">
\r
104 <antcall target="loop-modules">
\r
105 <param name="loop.modules.cmd" value="war-module" />
\r
109 <target name="war-module">
\r
110 <ant dir="${module.name}" target="war" inheritAll="false" />
\r