Java tutorial
//package com.java2s; public class Main { /** * @return */ public static String getDataSourceFileName() { String userDir = System.getProperty("user.dir"); String fileName = userDir + "\\datasource.xml"; return fileName; } }