Skip to content
Snippets Groups Projects
build-common.xml 1.34 KiB
Newer Older
  • Learn to ignore specific revisions
  • akwizgran's avatar
    akwizgran committed
    <project name='build-common'>
    
    	<import file='dependencies.xml'/>
    	<dirname property='build-common.root' file='${ant.file.build-common}'/>
    
    	<fileset id='bundled-jars' dir='${build-common.root}/lib'>
    		<include name='*.jar'/>
    	</fileset>
    	<fileset id='test-jars' dir='${build-common.root}/lib/test'>
    
    		<include name='*.jar'/>
    	</fileset>
    	<path id='api-classes'>
    		<pathelement location='${build-common.root}/api/build'/>
    	</path>
    	<path id='component-classes'>
    		<pathelement location='${build-common.root}/components/build'/>
    	</path>
    
    	<path id='test-classes'>
    		<pathelement location='${build-common.root}/test/build'/>
    	</path>
    
    	<path id='util-classes'>
    		<pathelement location='${build-common.root}/util/build'/>
    	</path>
    	<target name='clean'>
    
    		<delete dir='build'/>
    
    		<delete dir='test.tmp'/>
    
    	</target>
    	<target name='compile'>
    
    		<mkdir dir='build'/>
    
    		<javac srcdir='net/sf/briar' destdir='build' source='1.5'
    
    			includeantruntime='false' debug='on'>
    
    				<fileset refid='bundled-jars'/>
    				<fileset refid='test-jars'/>
    
    				<path refid='api-classes'/>
    				<path refid='component-classes'/>
    				<path refid='util-classes'/>
    			</classpath>
    		</javac>
    	</target>
    	<target name='depend'>
    		<antcall target='depend.${ant.project.name}'/>
    	</target>
    	<target name='depend-clean'>
    		<antcall target='depend-clean.${ant.project.name}'/>
    	</target>
    </project>