blob: da3627a5a9d59063153133ec8301a55aca0203d3 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2009 Mountainminds GmbH & Co. KG 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:
Brock Janiczak - initial API and implementation
Marc R. Hoffmann - all-in-one JAR for Ant usage
$Id: $
-->
<project name="org.jacoco.ant.buildhook">
<path id="dependencies">
<path refid="bundle-org.apache.ant"/>
<path refid="bundle-org.jacoco.core"/>
<path refid="bundle-org.jacoco.agent"/>
<path refid="bundle-org.jacoco.report"/>
<path refid="bundle-org.objectweb.asm"/>
</path>
<property name="do.compile" value="true"/>
<property name="do.custompackage" value="true"/>
<property name="do.package" value="true"/>
<fileset dir="${source.bundle.java.dir}" id="classpathresources">
<include name="org/jacoco/ant/antlib.xml"/>
</fileset>
<target name="custompackage">
<!-- create the all-in-one Ant JAR -->
<taskdef resource="org/jacoco/build/tools/ant/antlib.xml">
<classpath>
<path refid="bundle-org.jacoco.build"/>
<path refid="bundle-org.objectweb.asm"/>
</classpath>
</taskdef>
<jar destfile="${result.dist.lib.dir}/jacocoant.jar">
<manifest>
<attribute name="Implementation-Title" value="JaCoCo Ant Tasks"/>
<attribute name="Implementation-Vendor" value="Mountainminds GmbH &amp; Co. KG"/>
<attribute name="Implementation-Version" value="${qualified.bundle.version}"/>
</manifest>
<file file="${source.bundle.dir}/about.html"/>
<file file="${result.dist.lib.dir}/jacocoagent.jar"/>
<fileset dir="${result.tmp.bundle.classes.dir}"/>
<fileset dir="${toString:bundle-org.jacoco.report}" excludes="**/*.class"/>
<!-- Just add those classes we really need -->
<deepclassfileset>
<seed>
<fileset dir="${result.tmp.bundle.classes.dir}"/>
</seed>
<fileset dir="${toString:bundle-org.jacoco.core}"/>
<fileset dir="${toString:bundle-org.jacoco.agent}"/>
<fileset dir="${toString:bundle-org.jacoco.report}"/>
<zipfileset includes="**/*.class">
<fileset file="${toString:bundle-org.objectweb.asm}"/>
</zipfileset>
</deepclassfileset>
</jar>
</target>
</project>