Java Properties Load from File LoadDeployedObjects(String outputDirectory)

Here you can find the source of LoadDeployedObjects(String outputDirectory)

Description

Load Deployed Objects

License

Apache License

Declaration

private static void LoadDeployedObjects(String outputDirectory) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.io.File;
import java.io.FileInputStream;

import java.util.Properties;

public class Main {
    private static String DEPLOYED_OBJECT_FILE = "DeployedObjects.properties";
    private static Properties deployedObjectsList = new Properties();

    private static void LoadDeployedObjects(String outputDirectory) {
        String file = outputDirectory + "/savedobjects/"
                + DEPLOYED_OBJECT_FILE;//  w ww  . j av a2  s  . co m
        if (FileExists(file)) {
            try {
                FileInputStream inputStream = new FileInputStream(file);
                deployedObjectsList.load(inputStream);
                inputStream.close();
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }

    public static boolean FileExists(String fileName) {
        File f = new File(fileName);
        return f.exists();
    }
}

Related

  1. loadCryptoProperties()
  2. loadDBProperties(String dbConn)
  3. loadDefault(String _file_path)
  4. loadDefaultConfiguration()
  5. loadDefaultProps(Properties deployProps)
  6. loadEnv(final String configFilePath)
  7. loadErrorMap(InputStream resourceStream)
  8. loadEscaping(Properties prop, InputStream stream)
  9. loadFixedCommits()