Skip to content

Repository files navigation

codegen-base

Base of code generators.

This project requires JDK 17 to compile and run.

Usage

void main() {
    // load the cache
    GeneratedFileCache cache = GeneratedFileCache.tryLoad(BASE_DIR, CACHE_FILE);
    // write the file, if not cached
    boolean written = cache.writeFile(FILE_PATH, FILE_CONTENT);
    System.out.println("Is written: " + written);
    // save the cache
    cache.save();
}

Where:

  • BASE_DIR is the base directory of all files in the cache (not the base directory of the cache)
  • CACHE_FILE is the path to the cache
  • FILE_PATH is the path to the file to be written
  • FILE_CONTENT is the content of the file

Download

Version: Maven Central Version

Introduce this dependency:

dependencies {
    implementation("io.github.over-run:codegen-base:${codegenBaseVersion}")
}

About

Some file-related utilities for our code generators

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages