Skip to content

Commit 3c6d9d4

Browse files
ppkarwaszvy
andauthored
Improve consistency of quotes
Co-authored-by: Volkan Yazıcı <volkan@yazi.ci>
1 parent 2dad314 commit 3c6d9d4

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

log4j-parent/pom.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,28 +1029,28 @@
10291029
import java.util.spi.ToolProvider
10301030
10311031
if ("jar" != project.packaging) {
1032-
log.info('Skipping module descriptor check, since project type is not `jar`.')
1032+
log.info("Skipping module descriptor check, since the project type is not `jar`.")
10331033
return
10341034
}
1035-
String jarFile = project.build.directory + '/' + project.build.finalName + '.jar';
1035+
String jarFile = project.build.directory + "/" + project.build.finalName + ".jar";
10361036
if (!new File(jarFile).exists()) {
1037-
log.info('Skipping module descriptor check, since `' + project.build.finalName + '.jar` is missing.')
1037+
log.info("Skipping module descriptor check, since `" + jarFile + "` is missing.")
10381038
return
10391039
}
10401040
StringWriter out = new StringWriter()
10411041
StringWriter err = new StringWriter()
10421042
ToolProvider jar = ToolProvider.findFirst("jar").orElseThrow()
1043-
int result = jar.run(new PrintWriter(out), new PrintWriter(err), '-d', '-f', jarFile)
1043+
int result = jar.run(new PrintWriter(out), new PrintWriter(err), "-d", "-f", jarFile)
10441044
if (result != 0) {
1045-
throw new RuntimeException('Failed to decompile the module descriptor in ' + jarFile + ':\n' + err)
1045+
throw new RuntimeException("Failed to decompile the module descriptor in `" + jarFile + "`:\n" + err)
10461046
}
1047-
log.debug('Module descriptor: ' + out)
1048-
for (String line : out.toString().split('\r?\n', -1)) {
1049-
if (line.contains('static') && line.contains('transitive')) {
1050-
throw new RuntimeException("The 'static' and 'transitive' modifiers should not be use together: " + line)
1047+
log.debug("Module descriptor: " + out)
1048+
for (String line : out.toString().split("\r?\n", -1)) {
1049+
if (line.contains("static") && line.contains("transitive")) {
1050+
throw new RuntimeException("The `static` and `transitive` modifiers should not be use together: " + line)
10511051
}
10521052
}
1053-
log.info('Successfully verified module descriptor in `' + jarFile + '`.')
1053+
log.info("Successfully verified module descriptor in `" + jarFile + "`.")
10541054
]]></script>
10551055
</scripts>
10561056
</configuration>

0 commit comments

Comments
 (0)