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

org.oewntk.sql.out.GrindBuiltIn.kt Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2021-2024. Bernard Bou.
 */
package org.oewntk.sql.out

import org.oewntk.sql.out.CoreModelConsumer.Companion.builtins
import java.io.File
import java.io.IOException

/**
 * Main class that generates the WN database in the WNDB format as per wndb(5WN)
 *
 * @author Bernard Bou
 */
object GrindBuiltIn {

    /**
     * Main entry point
     *
     * @param args command-line arguments
     * @throws IOException io exception
     */
    @Throws(IOException::class)
    @JvmStatic
    fun main(args: Array) {

        // Output
        val outDir = File(args[0])
        if (!outDir.exists()) {
            outDir.mkdirs()
        }
        println("[Output] " + outDir.absolutePath)

        // Process
        builtins(outDir)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy