Simplified Annotations

This plugin evaluates string expressions marked with the @ResourcePath annotation to check if resource files exist.

Supported String Resolution

Code Example

    // Class Field
    @ResourcePath
    private String configFile = "config/settings.xml";

    // Class Field (with base)
    @ResourcePath(base = "config")
    private String configFileWithBase = "settings.xml";

    // Method Return (with base)
    @ResourcePath(base = "config")
    public String returnResource(String fileName) {
        return fileName;
    }

    // Method Parameter (with base)
    public void loadResource(@ResourcePath(base = "config") String fileName) {
        // implementation
    }

    // Enum Constructor
    public enum Files {
        SETTINGS("settings.xml"); // assets/logo.png

        private final String path;

        Status(@ResourcePath(base = "config") String path) {
            this.path = "config/" + path;
        }
    }