user447607
user447607

Reputation: 5469

Gradle file system. Use '/' or File.separator?

In regards to Gradle / Groovy , is there any reason I should avoid using '/' instead of File.separator?

As Far as I Know, this was no longer an issue as of Java 7. ...excepting UI displays. Can't seem to find any comments regarding this so I think the answer is 'no' but I've sometimes found that the answer turns out to be, "Yes".

However, asking anyway. thanks

Upvotes: 1

Views: 1464

Answers (1)

mprivat
mprivat

Reputation: 21902

I always use / and it works fine.

Even in the Gradle docs, they don't bother so I'd imagine it's reasonably safe.

Upvotes: 3

Related Questions