blob: e912b418aafd2affce061db8af61a1a40e20028a [file] [log] [blame]
<!--
Copyright (c) 2009 Tasktop Technologies and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
Tasktop Technologies - initial API and implementation
-->
<project name="jar and copy orbit bundles">
<target name="orbit-pack-helper">
<path id="file.id">
<dirset dir="${buildDirectory}/plugins">
<include name="${bundle}*.jar"/>
</dirset>
</path>
<property name="file.full" refid="file.id"/>
<available file="${file.full}" property="available" />
<path id="path.id">
<dirset dir="${buildDirectory}/plugins">
<include name="${bundle}*"/>
</dirset>
</path>
<property name="path.full" refid="path.id"/>
<basename file="${path.full}" property="path.base"/>
<zip destfile="${path.full}.jar">
<fileset dir="${path.full}"></fileset>
</zip>
</target>
<target name="orbit-copy-bundles-helper">
<antcall target="orbit-pack-helper">
<param name="bundle" value="javax.xml.rpc"/>
</antcall>
<antcall target="orbit-pack-helper">
<param name="bundle" value="javax.xml.soap"/>
</antcall>
<antcall target="orbit-pack-helper">
<param name="bundle" value="org.apache.axis"/>
</antcall>
<antcall target="orbit-pack-helper">
<param name="bundle" value="org.apache.commons.discovery"/>
</antcall>
<!-- httpclient -->
<fileset dir="${buildDirectory}/plugins" id="org.apache.commons.httpclient">
<include name="org.apache.commons.codec*.jar"/>
<include name="org.apache.commons.httpclient*.jar"/>
<include name="org.apache.commons.lang*.jar"/>
<include name="org.apache.commons.logging*.jar"/>
</fileset>
<!-- axis -->
<fileset dir="${buildDirectory}/plugins" id="org.apache.axis">
<include name="javax.activation*.jar"/>
<include name="javax.mail*.jar"/>
<include name="javax.wsdl*.jar"/>
<include name="javax.xml.rpc*.jar"/>
<include name="javax.xml.soap*.jar"/>
<include name="org.apache.axis*.jar"/>
<include name="org.apache.commons.discovery*.jar"/>
<include name="org.apache.commons.logging*.jar"/>
</fileset>
<!-- bug 297912: copy target specific version of javax.servlet -->
<fileset dir="${baseLocation}/plugins" id="javax.servlet">
<include name="javax.servlet_*.jar"/>
</fileset>
<!-- xml-rpc -->
<fileset dir="${buildDirectory}/plugins" id="org.apache.xmlrpc">
<include name="javax.xml.bind*.jar"/>
<include name="org.apache.xmlrpc*.jar"/>
<include name="org.apache.ws.commons.util*.jar"/>
</fileset>
<!-- jdom -->
<fileset dir="${buildDirectory}/plugins" id="org.jdom">
<include name="org.jdom*.jar"/>
</fileset>
<!-- rome -->
<fileset dir="${buildDirectory}/plugins" id="com.sun.syndication">
<include name="com.sun.syndication*.jar"/>
<include name="org.jdom*.jar"/>
</fileset>
<mkdir dir="${buildDirectory}/standardUpdateSite/plugins"/>
<copy todir="${buildDirectory}/standardUpdateSite/plugins" verbose="true">
<fileset refid="org.apache.commons.httpclient" />
<fileset refid="org.jdom" />
<fileset refid="org.apache.axis" />
<fileset refid="javax.servlet" />
<fileset refid="org.apache.xmlrpc" />
</copy>
<mkdir dir="${buildDirectory}/incubatorUpdateSite/plugins"/>
<copy todir="${buildDirectory}/incubatorUpdateSite/plugins" verbose="true">
<fileset refid="org.apache.axis" />
<fileset refid="javax.servlet" />
<fileset refid="com.sun.syndication" />
</copy>
<mkdir dir="${buildDirectory}/allUpdateSite/plugins"/>
<copy todir="${buildDirectory}/allUpdateSite/plugins" verbose="true">
<fileset refid="org.apache.axis" />
<fileset refid="javax.servlet" />
<fileset refid="org.apache.commons.httpclient" />
<fileset refid="org.apache.xmlrpc" />
<fileset refid="com.sun.syndication" />
</copy>
</target>
</project>