]> source.dussan.org Git - jgit.git/commit
Ignore trailing comments in transport SPI parsing 88/5388/5
authorKevin Sawicki <kevin@github.com>
Tue, 20 Mar 2012 05:00:49 +0000 (22:00 -0700)
committerChris Aniszczyk <zx@twitter.com>
Wed, 21 Mar 2012 21:07:55 +0000 (14:07 -0700)
commitbbfa4c9b2c1df1471b48bed5a130d1d97aecb82e
treec321d2d0a904328474b822db4e9cb4cc16f40ef5
parent7aeea3b27c86e638dae2328929769703db5f1a89
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>
org.eclipse.jgit.test/tst-rsrc/META-INF/services/org.eclipse.jgit.transport.Transport [new file with mode: 0644]
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/SpiTransport.java [new file with mode: 0644]
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/TransportTest.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/Transport.java