All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.eowise.imagemagick.params.FormattingParam.groovy Maven / Gradle / Ivy

The newest version!
package com.eowise.imagemagick.params

import org.gradle.api.file.FileVisitDetails

/**
 * Created by aurel on 11/03/15.
 */
class FormattingParam implements Param {

    String format
    ComputedFileParam inputFile

    FormattingParam(String format, ComputedFileParam inputFile) {
        this.format = format
        this.inputFile = inputFile
    }

    @Override
    LinkedList toParams(FileVisitDetails details) {
        def toReturn = []

        toReturn.addAll(inputFile.toParams(details))
        toReturn.add('-format')
        toReturn.add(format)
        toReturn.add('info:')


        return toReturn
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy