blob: 5a2dc396256b3fddc9ee3f097c0789e44ddbcd83 [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">
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=osgi-bundle-mosgi clean" />
Richard S. Hallc2312e42006-11-02 21:47:20 +000042 </exec>
43 </target>
Richard S. Hall78ed6d52007-03-08 13:49:33 +000044 <target name="install" depends="init">
45 <exec executable="${mvn}" failonerror="true">
Richard S. Hall430f3352007-03-28 14:27:28 +000046 <arg line="-Dpackaging=plugins install" />
47 </exec>
48 <exec executable="${mvn}" failonerror="true">
Richard S. Hall1ca96a92007-02-12 15:46:10 +000049 <arg line="-Dpackaging=bundle install" />
Richard S. Hallc2312e42006-11-02 21:47:20 +000050 </exec>
Richard S. Hall78ed6d52007-03-08 13:49:33 +000051 <exec executable="${mvn}" failonerror="true">
Richard S. Hall1ca96a92007-02-12 15:46:10 +000052 <arg line="-Dpackaging=osgi-bundle install" />
53 </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=ipojo-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=osgi-bundle-mosgi install" />
Richard S. Hallc2312e42006-11-02 21:47:20 +000059 </exec>
60 </target>
Richard S. Hall78ed6d52007-03-08 13:49:33 +000061 <target name="all" depends="init">
62 <exec executable="${mvn}" failonerror="true">
Richard S. Hall430f3352007-03-28 14:27:28 +000063 <arg line="-Dpackaging=plugins clean install" />
64 </exec>
65 <exec executable="${mvn}" failonerror="true">
Richard S. Hall1ca96a92007-02-12 15:46:10 +000066 <arg line="-Dpackaging=bundle clean install" />
Richard S. Hallc2312e42006-11-02 21:47:20 +000067 </exec>
Richard S. Hall78ed6d52007-03-08 13:49:33 +000068 <exec executable="${mvn}" failonerror="true">
Richard S. Hall1ca96a92007-02-12 15:46:10 +000069 <arg line="-Dpackaging=osgi-bundle clean install" />
70 </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=ipojo-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=osgi-bundle-mosgi clean install" />
Richard S. Hallc2312e42006-11-02 21:47:20 +000076 </exec>
77 </target>
78</project>