addFile

fun addFile(file: File, targetDirectory: String)

Add a singular File to be written in the specified target directory path inside the jar.

Parameters

file

The File to write. Note this must not be a directory.

targetDirectory

The path relative directory where the file should be placed inside the jar file.