I am running a java project through build.xml using ant. There is one class which has this line:
FileInputStream fis =new FileInputStream("./InputFile/"+workbookName);
When I run through ant it throws
java.io.FileNotFoundException: .\InputFile\LG.xlsx (The system cannot find the path specified)
If I specify full path in class
FileInputStream fis =new FileInputStream("C//InputFi//"+workbookName);
then it works fine from ant
But my requirement is to keep relative path and run through ant. Kindly let me know if there's any way