{"action":"created","issue":{"url":"https://api.github.com/repos/Adobe-Marketing-Cloud/tools/issues/7","labels_url":"https://api.github.com/repos/Adobe-Marketing-Cloud/tools/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/Adobe-Marketing-Cloud/tools/issues/7/comments","events_url":"https://api.github.com/repos/Adobe-Marketing-Cloud/tools/issues/7/events","html_url":"https://github.com/Adobe-Marketing-Cloud/tools/pull/7","id":119340860,"number":7,"title":"Support an alternative method for determining root directory","user":{"login":"nitin-nizhawan","id":309813,"avatar_url":"https://avatars.githubusercontent.com/u/309813?v=3","gravatar_id":"","url":"https://api.github.com/users/nitin-nizhawan","html_url":"https://github.com/nitin-nizhawan","followers_url":"https://api.github.com/users/nitin-nizhawan/followers","following_url":"https://api.github.com/users/nitin-nizhawan/following{/other_user}","gists_url":"https://api.github.com/users/nitin-nizhawan/gists{/gist_id}","starred_url":"https://api.github.com/users/nitin-nizhawan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitin-nizhawan/subscriptions","organizations_url":"https://api.github.com/users/nitin-nizhawan/orgs","repos_url":"https://api.github.com/users/nitin-nizhawan/repos","events_url":"https://api.github.com/users/nitin-nizhawan/events{/privacy}","received_events_url":"https://api.github.com/users/nitin-nizhawan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-29T06:21:43Z","updated_at":"2015-12-05T02:44:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Adobe-Marketing-Cloud/tools/pulls/7","html_url":"https://github.com/Adobe-Marketing-Cloud/tools/pull/7","diff_url":"https://github.com/Adobe-Marketing-Cloud/tools/pull/7.diff","patch_url":"https://github.com/Adobe-Marketing-Cloud/tools/pull/7.patch"},"body":"repo script maps a directory named jcr_root to \"/\" directory in repository\r\nAfter this change, users of this script can mark a directory with any name\r\nas \"/\" directory by creating an  empty file named \".jcr_root\" in that dir\r\n\r\nIf a directory named \"jcr_root\" is not found, this fix searches\r\nparent hierarchy to find a file named \".jcr_root\" if this file is found\r\nthen directory containing this file is used as root directory.\r\n\r\nSuch that following is now possible, name of current directory is\r\nimmaterial\r\n\r\n    mkdir -p content/apps\r\n    touch .jcr_root\r\n    repo get content/apps"},"comment":{"url":"https://api.github.com/repos/Adobe-Marketing-Cloud/tools/issues/comments/162133725","html_url":"https://github.com/Adobe-Marketing-Cloud/tools/pull/7#issuecomment-162133725","issue_url":"https://api.github.com/repos/Adobe-Marketing-Cloud/tools/issues/7","id":162133725,"user":{"login":"alexkli","id":229022,"avatar_url":"https://avatars.githubusercontent.com/u/229022?v=3","gravatar_id":"","url":"https://api.github.com/users/alexkli","html_url":"https://github.com/alexkli","followers_url":"https://api.github.com/users/alexkli/followers","following_url":"https://api.github.com/users/alexkli/following{/other_user}","gists_url":"https://api.github.com/users/alexkli/gists{/gist_id}","starred_url":"https://api.github.com/users/alexkli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexkli/subscriptions","organizations_url":"https://api.github.com/users/alexkli/orgs","repos_url":"https://api.github.com/users/alexkli/repos","events_url":"https://api.github.com/users/alexkli/events{/privacy}","received_events_url":"https://api.github.com/users/alexkli/received_events","type":"User","site_admin":false},"created_at":"2015-12-05T02:44:50Z","updated_at":"2015-12-05T02:44:50Z","body":"I would like to avoid the additional complexity. Do you have a good reason that prevents you from creating a `jcr_root` directory?\r\n\r\nThere are advantages to the `jcr_root` directory:\r\n* very obvious where the root is by just looking at the file system and paths (a `.jcr_root` is extremely hidden)\r\n* it is consistent with filevault and allows to use the content-package maven plugin natively on the same structure\r\n* a single way of doing things simplifies bug analysis, documentation and guidance"}}