Closed kwhitehall closed 7 years ago
That sounds great @kwhitehall ! We could have a conf directory and keep the credentials file there.
hrm.. given the Scala Java environment, resources associated with the jar, should be in the /resources folder. Are you suggesting /resources/config/ to place the default credentials for jar? My original statement was referring to what folder and file should we put the actual code to read the credentials from a file in. Note that if no string representing a path is entered when that function is called, the code would use the credentials in the resources folder by default.
@kwhitehall
Ack'ed to the 1. /conf folder agreed, but I dont think the default file with the credentials should go in there. That should still be in resources... and the xml, yaml, etc. conf files related to the codebase should be in the top level conf/ folder [EDIT] New issue for this?
This has been addressed in PR #201.
I was just looking at apache nutch's conf directory where all the config files including httpclient-auth.xml is placed. We don't have to follow the practice. I agree, we can keep it in resources. It wouldn't change much. Makes sense to keep it in resources for just the examples.
Ack'ed. Closing this issue then. Feel free to open another one regarding the config folder.
For openDap services, some may require credentials. User shouldn't have to place these in the code. Instead, they should be able to place them in a file, and the code extracts username and pwd from the file. This functionality will be added to utils in a file OpenDapUtils? @rahulpalamuttam Thoughts on the location?