Java Path Relative Get getRelativePathToWWW(String fileName)

Here you can find the source of getRelativePathToWWW(String fileName)

Description

get Relative Path To WWW

License

Open Source License

Declaration

public static String getRelativePathToWWW(String fileName) 

Method Source Code

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

import java.io.File;

public class Main {
    public static String getRelativePathToWWW(String fileName) {
        return getRelativePathTo("www", fileName);
    }// www.java  2  s .  co  m

    private static String getRelativePathTo(String dir, String fileName) {
        return System.getProperty("user.dir") + File.separator + dir + fileName;
    }
}

Related

  1. getRelativePath(String targetPath, String basePath, String pathSeparator)
  2. getRelativePathOfZipEntry(final File fileToZip, final File base)
  3. getRelativePathRecursive(File file, File baseDir, String prefix)
  4. getRelativePathToBase(File path, File basePath)
  5. getRelativePathToTestModule()