You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by th...@apache.org on 2003/06/03 11:20:53 UTC
cvs commit: db-ojb build.xml
thma 2003/06/03 02:20:53
Modified: src/test/org/apache/ojb repository.xml
. build.xml
Log:
Providing A PUBLIC identifier to repository xml, as recommended by James Holmes.
Also provided a public url for the dtd
Revision Changes Path
1.17 +24 -6 db-ojb/src/test/org/apache/ojb/repository.xml
Index: repository.xml
===================================================================
RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/repository.xml,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- repository.xml 30 Mar 2003 20:13:00 -0000 1.16
+++ repository.xml 3 Jun 2003 09:20:52 -0000 1.17
@@ -1,9 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- This is a sample metadata repository for the ObJectBridge System.
- Use this file as a template for building your own mappings-->
-
-<!-- defining entities for include-files -->
-<!DOCTYPE descriptor-repository SYSTEM "repository.dtd" [
+<!-- This is a sample metadata repository for the
+ Apache ObJectRelationalBridge (OJB) System.
+ Use this file as a template for building your own mappings.
+-->
+
+<!-- doctype definition
+ By default we are using a local DTD that is expected to reside
+ in the same directory as this repository.xml file.
+ If you intend to validate your repository.xml against
+ the public dtd at the Apache site, please replace the string
+ "repository.dtd"
+ by the public adress
+ "http://db.apache.org/ojb/dtds/1.0/repository.dtd".
+ In this case validation will only work if the machine you
+ run your application on can connect to the internet!
+-->
+
+<!DOCTYPE descriptor-repository PUBLIC
+ "-//Apache Software Foundation//DTD OJB Repository//EN"
+ "repository.dtd"
+[
<!ENTITY database SYSTEM "repository_database.xml">
<!ENTITY internal SYSTEM "repository_internal.xml">
<!ENTITY junit SYSTEM "repository_junit.xml">
@@ -22,7 +38,9 @@
&internal;
<!-- include mappings for JUnit tests -->
- <!-- This could be removed (with <!ENTITY entry), if junit test suite was not used -->
+ <!-- This could be removed (with <!ENTITY entry),
+ if junit test suite was not used
+ -->
&junit;
<!-- include user defined mappings here -->
1.87 +2 -0 db-ojb/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/db-ojb/build.xml,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -r1.86 -r1.87
--- build.xml 29 May 2003 14:23:14 -0000 1.86
+++ build.xml 3 Jun 2003 09:20:53 -0000 1.87
@@ -1010,12 +1010,14 @@
</copy>
<!-- Copy static resource files -->
+ <mkdir dir="${build.dir}/doc/dtds/1.0"/>
<copy todir="${build.dir}/doc" filtering="no">
<fileset dir="${source}/test/org/apache/ojb">
<include name="repository*.*"/>
</fileset>
</copy>
<copy file="${src.test}/org/apache/ojb/repository.dtd" tofile="${build.dir}/doc/repository.dtd.txt" />
+ <copy file="${src.test}/org/apache/ojb/repository.dtd" tofile="${build.dir}/doc/dtds/1.0/repository.dtd" />
<copy file="${src.test}/org/apache/ojb/repository.xml" tofile="${build.dir}/doc/repository.xml.txt" />
<copy file="${src.test}/org/apache/ojb/repository_internal.xml" tofile="${build.dir}/doc/repository_internal.xml.txt" />
<copy file="${src.test}/org/apache/ojb/repository_junit.xml" tofile="${build.dir}/doc/repository_junit.xml.txt" />