[Test] Don't fail generation of tests if License file not found
This commit is contained in:
committed by
teamcity
parent
2c6aea47b1
commit
543675d99d
+1
-1
@@ -124,7 +124,7 @@ class NewTestGeneratorImpl(
|
|||||||
val out = StringBuilder()
|
val out = StringBuilder()
|
||||||
val p = Printer(out)
|
val p = Printer(out)
|
||||||
|
|
||||||
val copyright = File("license/COPYRIGHT_HEADER.txt").readText()
|
val copyright = File("license/COPYRIGHT_HEADER.txt").takeIf { it.exists() }?.readText() ?: ""
|
||||||
p.println(copyright)
|
p.println(copyright)
|
||||||
p.println()
|
p.println()
|
||||||
p.println("package $suiteClassPackage;")
|
p.println("package $suiteClassPackage;")
|
||||||
|
|||||||
Reference in New Issue
Block a user