forked from D-Net/dnet-hadoop
22 lines
526 B
Java
22 lines
526 B
Java
|
|
package eu.dnetlib.dhp.application;
|
|
|
|
import java.io.File;
|
|
import java.io.FileOutputStream;
|
|
import java.io.OutputStream;
|
|
import java.util.Properties;
|
|
|
|
public class ApplicationUtils {
|
|
|
|
public static void populateOOZIEEnv(final String paramName, String value) throws Exception {
|
|
File file = new File(System.getProperty("oozie.action.output.properties"));
|
|
Properties props = new Properties();
|
|
|
|
props.setProperty(paramName, value);
|
|
OutputStream os = new FileOutputStream(file);
|
|
props.store(os, "");
|
|
os.close();
|
|
}
|
|
|
|
}
|