1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

DbUtils is a small set of classes designed to make working with JDBC easier.

JDBC resource cleanup code is mundane, error prone work so these classes
abstract out all of the cleanup tasks from your code leaving you with what
you really wanted to do with JDBC in the first place: query and update data.

WWW: http://jakarta.apache.org/commons/dbutils/

PR:		93324
Submitted by:	Michael Winking <mwfp@foldl.net>
This commit is contained in:
Herve Quiroz 2006-02-16 15:45:51 +00:00
parent f5de944bae
commit db81573b3e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=156180
5 changed files with 80 additions and 0 deletions

View File

@ -71,6 +71,7 @@
SUBDIR += ip4r
SUBDIR += ipa_sdb
SUBDIR += isql-viewer
SUBDIR += jakarta-commons-dbutils
SUBDIR += jasperreports
SUBDIR += java-sqlrelay
SUBDIR += jdb

View File

@ -0,0 +1,50 @@
# Ports collection makefile for: Jakarta Commons DbUtils
# Date created: 14 Feb 2006
# Whom: Michael Winking <mwfp@foldl.net>
#
# $FreeBSD$
#
PORTNAME= commons-dbutils
PORTVERSION= 1.0
CATEGORIES= databases java
MASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA}
MASTER_SITE_SUBDIR= commons/dbutils/source
PKGNAMEPREFIX= jakarta-
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= mwfp@foldl.net
COMMENT= JDBC helper library
BUILD_DEPENDS= ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit
USE_JAVA= yes
JAVA_VERSION= 1.3+
USE_ANT= yes
MAKE_ARGS= -cp ${JAVAJARDIR}/junit.jar
ALL_TARGET= dist
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
.if !defined(NOPORTDOCS)
PORTDOCS= LICENSE.txt api
.endif
do-install:
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
# strangely the jar archive from a 1.0 build contains 1.1 as version number
@${INSTALL_DATA} ${WRKSRC}/dist/commons-dbutils-1.1-dev.jar \
${JAVAJARDIR}/${PORTNAME}.jar
@${ECHO_MSG} " [DONE]"
.if !defined(NOPORTDOCS)
@${ECHO_MSG} -n ">> Installing documentation..."
@${MKDIR} ${DOCSDIR}
@cd ${WRKSRC}/dist/docs && ${FIND} api \
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
@${INSTALL_DATA} ${WRKSRC}/dist/LICENSE.txt \
${DOCSDIR}/
@${ECHO_MSG} " [DONE]"
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (commons-dbutils-1.0-src.tar.gz) = 811b2d6e5c8c519c6196464ab89252a9
SHA256 (commons-dbutils-1.0-src.tar.gz) = 6bf5376457ca201d9086cd42d16a026ba0d2254912517bbbfeea64e806dd41a2
SIZE (commons-dbutils-1.0-src.tar.gz) = 28707

View File

@ -0,0 +1,20 @@
# use installed junit, instead of unnecessarily downloading and and building a custom one (which didn't work anyway)
*** build.xml.old Sun Jan 1 09:43:41 2006
--- build.xml Sun Jan 1 09:32:51 2006
***************
*** 139,152 ****
</javadoc>
</target>
<target name="get-deps" unless="noget" depends="init">
- <get dest="${libdir}/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar">
- </get>
- <get dest="${libdir}/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar">
- </get>
- <get dest="${libdir}/ant-1.5.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/ant/jars/ant-1.5.jar">
- </get>
- <get dest="${libdir}/ant-optional-1.5.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/ant/jars/ant-optional-1.5.jar">
- </get>
</target>
<target name="install-maven">
<get dest="${user.home}/maven-install-latest.jar" usetimestamp="true" src="${repo}/maven/maven-install-latest.jar">
--- 139,144 ----

View File

@ -0,0 +1,6 @@
DbUtils is a small set of classes designed to make working with JDBC easier.
JDBC resource cleanup code is mundane, error prone work so these classes
abstract out all of the cleanup tasks from your code leaving you with what
you really wanted to do with JDBC in the first place: query and update data.
WWW: http://jakarta.apache.org/commons/dbutils/