Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 2e9c43658e374d290a2de15d25134ac8 > files > 497

db4o-doc-8.0-1.fc15.i686.rpm

<?xml version="1.0"?>

<!-- 
	TA build time enhancement sample.
-->

<project name="taenhance" default="buildall">

<!-- 
	Set up the required class path for the enhancement task.
	In a production environment, this will be composed of jars, of course. 
-->
<path id="db4o.enhance.path">
	<pathelement path="${basedir}" />
	<fileset dir="lib">
		<include name="**/*.jar"/>
	</fileset>
</path>
	
<!-- Define enhancement task. -->
<taskdef
	name="db4o-enhance" 
	classname="com.db4o.instrumentation.ant.Db4oFileEnhancerAntTask"
	classpathref="db4o.enhance.path"
	loaderref="db4o.enhance.loader" />

<typedef
	name="transparent-activation" 
	classname="com.db4o.ta.instrumentation.ant.TAAntClassEditFactory"
	classpathref="db4o.enhance.path"
	loaderref="db4o.enhance.loader" />



<target name="buildall">

        <!-- Create enhanced output directory-->	
	<mkdir dir="${basedir}/enhanced-bin" />
	<delete dir="${basedir}/enhanced-bin" quiet = "true">
		<include name="**/*"/>
	</delete>

	<db4o-enhance classTargetDir="${basedir}/enhanced-bin" jarTargetDir="${basedir}/enhanced-lib">

		<classpath refid="db4o.enhance.path" />		
                <!-- Use compiled classes as an input -->
		<sources dir="${basedir}/bin" />

                <!-- Call transparent activation enhancement --> 
		<transparent-activation />
		
	</db4o-enhance>
	
</target>

	
	
</project>