Here you can find the source of packageToPath(String basePackage)
public static String packageToPath(String basePackage)
//package com.java2s; //License from project: Open Source License public class Main { public static String packageToPath(String basePackage) { return basePackage.replaceAll("\\.", "/") + "/"; }/*from w w w . j av a 2 s . c o m*/ }