blob: 1def8de1fc350486969344c1d50101a6428af7fd [file] [log] [blame]
<!--
Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0, which is available at
http://www.eclipse.org/legal/epl-2.0.
This Source Code may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the
Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
version 2 with the GNU Classpath Exception, which is available at
https://www.gnu.org/software/classpath/license.html.
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
-->
<path id="classpath">
<fileset dir="${j2ee.home}/lib">
<include name="j2ee.jar"/>
</fileset>
</path>
<target name="clean" >
<delete dir="${build}" />
<delete dir="${dist}" />
</target>
<path id="db.classpath">
<fileset dir="${db.root}/lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="create-db_common" depends="init"
description="Create database tables and populate database." >
<java classname="com.pointbase.tools.toolsCommander" fork="yes" >
<jvmarg line="${db.jvmargs}" />
<arg line="${db.driver} ${db.url} ${sql.script} ${db.user} ${db.pwd}" />
<classpath refid="db.classpath" />
</java>
</target>
<target name="admin_command_common">
<echo message="Doing admin task ${admin.command}"/>
<sun-appserv-admin
command="${admin.command}"
user="${admin.user}"
password="${admin.password}"
host="${admin.host}"
port="${admin.port}"
sunonehome="${j2ee.home}" />
</target>
<target name="create-jdbc-resource_common">
<antcall target="admin_command_common">
<param name="admin.command"
value="create-jdbc-resource
--connectionpoolid ${conpool.name} ${jdbc.resource.name}" />
</antcall>
</target>
<target name="delete-jdbc-resource_common">
<antcall target="admin_command_common">
<param name="admin.command"
value="delete-jdbc-resource ${jdbc.resource.name}" />
</antcall>
</target>