#1507 Invalid Uri scheme for local file: fan://comTsLdap/res/prop.txt

tcolar Tue 26 Apr 2011

I get :

ERROR: Cannot make test comTsLdap::TestLdap
sys::ArgErr: Invalid Uri scheme for local file: fan://comTsLdap/res/prop.txt

I thought it should work according to the docs:

f := File(`fan://${this.typeof.pod.name}/res/prop.txt`)

tcolar Tue 26 Apr 2011

I changed it to use a file like this:

File propsFile := this.typeof.pod.file(`/res/prod.properties`)

That Works.

vkuzkokov Tue 26 Apr 2011

File.make docs explicitly say that make throws ArgErr if its not file://... URI.

File f := `fan://comTsLdap/res/prop.txt`.get

is what you probably meant.

Login or Signup to reply.