Here you can find the source of getFolderInTarget(String folderName)
public static File getFolderInTarget(String folderName)
//package com.java2s; import java.io.File; public class Main { public static File getFolderInTarget(String folderName) { File folder = new File(new File("").getAbsoluteFile(), "target" + File.separator + folderName); if (!folder.exists()) { folder.mkdirs();/*from w w w. j a v a2s . com*/ } return folder; } }