Here you can find the source of serializeDistributionType(String distributionType, String HadoopDistribution)
private static void serializeDistributionType(String distributionType, String HadoopDistribution) throws IOException
//package com.java2s; //License from project: LGPL import java.io.File; import java.io.FileWriter; import java.io.IOException; public class Main { private static void serializeDistributionType(String distributionType, String HadoopDistribution) throws IOException { FileWriter writer = new FileWriter(new File("./WEB-INF/classes/distributionInfo.properties")); writer.write("DistributionType=" + distributionType); writer.write("\n"); writer.write("HadoopDistribution=" + HadoopDistribution); writer.close();/*from ww w. java2 s .c om*/ } }