private String genProjectDir()

in tools/erlanalysis/src/main/java/org/apache/dubbo/erlang/analysis/utils/MavenJarUtil.java [155:171]


    private String genProjectDir(String savedir) {


        String tmpSavePath;
        if (savedir.endsWith(File.separator)) {
            tmpSavePath = String.format("%s%s%s%s", savedir, this.artifactId, File.separator, this.version);
        } else {
            tmpSavePath = String.format("%s%s%s%s%s", savedir, File.separator, this.artifactId, File.separator, this.version);
        }
        File rootDir = new File(tmpSavePath);
        if (!rootDir.exists()) {
            if (!rootDir.mkdirs()) {
                return null;
            }
        }
        return tmpSavePath;
    }