blob: 064be75b29debf1e8a481337119bcdf5a5ec0031 [file] [log] [blame]
Karl Paulsd140dd92006-11-02 22:22:49 +00001<!--
2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"); you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
17 under the License.
18-->
Richard S. Hallc2312e42006-11-02 21:47:20 +000019<project default="all">
Richard S. Hall78ed6d52007-03-08 13:49:33 +000020 <target name="init">
21 <condition property="mvn" value="mvn.bat">
22 <os family="dos" />
23 </condition>
24 <condition property="mvn" value="mvn">
25 <not>
26 <isset property="mvn" />
27 </not>
28 </condition>
29 </target>
30 <target name="clean" depends="init">
31 <exec executable="${mvn}" failonerror="true">
Richard S. Hall430f3352007-03-28 14:27:28 +000032 <arg line="-Dpackaging=plugins clean" />
33 </exec>
34 <exec executable="${mvn}" failonerror="true">
Richard S. Hall1ca96a92007-02-12 15:46:10 +000035 <arg line="-Dpackaging=bundle clean" />
Richard S. Hallc2312e42006-11-02 21:47:20 +000036 </exec>
Richard S. Hall78ed6d52007-03-08 13:49:33 +000037 <exec executable="${mvn}" failonerror="true">
Richard S. Hall1ca96a92007-02-12 15:46:10 +000038 <arg line="-Dpackaging=osgi-bundle clean" />
39 </exec>
Richard S. Hall78ed6d52007-03-08 13:49:33 +000040 <exec executable="${mvn}" failonerror="true">
Richard S. Hall1ca96a92007-02-12 15:46:10 +000041 <arg line="-Dpackaging=ipojo-bundle clean" />
42 </exec>
Richard S. Hall78ed6d52007-03-08 13:49:33 +000043 <exec executable="${mvn}" failonerror="true">
Richard S. Hall1ca96a92007-02-12 15:46:10 +000044 <arg line="-Dpackaging=osgi-bundle-mosgi clean" />
Richard S. Hallc2312e42006-11-02 21:47:20 +000045 </exec>
46 </target>
Richard S. Hall78ed6d52007-03-08 13:49:33 +000047 <target name="install" depends="init">
48 <exec executable="${mvn}" failonerror="true">
Richard S. Hall430f3352007-03-28 14:27:28 +000049 <arg line="-Dpackaging=plugins install" />
50 </exec>
51 <exec executable="${mvn}" failonerror="true">
Richard S. Hall1ca96a92007-02-12 15:46:10 +000052 <arg line="-Dpackaging=bundle install" />
Richard S. Hallc2312e42006-11-02 21:47:20 +000053 </exec>
Richard S. Hall78ed6d52007-03-08 13:49:33 +000054 <exec executable="${mvn}" failonerror="true">
Richard S. Hall1ca96a92007-02-12 15:46:10 +000055 <arg line="-Dpackaging=osgi-bundle install" />
56 </exec>
Richard S. Hall78ed6d52007-03-08 13:49:33 +000057 <exec executable="${mvn}" failonerror="true">
Richard S. Hall1ca96a92007-02-12 15:46:10 +000058 <arg line="-Dpackaging=ipojo-bundle install" />
59 </exec>
Richard S. Hall78ed6d52007-03-08 13:49:33 +000060 <exec executable="${mvn}" failonerror="true">
Richard S. Hall1ca96a92007-02-12 15:46:10 +000061 <arg line="-Dpackaging=osgi-bundle-mosgi install" />
Richard S. Hallc2312e42006-11-02 21:47:20 +000062 </exec>
63 </target>
Richard S. Hall78ed6d52007-03-08 13:49:33 +000064 <target name="all" depends="init">
65 <exec executable="${mvn}" failonerror="true">
Richard S. Hall430f3352007-03-28 14:27:28 +000066 <arg line="-Dpackaging=plugins clean install" />
67 </exec>
68 <exec executable="${mvn}" failonerror="true">
Richard S. Hall1ca96a92007-02-12 15:46:10 +000069 <arg line="-Dpackaging=bundle clean install" />
Richard S. Hallc2312e42006-11-02 21:47:20 +000070 </exec>
Richard S. Hall78ed6d52007-03-08 13:49:33 +000071 <exec executable="${mvn}" failonerror="true">
Richard S. Hall1ca96a92007-02-12 15:46:10 +000072 <arg line="-Dpackaging=osgi-bundle clean install" />
73 </exec>
Richard S. Hall78ed6d52007-03-08 13:49:33 +000074 <exec executable="${mvn}" failonerror="true">
Richard S. Hall1ca96a92007-02-12 15:46:10 +000075 <arg line="-Dpackaging=ipojo-bundle clean install" />
76 </exec>
Richard S. Hall78ed6d52007-03-08 13:49:33 +000077 <exec executable="${mvn}" failonerror="true">
Richard S. Hall1ca96a92007-02-12 15:46:10 +000078 <arg line="-Dpackaging=osgi-bundle-mosgi clean install" />
Richard S. Hallc2312e42006-11-02 21:47:20 +000079 </exec>
80 </target>
81</project>