Skip to content

Commit a52750c

Browse files
Merge branch 'main' into feature/source-providers
2 parents 7930207 + 96ac933 commit a52750c

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

java/src/main/resources/META-INF/jqassistant-plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
id="jqassistant.plugin.typescript"
55
name="jQAssistant Typescript Plugin"
66
version="${project.version}">
7-
<description>Provides a scanner for Typescript.</description>
7+
<description>${project.description}</description>
88
<model>
99
<class>org.jqassistant.plugin.typescript.api.model.core.AccessorPropertyDescriptor</class>
1010
<class>org.jqassistant.plugin.typescript.api.model.core.AutoAccessorDeclarationDescriptor</class>

java/src/test/java/org/jqassistant/plugin/typescript/TestUtils.java

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import java.io.File;
44
import java.io.IOException;
5+
import java.net.URISyntaxException;
6+
import java.net.URL;
57
import java.nio.file.Files;
68
import java.nio.file.Path;
79
import java.nio.file.Paths;
@@ -11,7 +13,13 @@ public class TestUtils {
1113
private final String scanResourcePath;
1214

1315
public TestUtils() {
14-
scanResourcePath = TestUtils.class.getResource("/").getPath();
16+
String path = "";
17+
try {
18+
path = new File(TestUtils.class.getResource(".").toURI()).toPath().toString().replaceAll("\\\\", "/");
19+
} catch (URISyntaxException e) {
20+
throw new RuntimeException(e);
21+
}
22+
scanResourcePath = path;
1523
}
1624

1725
/**
@@ -21,11 +29,12 @@ public TestUtils() {
2129
*/
2230
public File getReportJson(String fileName) {
2331
try {
24-
Path inputPath = Paths.get(TestUtils.class.getResource("/" + fileName + ".json").getPath());
32+
URL resourceUrl = TestUtils.class.getResource("/" + fileName + ".json");
33+
Path inputPath = new File(resourceUrl.toURI()).toPath();
2534
String content = new String(Files.readAllBytes(inputPath));
2635
content = content.replaceAll("/java/src/test/resources/", scanResourcePath);
2736
Files.write(Paths.get(scanResourcePath + fileName + ".tmp.json"), content.getBytes());
28-
} catch (IOException e) {
37+
} catch (IOException | URISyntaxException e) {
2938
e.printStackTrace();
3039
}
3140
return new File(scanResourcePath + fileName + ".tmp.json");

pom.xml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@
1414
<packaging>pom</packaging>
1515

1616
<name>jQAssistant TypeScript Plugin Parent</name>
17-
<url>https://jqassistant.org/</url>
18-
19-
<description>
20-
Plugin for jQAssistant providing scanners and rules for Typescript.
21-
</description>
17+
<description>The jQAssistant plugin providing scanners and rules for TypeScript.</description>
18+
<url>https://github.com/jqassistant-plugin/jqassistant-typescript-plugin</url>
2219

2320
<organization>
2421
<name>jQAssistant Development Team</name>

0 commit comments

Comments
 (0)