{"action":"created","issue":{"url":"https://api.github.com/repos/craigburke/angular-template-asset-pipeline/issues/16","labels_url":"https://api.github.com/repos/craigburke/angular-template-asset-pipeline/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/craigburke/angular-template-asset-pipeline/issues/16/comments","events_url":"https://api.github.com/repos/craigburke/angular-template-asset-pipeline/issues/16/events","html_url":"https://github.com/craigburke/angular-template-asset-pipeline/issues/16","id":57079973,"number":16,"title":"File path tokenize fails with the use of GenericAssetFile","user":{"login":"dmahapatro","id":3135153,"avatar_url":"https://avatars.githubusercontent.com/u/3135153?v=3","gravatar_id":"","url":"https://api.github.com/users/dmahapatro","html_url":"https://github.com/dmahapatro","followers_url":"https://api.github.com/users/dmahapatro/followers","following_url":"https://api.github.com/users/dmahapatro/following{/other_user}","gists_url":"https://api.github.com/users/dmahapatro/gists{/gist_id}","starred_url":"https://api.github.com/users/dmahapatro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmahapatro/subscriptions","organizations_url":"https://api.github.com/users/dmahapatro/orgs","repos_url":"https://api.github.com/users/dmahapatro/repos","events_url":"https://api.github.com/users/dmahapatro/events{/privacy}","received_events_url":"https://api.github.com/users/dmahapatro/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-09T19:47:41Z","updated_at":"2015-02-09T21:02:32Z","closed_at":"2015-02-09T20:59:13Z","body":"@craigburke adding windows related issues here which can be discussed separately and closed if not needed.\r\n\r\nI tested using `GenericAssetFile`\r\n\r\n```groovy\r\npublic String getName() {\r\n\tpath.split(\"/\")[-1]\r\n}\r\n```\r\n\r\nbut 6 tests failed, one of them is \r\n\r\n```groovy\r\nCondition not satisfied:\r\n\r\nTemplateProcessorUtil.getTemplateName(assetFile, 'templates', withPath) == result\r\n                      |               |                       |         |  |\r\n                      |               |                       true      |  \\foo-bar1\\foo-bar2\\foo-bar3\\foo-bar4\\foobar.html\r\n                      |               |                                 false\r\n                      |               |                                 36 differences (57% similarity)\r\n                      |               |                                 \\\\foo-bar1\\\\foo-bar2\\\\foo-bar3\\\\foo-bar4\\\\foo(-)bar(1\\\\foo-bar2\\\\foo-bar3\\\\foo-bar4\\\\foobar).html\r\n                      |               |                                 \\\\foo-bar1\\\\foo-bar2\\\\foo-bar3\\\\foo-bar4\\\\foo(-)bar(--~---------~---------~---------~------).html\r\n                      |               asset.pipeline.GenericAssetFile@11427db\r\n                      \\foo-bar1\\foo-bar2\\foo-bar3\\foo-bar4\\foo-bar1\\foo-bar2\\foo-bar3\\foo-bar4\\foobar.html\r\n\r\n\tat com.craigburke.angular.TemplateProcessorUtilUnitSpec.covert path: #path to template name #withPathDescription(TemplateProcessorUtilSpec.groovy:46)\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/craigburke/angular-template-asset-pipeline/issues/comments/73589399","html_url":"https://github.com/craigburke/angular-template-asset-pipeline/issues/16#issuecomment-73589399","issue_url":"https://api.github.com/repos/craigburke/angular-template-asset-pipeline/issues/16","id":73589399,"user":{"login":"dmahapatro","id":3135153,"avatar_url":"https://avatars.githubusercontent.com/u/3135153?v=3","gravatar_id":"","url":"https://api.github.com/users/dmahapatro","html_url":"https://github.com/dmahapatro","followers_url":"https://api.github.com/users/dmahapatro/followers","following_url":"https://api.github.com/users/dmahapatro/following{/other_user}","gists_url":"https://api.github.com/users/dmahapatro/gists{/gist_id}","starred_url":"https://api.github.com/users/dmahapatro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmahapatro/subscriptions","organizations_url":"https://api.github.com/users/dmahapatro/orgs","repos_url":"https://api.github.com/users/dmahapatro/repos","events_url":"https://api.github.com/users/dmahapatro/events{/privacy}","received_events_url":"https://api.github.com/users/dmahapatro/received_events","type":"User","site_admin":false},"created_at":"2015-02-09T21:02:32Z","updated_at":"2015-02-09T21:02:32Z","body":"Cool. I realized where I should have modified instead in the PR. It was until Dave mentioned that the resolover takes care of file separators, I was not cognizant of it.\r\n\r\nThanks for the quick response on the this one. Wow, I can feel what the experience would be once I start using it voraciously. :) "}}