aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test/tst-rsrc/META-INF
diff options
context:
space:
mode:
authorKevin Sawicki <kevin@github.com>2012-03-19 22:00:49 -0700
committerChris Aniszczyk <zx@twitter.com>2012-03-21 14:07:55 -0700
commitbbfa4c9b2c1df1471b48bed5a130d1d97aecb82e (patch)
treec321d2d0a904328474b822db4e9cb4cc16f40ef5 /org.eclipse.jgit.test/tst-rsrc/META-INF
parent7aeea3b27c86e638dae2328929769703db5f1a89 (diff)
downloadjgit-bbfa4c9b2c1df1471b48bed5a130d1d97aecb82e.tar.gz
jgit-bbfa4c9b2c1df1471b48bed5a130d1d97aecb82e.zip
Ignore trailing comments in transport SPI parsing
Check for a '#' character in each line read and parse the leading characters as the class name of a TransportProtocol being registered via SPI. Bug: 373439 Change-Id: If36cb62c07ecea78ba0f326a87edf1d80b7b42b6 Signed-off-by: Chris Aniszczyk <zx@twitter.com>
Diffstat (limited to 'org.eclipse.jgit.test/tst-rsrc/META-INF')
-rw-r--r--org.eclipse.jgit.test/tst-rsrc/META-INF/services/org.eclipse.jgit.transport.Transport7
1 files changed, 7 insertions, 0 deletions
diff --git a/org.eclipse.jgit.test/tst-rsrc/META-INF/services/org.eclipse.jgit.transport.Transport b/org.eclipse.jgit.test/tst-rsrc/META-INF/services/org.eclipse.jgit.transport.Transport
new file mode 100644
index 0000000000..6019ac6e39
--- /dev/null
+++ b/org.eclipse.jgit.test/tst-rsrc/META-INF/services/org.eclipse.jgit.transport.Transport
@@ -0,0 +1,7 @@
+# Comment at beginning
+org.eclipse.jgit.transport.SpiTransport # spi
+ # Comment after just whitespace
+org.eclipse.jgit.transport.MissingTransport
+
+
+ \ No newline at end of file