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

no.nav.common.test.path.FilesAndDirs Maven / Gradle / Ivy

There is a newer version: 2.2023.01.10_13.49-81ddc732df3a
Show newest version
package no.nav.common.test.path;

import java.io.File;
import java.io.IOException;
import java.net.URISyntaxException;

public final class FilesAndDirs {

    static {
        try {
            File classesDir = new File(FilesAndDirs.class.getResource("/").toURI());
            PROJECT_BASEDIR = new File(classesDir, "../../").getCanonicalFile();
        } catch (URISyntaxException | IOException e) {
            throw new RuntimeException(e.getMessage(), e);
        }
    }

    public static final File PROJECT_BASEDIR;


    public static final File MAIN_DIR = new File(PROJECT_BASEDIR, "src/main");
    public static final File TEST_DIR = new File(PROJECT_BASEDIR, "src/test");


    public static final File RESOURCES = new File(MAIN_DIR, "resources");
    public static final File TEST_RESOURCES = new File(TEST_DIR, "resources");


    public static final File WEBAPP_SOURCE = new File(MAIN_DIR, "webapp");
    public static final File TEST_WEBAPP_SOURCE = new File(TEST_DIR, "webapp");


    public static final File BUILD_OUTPUT = new File(PROJECT_BASEDIR, "target");
    public static final File POM_XML = new File(PROJECT_BASEDIR, "pom.xml");


    private FilesAndDirs() { }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy