Skip to content

Commit

Permalink
rd-gen: allow to run with empty source collection
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Jul 20, 2023
1 parent 33b0101 commit 7c533b6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ open class RdGenExtension(private val project: Project) {

fun toArguments(generatorsFile: File?): List<String?> {
val arguments = ArrayList<String?>()
arguments.add("-s")
arguments.add(java.lang.String.join(";", sourceFiles))
if (sourceFiles.isNotEmpty()) {
arguments.add("-s")
arguments.add(java.lang.String.join(";", sourceFiles))
}
if (hashFolder != null) {
arguments.add("-h")
arguments.add(hashFolder)
Expand Down

0 comments on commit 7c533b6

Please sign in to comment.