agave-apps/apps-core/src/test/java/org/iplantc/service/apps/util/DomainSetup.java
/**
     * Write a file out to filesystem
     * @param file  File to write out
     * @param content  String content
     * @return  true for success
     */
Write a file out to filesystem
@param file  File to write out
@param content  String content
@return  true for success
Write a file out to filesystem @param file File to write out @param content String content @return true for success
public boolean writeDataFile(File file, String content){
        try {
            FileUtils.writeStringToFile(file,content);
        } catch (IOException e) {
            String name = file.getName();
            System.out.println("failed writing "+name+" to file");
            e.printStackTrace();
            return false;
        }
        return true;
    }
public boolean writeDataFile ( File file , String content ) { try { FileUtils . writeStringToFile ( file , content ) ; } catch ( IOException e ) { String name = file . getName ( ) ; System . out . println ( "failed writing " + name + " to file" ) ; e . printStackTrace ( ) ; return false ; } return true ; }
Write a file out to filesystem
 @param file  File to write out
 @param content  String content
 @return  true for success
Write a file out to filesystem @param file File to write out @param content String content @return true for success