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

io.quarkus.jgit.runtime.FSSubstitution Maven / Gradle / Ivy

There is a newer version: 3.3.0
Show newest version
package io.quarkus.jgit.runtime;

import java.io.File;

import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;

@TargetClass(className = "org.eclipse.jgit.util.FS")
public final class FSSubstitution {

    /**
     * The original method caches the user.home property during build time.
     *
     * TODO: Find a way to call userHomeImpl() instead and cache the result
     */
    @Substitute
    public File userHome() {
        return new File(System.getProperty("user.home")).getAbsoluteFile();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy