|
Spring Framework example source code file (build.xml)
The Spring Framework build.xml source code<?xml version="1.0"?> <project name="setupDB" basedir="." default="all"> <target name="dropHSQLTables" if="useHSQL"> <echo message="Drop tables using: ${db.driver} ${db.url}" /> <sql driver="${db.driver}" url="${db.url}" userid="${db.user}" password="${db.pw}" onerror="continue"> <classpath> <fileset dir="${spring.root}/lib"> <include name="hsqldb/hsqldb.jar" /> </fileset> </classpath> <transaction src="${db.dir}/dropTables.txt" /> </sql> </target> <target name="createHSQLTables" if="useHSQL"> <echo message="Create tables using: ${db.driver} ${db.url}" /> <sql driver="${db.driver}" url="${db.url}" userid="${db.user}" password="${db.pw}" onerror="continue"> <classpath> <fileset dir="${spring.root}/lib"> <include name="hsqldb/hsqldb.jar" /> </fileset> </classpath> <transaction src="${db.dir}/hsqldb/initDB.txt" /> </sql> </target> <target name="dropMYSQLTables" if="useMYSQL"> <echo message="Dropping tables using: ${db.driver} ${db.url}" /> <sql driver="${db.driver}" url="${db.url}" userid="${db.user}" password="${db.pw}" onerror="continue"> <classpath> <fileset dir="${db.dir}/mysql"> <include name="mysql*.jar" /> </fileset> </classpath> <transaction src="${db.dir}/dropTables.txt" /> </sql> </target> <target name="createMYSQLTables" if="useMYSQL"> <echo message="Creating tables using: ${db.driver} ${db.url}" /> <sql driver="${db.driver}" url="${db.url}" userid="${db.user}" password="${db.pw}" onerror="continue"> <classpath> <fileset dir="${db.dir}/mysql"> <include name="mysql*.jar" /> </fileset> </classpath> <transaction src="${db.dir}/mysql/initDB.txt" /> </sql> </target> <target name="emptyTables"> <echo message="Emptying tables using: ${db.driver} ${db.url}" /> <sql driver="${db.driver}" url="${db.url}" userid="${db.user}" password="${db.pw}"> <classpath> <fileset dir="${spring.root}/lib"> <include name="hsqldb/hsqldb.jar" /> </fileset> <fileset dir="${db.dir}/mysql"> <include name="mysql*.jar" /> </fileset> </classpath> <transaction src="${db.dir}/emptyDB.txt" /> </sql> </target> <target name="populateTables"> <echo message="Populating tables using: ${db.driver} ${db.url}" /> <sql driver="${db.driver}" url="${db.url}" userid="${db.user}" password="${db.pw}"> <classpath> <fileset dir="${spring.root}/lib"> <include name="hsqldb/hsqldb.jar" /> </fileset> <fileset dir="${db.dir}/mysql"> <include name="mysql*.jar" /> </fileset> </classpath> <transaction src="${db.dir}/populateDB.txt" /> </sql> </target> <target name="all" depends="dropHSQLTables,createHSQLTables,dropMYSQLTables,createMYSQLTables,emptyTables,populateTables" /> </project> Other Spring Framework examples (source code examples)Here is a short list of links related to this Spring Framework build.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.