blob: d96082a280ee05ae275291e121e636db1816e02c [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-->
Carsten Ziegelera845c772009-03-10 07:30:54 +000019<project default="all" basedir=".">
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">
Guillaume Nodet72593da2010-03-26 14:02:26 +000032 <arg line="-Dpackaging=obr clean" />
33 </exec>
34 <exec executable="${mvn}" failonerror="true">
Richard S. Hall430f3352007-03-28 14:27:28 +000035 <arg line="-Dpackaging=plugins clean" />
36 </exec>
37 <exec executable="${mvn}" failonerror="true">
Richard S. Hall1ca96a92007-02-12 15:46:10 +000038 <arg line="-Dpackaging=bundle clean" />
Richard S. Hallc2312e42006-11-02 21:47:20 +000039 </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=osgi-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>
Guillaume Nodet3bf1c872009-08-10 16:57:09 +000046 <exec executable="${mvn}" failonerror="true">
47 <arg line="-Dpackaging=karaf clean" />
48 </exec>
Richard S. Hallc2312e42006-11-02 21:47:20 +000049 </target>
Richard S. Hall78ed6d52007-03-08 13:49:33 +000050 <target name="install" depends="init">
51 <exec executable="${mvn}" failonerror="true">
Guillaume Nodet72593da2010-03-26 14:02:26 +000052 <arg line="-Dpackaging=obr install" />
53 </exec>
54 <exec executable="${mvn}" failonerror="true">
Richard S. Hall430f3352007-03-28 14:27:28 +000055 <arg line="-Dpackaging=plugins install" />
56 </exec>
57 <exec executable="${mvn}" failonerror="true">
Richard S. Hall1ca96a92007-02-12 15:46:10 +000058 <arg line="-Dpackaging=bundle install" />
Richard S. Hallc2312e42006-11-02 21:47:20 +000059 </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 install" />
62 </exec>
Richard S. Hall78ed6d52007-03-08 13:49:33 +000063 <exec executable="${mvn}" failonerror="true">
Richard S. Hall1ca96a92007-02-12 15:46:10 +000064 <arg line="-Dpackaging=ipojo-bundle install" />
65 </exec>
Richard S. Hall78ed6d52007-03-08 13:49:33 +000066 <exec executable="${mvn}" failonerror="true">
Richard S. Hall1ca96a92007-02-12 15:46:10 +000067 <arg line="-Dpackaging=osgi-bundle-mosgi install" />
Richard S. Hallc2312e42006-11-02 21:47:20 +000068 </exec>
Guillaume Nodet3bf1c872009-08-10 16:57:09 +000069 <exec executable="${mvn}" failonerror="true">
70 <arg line="-Dpackaging=karaf install" />
71 </exec>
Richard S. Hallc2312e42006-11-02 21:47:20 +000072 </target>
Richard S. Hall78ed6d52007-03-08 13:49:33 +000073 <target name="all" depends="init">
74 <exec executable="${mvn}" failonerror="true">
Guillaume Nodet72593da2010-03-26 14:02:26 +000075 <arg line="-Dpackaging=obr clean install" />
76 </exec>
77 <exec executable="${mvn}" failonerror="true">
Richard S. Hall430f3352007-03-28 14:27:28 +000078 <arg line="-Dpackaging=plugins clean install" />
79 </exec>
80 <exec executable="${mvn}" failonerror="true">
Richard S. Hall1ca96a92007-02-12 15:46:10 +000081 <arg line="-Dpackaging=bundle clean install" />
Richard S. Hallc2312e42006-11-02 21:47:20 +000082 </exec>
Richard S. Hall78ed6d52007-03-08 13:49:33 +000083 <exec executable="${mvn}" failonerror="true">
Richard S. Hall1ca96a92007-02-12 15:46:10 +000084 <arg line="-Dpackaging=osgi-bundle clean install" />
85 </exec>
Richard S. Hall78ed6d52007-03-08 13:49:33 +000086 <exec executable="${mvn}" failonerror="true">
Richard S. Hall1ca96a92007-02-12 15:46:10 +000087 <arg line="-Dpackaging=ipojo-bundle clean install" />
88 </exec>
Richard S. Hall78ed6d52007-03-08 13:49:33 +000089 <exec executable="${mvn}" failonerror="true">
Richard S. Hall1ca96a92007-02-12 15:46:10 +000090 <arg line="-Dpackaging=osgi-bundle-mosgi clean install" />
Richard S. Hallc2312e42006-11-02 21:47:20 +000091 </exec>
Guillaume Nodet3bf1c872009-08-10 16:57:09 +000092 <exec executable="${mvn}" failonerror="true">
93 <arg line="-Dpackaging=karaf clean install" />
94 </exec>
Richard S. Hallc2312e42006-11-02 21:47:20 +000095 </target>
96</project>