summaryrefslogtreecommitdiff
path: root/libjava/scripts
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-09 22:10:49 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-09 22:10:49 +0000
commit2f008994736cbcb2058f9e65e30f5f67471d3880 (patch)
tree8d8bb8d9bb36472457aae78ee0ed674adca977a2 /libjava/scripts
parentfd4e76d2eaf12c314869a4ed5813b67ea4e1026a (diff)
downloadgcc-2f008994736cbcb2058f9e65e30f5f67471d3880.tar.gz
* sources.am, Makefile.in: Rebuilt.
* scripts/makemake.tcl (scan_directory): Allow service files to be omitted. Omit all XML-related service files. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122764 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/scripts')
-rwxr-xr-xlibjava/scripts/makemake.tcl14
1 files changed, 12 insertions, 2 deletions
diff --git a/libjava/scripts/makemake.tcl b/libjava/scripts/makemake.tcl
index 4ac29a5fa30..47c460a7c7a 100755
--- a/libjava/scripts/makemake.tcl
+++ b/libjava/scripts/makemake.tcl
@@ -123,6 +123,14 @@ set properties_map(java/util/logging) _
# We haven't merged locale resources yet.
set properties_map(gnu/java/locale) _
+# We want to be able to load xerces if it is on the class path. So,
+# we have to avoid compiling in the XML-related service files.
+set properties_map(META-INF/services/javax.xml.parsers.DocumentBuilderFactory) _
+set properties_map(META-INF/services/javax.xml.parsers.SAXParserFactory) _
+set properties_map(META-INF/services/javax.xml.parsers.TransformerFactory) _
+set properties_map(META-INF/services/org.relaxng.datatype.DatatypeLibraryFactory) _
+set properties_map(META-INF/services/org.w3c.dom.DOMImplementationSourceList) _
+set properties_map(META-INF/services/org.xml.sax.driver) _
# List of all properties files.
set properties_files {}
@@ -223,8 +231,10 @@ proc scan_directory {basedir subdir} {
} elseif {[file isdirectory $file]} {
lappend subdirs $subdir/$file
} elseif {$subdir == "META-INF/services"} {
- # All service files are included as properties.
- lappend properties_files $basedir/$subdir/$file
+ # Service files are generally included as properties.
+ if {! [info exists properties_map($subdir/$file)]} {
+ lappend properties_files $basedir/$subdir/$file
+ }
}
}
cd $here