30 likes | 218 Views
Materi Pendukung Pertemuan <<4>> Contoh XML document. Matakuliah : <<M0264>>/<<Sistem Manajemen Basis Data>> Tahun : <<2006>> Versi : <<1/1>>. <project name="SMST" default="generate Deploy code" basedir="."> <description> SMST build file </description>
E N D
Materi Pendukung Pertemuan <<4>>Contoh XML document Matakuliah : <<M0264>>/<<Sistem Manajemen Basis Data>> Tahun : <<2006>> Versi : <<1/1>>
<project name="SMST" default="generate Deploy code" basedir="."> • <description> • SMST build file • </description> • <!-- set global properties for this build --> • <property name="src" location="src"/> • <property name="classes" location="classes"/> • <target name="compile" • description="compile the source code" > • <!-- Compile the java code from ${src} into ${build} --> • <javac srcdir="${src}" destdir="${classes}"> • <classpath> • <pathelement location="E:\SMST\mdc.jar"/> • <fileset dir="D:\bea\wlserver6.1\lib"> • <include name="**/*.jar"/> • </fileset> • </classpath> • </javac> • </target>
<target name="make Jar" depends="compile"> • <description> • Gather compliled classes into a single jar • </description> • <jar destfile="smst.jar" basedir=".\classes"/> • </target> • <!-- • java -classpath D:\bea\wlserver6.1\lib\weblogic.jar weblogic.ejbc -compiler javac.exe smst.jar test.jar • --> • <target name="generate Deploy code"> • <java classname="weblogic.ejbc" fork="true" failonerror="true"> • <classpath> • <pathelement location="D:\bea\wlserver6.1\lib\weblogic.jar" /> • </classpath> • <arg line="-compiler javac.exe smst.jar test.jar" /> • </java> • </target> • </project>