File build.xml of Package mgmapp

<?xml version="1.0"?>
<project name="opentc-mgm" default="create-fatjar" basedir=".">
	<description>
	   This is the ANT file for the OpenTC Content Management Applciation.
	</description>
	<!-- set global properties for this build -->
	<property name="src" location="src"/>
	<property name="build" location="build-ant"/>
	<property name="res" location="res"/>
	<property name="lib" location="lib"/>
	
	<property name="ant.reuse.loader" value="true"/>
	<path id="fatJarPath" location="lib/fatjar.jar"/>
	<taskdef name="fatjar.build" classname="net.sf.fjep.anttask.FJBuildTask" classpathref="fatJarPath"/>
	<typedef name="fatjar.manifest" classname="net.sf.fjep.anttask.FJManifestType" classpathref="fatJarPath"/> 
	<typedef name="fatjar.filesource" classname="net.sf.fjep.anttask.FJFileSourceType" classpathref="fatJarPath"/> 
	<typedef name="fatjar.jarsource" classname="net.sf.fjep.anttask.FJJarSourceType" classpathref="fatJarPath"/> 
	
	<target name="init">
	    <!-- Create the time stamp -->
	    <tstamp/>
	    <!-- Create the build directory structure used by compile -->
	    <mkdir dir="${build}"/>
	</target>
	
	<target name="compile" depends="init" description="compile the sources" >
	    <!-- Compile the java code from ${src} into ${build} -->
	    <javac encoding="UTF-8" srcdir="${src}" destdir="${build}">
	    	<classpath>
	    		<fileset dir="${lib}" includes="**/*.jar"/>
		    </classpath>
	   	</javac>
		<echo level="info">Compiling successful</echo>
	</target>
	
	<target name="run" depends="compile" description="run the software" >
		<copy todir="${build}">
			<fileset dir="${res}">
                <include name="icons/**"/>
                <include name="meta/**"/>
                <include name="schema/**"/>
				<include name="tools/**"/>
            </fileset>
	    </copy>
		<echo level="info">Starting application ...</echo>
	    <!-- Run the software after compiling -->
	    <java classname="org.ldv.oa.app.OtcMgm" fork="true">
	    	<classpath>
	    		<fileset dir="${lib}" includes="**/*.jar"/>
	    		<pathelement path="${build}"/>
		    </classpath>
	   	</java>
	</target>
		
	<target name="clean" description="clean up" >
	    <!-- Delete the ${build} and ${dist} directory trees -->
	    <delete dir="${build}"/>
	</target>
	
	<target name="create-fatjar" depends="compile" description="run the software">
		<fatjar.build output="mgmapp.jar">
			<fatjar.manifest mainclass="org.ldv.oa.app.OtcMgm"/>
			<fatjar.filesource path="${build}" relpath="" />
			<fatjar.filesource path="${res}" relpath="" />
			<fatjar.jarsource file="lib/options/options.jar" relpath="" />
			<fatjar.jarsource file="lib/xmldsig.jar" relpath="" />
			<fatjar.jarsource file="lib/xmlsec.jar" relpath="" />
			<fatjar.jarsource file="lib/activation.jar" relpath="" />
			<fatjar.jarsource file="lib/bcprov-jdk14-142.jar" relpath="" />
			<fatjar.jarsource file="lib/mail.jar" relpath="" />
			<fatjar.jarsource file="lib/jaxb-api.jar" relpath="" />
			<fatjar.jarsource file="lib/jsr173_1.0_api.jar" relpath="" />
			<fatjar.jarsource file="lib/jaxb-impl.jar" relpath="" />
			<fatjar.jarsource file="lib/theora/jheora-patch.jar" relpath="" />
			<fatjar.jarsource file="lib/theora/jogg-0.0.7.jar" relpath="" />
			<fatjar.jarsource file="lib/theora/jorbis-0.0.15.jar" relpath="" />
			<fatjar.jarsource file="lib/theora/theora-java.jar" relpath="" />
			<fatjar.jarsource file="lib/xmlrpc/commons-codec-1.3.jar" relpath="" />
			<fatjar.jarsource file="lib/xmlrpc/commons-codec-1.3.jar" relpath="" />
			<fatjar.jarsource file="lib/xmlrpc/commons-logging-1.1.jar" relpath="" />
			<fatjar.jarsource file="lib/xmlrpc/servlet-api.jar" relpath="" />
			<fatjar.jarsource file="lib/xmlrpc/ws-commons-util-1.0.2.jar" relpath="" />
			<fatjar.jarsource file="lib/xmlrpc/xmlrpc-client-3.1.2.jar" relpath="" />
			<fatjar.jarsource file="lib/xmlrpc/xmlrpc-common-3.1.2.jar" relpath="" />
			<fatjar.jarsource file="lib/xmlrpc/xmlrpc-server-3.1.2.jar" relpath="" />
		</fatjar.build>
	 
		<signjar jar="${cube.jar.name}" alias="danielczyk" storepass="danielczyk" keystore="${webstart.dir}myKeyStore" />
	</target>

</project>


openSUSE Build Service is sponsored by