svn commit: rev 22403 - in avalon/trunk/planet/facilities/dbcp/impl: . etc src/java/org/apache/avalon/dbcp

[email protected]
Newsgroups gmane.comp.jakarta.avalon.cvs
Message-ID <[email protected]>
Author: mcconnell
Date: Wed Jun 30 22:31:39 2004
New Revision: 22403

Added:
   avalon/trunk/planet/facilities/dbcp/impl/src/java/org/apache/avalon/dbcp/DbcpConnectionManager.xprofile
Removed:
   avalon/trunk/planet/facilities/dbcp/impl/etc/
Modified:
   avalon/trunk/planet/facilities/dbcp/impl/build.xml
Log:
move block declaration into the build 

Modified: avalon/trunk/planet/facilities/dbcp/impl/build.xml
==============================================================================
--- avalon/trunk/planet/facilities/dbcp/impl/build.xml	(original)
+++ avalon/trunk/planet/facilities/dbcp/impl/build.xml	Wed Jun 30 22:31:39 2004
@@ -6,5 +6,14 @@
   <property file="build.properties"/>
   <import file="${project.system}/build/standard.xml"/>
 
+  <target name="build" depends="standard.build">
+    <x:property property="hsql.spec" key="avalon-db-hsql" feature="spec"/>
+    <x:block name="dbcp" embed="MAIN">
+      <x:include name="hsql-server" artifact="block:${hsql.spec}"/>
+      <x:component name="dbcp-manager" profile="dbcp-simulation" 
+         class="org.apache.avalon.dbcp.DbcpConnectionManager"/>
+    </x:block>
+  </target>
+
 </project>
 

Added: avalon/trunk/planet/facilities/dbcp/impl/src/java/org/apache/avalon/dbcp/DbcpConnectionManager.xprofile
==============================================================================
--- (empty file)
+++ avalon/trunk/planet/facilities/dbcp/impl/src/java/org/apache/avalon/dbcp/DbcpConnectionManager.xprofile	Wed Jun 30 22:31:39 2004
@@ -0,0 +1,18 @@
+<profiles>
+
+  <profile name="dbcp-simulation">
+    <configuration>
+      <datasources>
+        <datasource name="hsql" default="true">
+          <driver>org.hsqldb.jdbcDriver</driver>
+          <db-url>jdbc:hsqldb:hsql://localhost</db-url>
+          <username>sa</username>
+          <password></password>
+          <read-only>false</read-only>
+          <auto-commit>true</auto-commit>
+        </datasource>
+      </datasources>
+    </configuration>
+  </profile>
+
+</profiles>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.