Skip to content

Commit 1964040

Browse files
committed
Use toURI instead of getFile which doesn't have file scheme
1 parent 64cb303 commit 1964040

15 files changed

Lines changed: 39 additions & 37 deletions

File tree

biojava-aa-prop/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<parent>
33
<artifactId>biojava</artifactId>
44
<groupId>org.biojava</groupId>
5-
<version>7.1.2-SNAPSHOT</version>
5+
<version>7.1.3-SNAPSHOT</version>
66
</parent>
77
<modelVersion>4.0.0</modelVersion>
88
<artifactId>biojava-aa-prop</artifactId>
@@ -70,12 +70,12 @@
7070
<dependency>
7171
<groupId>org.biojava</groupId>
7272
<artifactId>biojava-core</artifactId>
73-
<version>7.1.2-SNAPSHOT</version>
73+
<version>7.1.3-SNAPSHOT</version>
7474
</dependency>
7575
<dependency>
7676
<groupId>org.biojava</groupId>
7777
<artifactId>biojava-structure</artifactId>
78-
<version>7.1.2-SNAPSHOT</version>
78+
<version>7.1.3-SNAPSHOT</version>
7979
</dependency>
8080

8181
<!-- logging dependencies (managed by parent pom, don't set versions or scopes here) -->

biojava-alignment/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<artifactId>biojava</artifactId>
66
<groupId>org.biojava</groupId>
7-
<version>7.1.2-SNAPSHOT</version>
7+
<version>7.1.3-SNAPSHOT</version>
88
</parent>
99
<artifactId>biojava-alignment</artifactId>
1010
<name>biojava-alignment</name>
@@ -47,7 +47,7 @@
4747
<dependency>
4848
<groupId>org.biojava</groupId>
4949
<artifactId>biojava-core</artifactId>
50-
<version>7.1.2-SNAPSHOT</version>
50+
<version>7.1.3-SNAPSHOT</version>
5151
<scope>compile</scope>
5252
</dependency>
5353
<dependency>

biojava-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<artifactId>biojava</artifactId>
55
<groupId>org.biojava</groupId>
6-
<version>7.1.2-SNAPSHOT</version>
6+
<version>7.1.3-SNAPSHOT</version>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
99
<artifactId>biojava-core</artifactId>

biojava-core/src/test/java/org/biojava/nbio/core/sequence/io/FastaStreamerTest.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import org.junit.Test;
66

77
import java.io.IOException;
8+
import java.net.URI;
9+
import java.net.URISyntaxException;
810
import java.nio.file.Path;
911
import java.nio.file.Paths;
1012
import java.util.List;
@@ -16,9 +18,9 @@
1618
public class FastaStreamerTest {
1719

1820
@Test
19-
public void stream() throws IOException {
20-
String file = this.getClass().getResource("PF00104_small.fasta.gz").getFile();
21-
Path path = Paths.get(file);
21+
public void stream() throws IOException, URISyntaxException {
22+
URI fileUri = this.getClass().getResource("PF00104_small.fasta.gz").toURI();
23+
Path path = Paths.get(fileUri);
2224
List<ProteinSequence> sequences;
2325

2426
sequences = FastaStreamer.from(path).stream().collect(Collectors.toList());
@@ -38,9 +40,9 @@ public void stream() throws IOException {
3840
}
3941

4042
@Test
41-
public void iterate() {
42-
String file = this.getClass().getResource("PF00104_small.fasta.gz").getFile();
43-
Path path = Paths.get(file);
43+
public void iterate() throws URISyntaxException {
44+
URI fileUri = this.getClass().getResource("PF00104_small.fasta.gz").toURI();
45+
Path path = Paths.get(fileUri);
4446
int count = 0;
4547
for (ProteinSequence sequence : FastaStreamer.from(path).each()) {
4648
count++;

biojava-genome/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<artifactId>biojava</artifactId>
55
<groupId>org.biojava</groupId>
6-
<version>7.1.2-SNAPSHOT</version>
6+
<version>7.1.3-SNAPSHOT</version>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
99
<artifactId>biojava-genome</artifactId>
@@ -70,13 +70,13 @@
7070
<dependency>
7171
<groupId>org.biojava</groupId>
7272
<artifactId>biojava-core</artifactId>
73-
<version>7.1.2-SNAPSHOT</version>
73+
<version>7.1.3-SNAPSHOT</version>
7474
<scope>compile</scope>
7575
</dependency>
7676
<dependency>
7777
<groupId>org.biojava</groupId>
7878
<artifactId>biojava-alignment</artifactId>
79-
<version>7.1.2-SNAPSHOT</version>
79+
<version>7.1.3-SNAPSHOT</version>
8080
<scope>compile</scope>
8181
</dependency>
8282
<dependency>

biojava-integrationtest/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<artifactId>biojava</artifactId>
66
<groupId>org.biojava</groupId>
7-
<version>7.1.2-SNAPSHOT</version>
7+
<version>7.1.3-SNAPSHOT</version>
88
</parent>
99
<artifactId>biojava-integrationtest</artifactId>
1010
<packaging>jar</packaging>
@@ -40,7 +40,7 @@
4040
<dependency>
4141
<groupId>org.biojava</groupId>
4242
<artifactId>biojava-structure</artifactId>
43-
<version>7.1.2-SNAPSHOT</version>
43+
<version>7.1.3-SNAPSHOT</version>
4444
</dependency>
4545
<!-- logging dependencies (managed by parent pom, don't set versions or scopes here) -->
4646
<dependency>

biojava-modfinder/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<artifactId>biojava</artifactId>
66
<groupId>org.biojava</groupId>
7-
<version>7.1.2-SNAPSHOT</version>
7+
<version>7.1.3-SNAPSHOT</version>
88
</parent>
99
<artifactId>biojava-modfinder</artifactId>
1010
<name>biojava-modfinder</name>
@@ -31,7 +31,7 @@
3131
<dependency>
3232
<groupId>org.biojava</groupId>
3333
<artifactId>biojava-structure</artifactId>
34-
<version>7.1.2-SNAPSHOT</version>
34+
<version>7.1.3-SNAPSHOT</version>
3535
<type>jar</type>
3636
<scope>compile</scope>
3737
</dependency>

biojava-ontology/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.biojava</groupId>
66
<artifactId>biojava</artifactId>
7-
<version>7.1.2-SNAPSHOT</version>
7+
<version>7.1.3-SNAPSHOT</version>
88
</parent>
99

1010
<artifactId>biojava-ontology</artifactId>

biojava-protein-comparison-tool/pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<artifactId>biojava</artifactId>
66
<groupId>org.biojava</groupId>
7-
<version>7.1.2-SNAPSHOT</version>
7+
<version>7.1.3-SNAPSHOT</version>
88
</parent>
99

1010
<artifactId>biojava-protein-comparison-tool</artifactId>
@@ -36,23 +36,23 @@
3636
<dependency>
3737
<groupId>org.biojava</groupId>
3838
<artifactId>biojava-alignment</artifactId>
39-
<version>7.1.2-SNAPSHOT</version>
39+
<version>7.1.3-SNAPSHOT</version>
4040

4141
</dependency>
4242
<dependency>
4343
<groupId>org.biojava</groupId>
4444
<artifactId>biojava-core</artifactId>
45-
<version>7.1.2-SNAPSHOT</version>
45+
<version>7.1.3-SNAPSHOT</version>
4646
</dependency>
4747
<dependency>
4848
<groupId>org.biojava</groupId>
4949
<artifactId>biojava-structure</artifactId>
50-
<version>7.1.2-SNAPSHOT</version>
50+
<version>7.1.3-SNAPSHOT</version>
5151
</dependency>
5252
<dependency>
5353
<groupId>org.biojava</groupId>
5454
<artifactId>biojava-structure-gui</artifactId>
55-
<version>7.1.2-SNAPSHOT</version>
55+
<version>7.1.3-SNAPSHOT</version>
5656
</dependency>
5757
<dependency>
5858
<groupId>net.sourceforge.jmol</groupId>

biojava-protein-disorder/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<artifactId>biojava</artifactId>
55
<groupId>org.biojava</groupId>
6-
<version>7.1.2-SNAPSHOT</version>
6+
<version>7.1.3-SNAPSHOT</version>
77
</parent>
88
<artifactId>biojava-protein-disorder</artifactId>
99
<packaging>jar</packaging>
@@ -63,7 +63,7 @@
6363
<dependency>
6464
<groupId>org.biojava</groupId>
6565
<artifactId>biojava-core</artifactId>
66-
<version>7.1.2-SNAPSHOT</version>
66+
<version>7.1.3-SNAPSHOT</version>
6767
</dependency>
6868
<!-- logging dependencies (managed by parent pom, don't set versions or
6969
scopes here) -->

0 commit comments

Comments
 (0)