package io.rtron.main.project

Classes

Name Description
class Project: Any

Methods

processAllFiles

fun processAllFiles(inInputDirectory: String, withExtension: String, toOutputDirectory: String, recursive: Boolean, setup: Project.()->Unit): (inInputDirectory: String, withExtension: String, toOutputDirectory: String = inInputDirectory + "_output", recursive: Boolean = true, setup: Project.() -> Unit)

Parameters

Name Description
inInputDirectory: String

path to the directory comprising the input models

withExtension: String

only process files with this extension

toOutputDirectory: String

path to the directory where new models and files are written to

recursive: Boolean
setup: Project.()->Unit

ReturnValue

Name Description
(inInputDirectory: String, withExtension: String, toOutputDirectory: String = inInputDirectory + "_output", recursive: Boolean = true, setup: Project.() -> Unit)

processAllFiles

fun processAllFiles(inInputDirectory: String, withExtensions: Set<String>, toOutputDirectory: String, recursive: Boolean, process: Project.()->Unit)

Iterates over all files contained in the inInputDirectory and having an extension contained in withExtensions. The process is executed on each of those input files.

Parameters

Name Description
inInputDirectory: String

path to the directory comprising the input models

withExtensions: Set<String>

only process files with these extensions

toOutputDirectory: String

path to the directory where new models and files are written to

recursive: Boolean

iterates recursively over the directory

process: Project.()->Unit

user defined process to be executed

ReturnValue

Name Description
Unit