/** * @return the writable home for the front-end settings, that can be kept separate from JSword's * configuration, as well from other front-ends. */ public URI getWritableFrontendProjectDir() { establishProjectHome(); return this.writableFrontEndHome; }
/** * @return the readable home for the front-end settings, that can be kept separate from JSword's * configuration, as well from other front-ends. */ public URI getReadableFrontendProjectDir() { establishProjectHome(); return this.frontendReadHome; }
/** * Get the writable user project directory. * * @return the writable user project directory. */ public URI getWritableProjectDir() { establishProjectHome(); return writeHome; }
/** * Get the locations where project resources can be found. * * @return an array of URIs which can be used to look up resources. */ public URI[] getProjectResourceDirs() { establishProjectHome(); return homes.clone(); }
/** * Establish how this project finds it's resources. * * @param homeProperty * a property that is used as the home directory name. If this * property has a value then homeDir and altHomeDir are ignored. * Defaults to jsword.home. * @param homeDir * the name of the directory to be used for Unix. Typically this * is a hidden directory, that is, it begins with a '.'. Defaults * to .jsword * @param altHomeDir * the name of the directory to be used for other OSes. This * should not be a hidden directory. Defaults to JSword. */ public static void setHome(String homeProperty, String homeDir, String altHomeDir) { CWProject.homeProperty = homeProperty; CWProject.homeDirectory = homeDir; CWProject.homeAltDirectory = altHomeDir; instance().establishProjectHome(); }