I have an implementation which reads a file and uses `java.net.URL` to take a path to open connection to.

In production code, the link of file will be on FTP but for testing the logic I want to use a file locally which I can read using `file` protocol instead of `ftp`.

I am using Spring and changed the file path to something like below-
**application-test.properties**

```
#file location 
enzyme.dat.ftp.link=file:///Users/username/project/src/test-integration/resources/input.dat

```

As you can see its a absolute path, which I need to make relative to my project. How can I do it?

I just need something like below-

```
#file location 
    enzyme.dat.ftp.link=file://${project.basedir}/src/test-integration/resources/input.dat

```