Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19859

Getting relative path of a subfolder under root folder

$
0
0

You probably want Project.file(Object). Eg

File file1 = file('path/to/file1') 
File file2 = rootProject.file('path/to/file2') 
println "$file1.absolutePath $file2.absolutePath"

Viewing all articles
Browse latest Browse all 19859

Trending Articles