Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (46 sloc) 3.13 KB
<project name="Ejb3guice" default="jarjar" basedir=".">
<target name="jarjar">
<taskdef classname="com.tonicsystems.jarjar.JarJarTask" classpathref="maven.plugin.classpath" name="jarjar" />
<copy file="${project.build.directory}/${project.build.finalName}.jar" tofile="${project.build.directory}/${project.build.finalName}.tmp" />
<jarjar destfile="${project.build.directory}/${project.build.finalName}.jar">
<manifest>
<attribute name="Manifest-Version" value="1.0" />
<attribute name="Ejb3Unit" value="Versin 2.0 by Daniel Wiese and Fabian Bauschulte" />
<attribute name="Can-Redefine-Classes" value="true" />
</manifest>
<zipfileset src="${project.build.directory}/liblocation/antlr.jar" />
<zipfileset src="${project.build.directory}/liblocation/avalon-framework.jar" />
<zipfileset src="${project.build.directory}/liblocation/commons-beanutils.jar" />
<zipfileset src="${project.build.directory}/liblocation/commons-collections.jar" />
<zipfileset src="${project.build.directory}/liblocation/commons-lang.jar" />
<zipfileset src="${project.build.directory}/liblocation/commons-logging.jar" />
<zipfileset src="${project.build.directory}/liblocation/dom4j.jar" />
<zipfileset src="${project.build.directory}/liblocation/ejb3guice.jar" />
<zipfileset src="${project.build.directory}/liblocation/hamcrest-core.jar" />
<zipfileset src="${project.build.directory}/liblocation/hamcrest-library.jar" />
<zipfileset src="${project.build.directory}/liblocation/cglib-nodep.jar" />
<zipfileset src="${project.build.directory}/liblocation/hibernate-commons-annotations.jar" />
<zipfileset src="${project.build.directory}/liblocation/hibernate-core.jar" />
<zipfileset src="${project.build.directory}/liblocation/hibernate-entitymanager.jar" />
<zipfileset src="${project.build.directory}/liblocation/hibernate-jpa-2.0-api.jar" />
<zipfileset src="${project.build.directory}/liblocation/h2.jar" />
<zipfileset src="${project.build.directory}/liblocation/javassist.jar" />
<zipfileset src="${project.build.directory}/liblocation/jta.jar" />
<zipfileset src="${project.build.directory}/liblocation/logkit.jar" />
<zipfileset src="${project.build.directory}/liblocation/servlet-api.jar" />
<zipfileset src="${project.build.directory}/liblocation/slf4j-api.jar" />
<zipfileset src="${project.build.directory}/${project.build.finalName}.tmp" />
<rule pattern="org.hibernate.**" result="org.ejb3unit.hibernate.@1" />
<rule pattern="org.apache.commons.**" result="org.ejb3unit.apache.commons.@1" />
<rule pattern="org.apache.avalon.**" result="org.ejb3unit.apache.avalon.@1" />
<rule pattern="org.apache.log.**" result="org.ejb3unit.apache.log.@1" />
<rule pattern="org.dom4j.**" result="org.ejb3unit.dom4j.@1" />
<!-- <rule pattern="org.h2.**" result="org.ejb3unit.h2.@1" /> -->
<rule pattern="org.jboss.util.**" result="org.ejb3unit.util.@1" />
<rule pattern="antlr.**" result="org.ejb3unit.antlr.@1" />
</jarjar>
<delete>
<fileset includes="${project.build.finalName}.tmp" dir="${project.build.directory}" />
</delete>
</target>
</project>