changeset 368:b313d460af7a

Ant sample: Disable annotation processors in the final JARs.
author shade
date Thu, 23 Jan 2014 03:00:52 +0400
parents 66924b73b76e
children 1e5aee4ef63b
files jmh-ant-sample/build.xml
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-ant-sample/build.xml	Thu Jan 23 02:45:58 2014 +0400
+++ b/jmh-ant-sample/build.xml	Thu Jan 23 03:00:52 2014 +0400
@@ -61,6 +61,7 @@
               * Bring the dependencies along in the JAR
               * (You might be able to run JMH without the self-contained JAR,
                 take note of the META-INF/* files in that case)
+              * Filter out META-INF/services/ to disable JMH processors for the future
     -->
     <target name="jar" description="Generate the self-contained JAR">
         <delete dir="${build}"/>
@@ -75,9 +76,9 @@
             <manifest>
                 <attribute name="Main-Class" value="org.openjdk.jmh.Main"/>
             </manifest>
-            <zipgroupfileset file="${jmh.jar}" includes="**/*.jar" />
-            <zipgroupfileset file="${joptsimple.jar}" includes="**/*.jar" />
-            <zipgroupfileset file="${commonsmath.jar}" includes="**/*.jar" />
+            <zipfileset src="${jmh.jar}" excludes="**/META-INF/services/**" />
+            <zipfileset src="${joptsimple.jar}" />
+            <zipfileset src="${commonsmath.jar}" />
         </jar>
     </target>