<project name="" default="all" basedir="."> <!-- set global properties for this build --> <property name="src" location="src"/> <property name="classes" location="classes"/> <target name="all" depends="clean,dist"/> <target name="init"> <!-- Create the build directory structure used by compile --> <mkdir dir="${classes}"/> </target> <target name="compile" depends="init" description="compile the source " > <!-- Compile the java code from ${src} into ${classes} --> <!-- remove debug information: debug="true" --> <javac srcdir="${src}" debug="on" destdir="${classes}"> <classpath> <pathelement path="${classpath}"/> <pathelement location="./lib/ucp-19.10.0.0.jar"/> </classpath> <classpath> <pathelement path="${classpath}"/> <pathelement location="./lib/ojdbc8-19.10.0.0.jar"/> </classpath> <classpath> <pathelement path="${classpath}"/> <pathelement location="./lib/ons-19.10.0.0.jar"/> </classpath> <classpath> <pathelement path="${classpath}"/> <pathelement location="./lib/oraclepki-19.10.0.0.jar"/> </classpath> <classpath> <pathelement path="${classpath}"/> <pathelement location="./lib/osdt_core-19.10.0.0.jar"/> </classpath> <classpath> <pathelement path="${classpath}"/> <pathelement location="./lib/osdt_cert-19.10.0.0.jar"/> </classpath> <classpath> <pathelement path="${classpath}"/> <pathelement location="./lib/orai18n-19.10.0.0.jar"/> </classpath> </javac> </target> <target name="dist" depends="compile" description="Jar the source files" > <!-- Create the distribution directory --> <delete dir="./lib/Test.jar"/> <jar destfile="./lib/Test.jar" basedir="${classes}" excludes="*.xml,*.cdi" manifest="MANIFEST.MF"/> </target> <target name="clean" description="clean up" > <!-- Delete the ${classes} and ${dist} directory trees --> <delete dir="${classes}"/> <delete dir="./lib/Test.jar"/> </target> </project>
|