Class ProfileLocation


  • public final class ProfileLocation
    extends Object
    Utility method to handle 1C:Enterprise profiles location.cfg file and get actual location.
    Restriction:
    This class is not intended to be sub-classed by clients.
    Restriction:
    This class is not intended to be instantiated by clients.
    • Method Detail

      • getLocation

        public static Path getLocation​(Path locationFile)
                                throws IOException
        Get actual 1C:Enterprise profiles location by the profiles location.cfg config file.
        Parameters:
        locationFile - the profiles config file, cannot be null
        Returns:
        path to actual 1C:Enterprise profiles location or null if locationFile does not point to existing profile file or format is invalid
        Throws:
        IOException - if I/O error occurred