Skip to content

Commit 4901ad3

Browse files
cirrasfourls
authored andcommitted
Write generated DelphiTokenType class to the correct path
There was a mismatch between the file path: `org/sonar/plugins/delphi/api/token` And the package name: `org.sonar.plugins.communitydelphi.api.token`
1 parent 0110e79 commit 4901ad3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

delphi-tokens-generator-maven-plugin/src/main/java/au/com/integradev/delphi/DelphiTokensGenerator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ private List<TokenTypeRecord> readTokenTypes() throws IOException {
7676
}
7777

7878
private void generateEnum(List<TokenTypeRecord> tokenTypes) throws IOException {
79-
Path outputPath = outputDirectory.toPath().resolve("org/sonar/plugins/delphi/api/token");
79+
Path outputPath =
80+
outputDirectory.toPath().resolve("org/sonar/plugins/communitydelphi/api/token");
8081

8182
Files.createDirectories(outputPath);
8283

delphi-tokens-generator-maven-plugin/src/test/java/au/com/integradev/delphi/DelphiTokensGeneratorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ private static String getTokenFactory(Path root) {
291291
private static String getTokenEnum(Path root) {
292292
try {
293293
return Files.readString(
294-
root.resolve("out/org/sonar/plugins/delphi/api/token/DelphiTokenType.java"));
294+
root.resolve("out/org/sonar/plugins/communitydelphi/api/token/DelphiTokenType.java"));
295295
} catch (IOException e) {
296296
throw new UncheckedIOException(e);
297297
}

0 commit comments

Comments
 (0)