Java Package Convert To packageToPath(String pkg)

Here you can find the source of packageToPath(String pkg)

Description

package To Path

License

Open Source License

Return

a path derived from the passed in package.

Declaration

public static String packageToPath(String pkg) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**/*from   w  w  w . j  a  v a2  s  .co m*/
     * @return a path derived from the passed in package.
     */
    public static String packageToPath(String pkg) {
        return "src/main/java/" + pkg.replace(".", "/");
    }
}

Related

  1. packageToDirectory(String sDestDir, String sPackage)
  2. PackageToInt(char pack)
  3. packageToPath(Class objClass)
  4. packageToPath(final String packageName)
  5. packageToPath(String basePackage)
  6. packageToResourcePath(String thePackage)
  7. packageToSrcFilePath(String packageName)