build.xml 2.88 KB
Newer Older
Lee Jaebin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
<?xml version="1.0" encoding="UTF-8"?>

<project name="ABVJE_BL" default="deploy" basedir="./">
	<property name="path.build.src" value="${basedir}/src"/>
	<property name="path.build.lib" value="${basedir}/lib"/>
	<property name="path.export" value="${basedir}/export"/>
	<property name="path.export.jar" value="${path.export}/jar"/>
	<property name="path.bin" value="${basedir}/bin"/>

	<property file="${basedir}/build.properties"/>

	<path id="abvje.compile.classpath">
		<fileset dir="${path.build.lib}">
			<include name="*.jar"/>
		</fileset>
	</path>
	<target name="deploy" depends="build">
	    <!--
		<copy todir="${path.deploy.ABVJE_UI}/libs">
			<fileset dir="${path.export.jar}">
				<include name="**/*.jar"/>
			</fileset>
			<fileset dir="${path.build.lib}">
				<include name="**/*.jar"/>
			</fileset>
		</copy>

		<copy todir="${path.deploy.ABVJE_UIVIEW}/libs">
			<fileset dir="${path.export.jar}">
				<include name="**/*.jar"/>
			</fileset>
			<fileset dir="${path.build.lib}">
				<include name="**/*.jar"/>
			</fileset>
		</copy>
	
		<copy todir="${path.deploy.ABVJE_COREUI}/libs">
			<fileset dir="${path.export.jar}">
				<include name="**/*.jar"/>
			</fileset>
			<fileset dir="${path.build.lib}">
				<include name="**/*.jar"/>
			</fileset>
		</copy>
		-->
		<copy todir="${path.deploy.ABVJE_Launcher}/libs">
			<fileset dir="${path.export.jar}">
				<include name="**/*.jar"/>
			</fileset>
			<!--
			<fileset dir="${path.build.lib}">
				<include name="**/*.jar"/>
			</fileset>
			-->
		</copy>
	</target>
	
	<target name="build" depends="abvje.compile">
		<jar jarfile="${path.export.jar}/${abvje.jar.name}.jar" basedir="${path.bin}"/>
	</target>

	<target name="abvje.compile" depends="abvje.compile.prepare">
		<javac target="1.6" srcdir="${path.build.src}" destdir="${path.bin}"
			encoding="UTF-8" debug="${abvje.compile.debug}" includeantruntime="false">
			<classpath refid="abvje.compile.classpath"/>
			<compilerarg compiler="org.eclipse.jdt.core.JDTCompilerAdapter" line="-1.6 -warn:+boxing"/>
			<compilerarg value="-Xlint:deprecation" />
			<compilerarg value="-Xlint:unchecked" />
			<exclude name="${abvje.compile.excludes}"/>
	    </javac>
	</target>

	<target name="abvje.compile.prepare" depends="abvje.compile.clean">
		<mkdir dir="${path.export.jar}"/>
		<mkdir dir="${path.bin}"/>
		<!--<ant antfile="${path.compile.ABVJE_Core}/build.xml" inheritall="false">
			<property file="${path.compile.ABVJE_Core}/build.properties"></property>
		</ant>
		<ant antfile="${path.compile.ABVJE_CL}/build.xml" inheritall="false">
			<property file="${path.compile.ABVJE_CL}/build.properties"></property>
		</ant>
		<ant antfile="${path.compile.ABVJE_DL}/build.xml" inheritall="false">
			<property file="${path.compile.ABVJE_DL}/build.properties"></property>
		</ant>-->
	</target>

	<target name="abvje.compile.clean">
		<delete dir="${path.export}"/>
		<delete dir="${path.bin}"/>
	</target>
</project>