{"action":"created","comment":{"url":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/comments/30204830","id":30204830,"diff_hunk":"@@ -751,33 +806,39 @@ class J2objcCopyTask extends DefaultTask {\n             throw new InvalidUserDataException(message)\n         }\n \n-        // Warn if deleting non-generated objc files from destDir\n         def destDir = project.file(project.j2objcConfig.destDir)\n-        def destFiles = project.files(project.fileTree(\n-                dir: destDir, excludes: [\"**/*.h\", \"**/*.m\"]))\n-        destFiles.each { file ->\n-            def message =\n-                    \"Unexpected files in destDir - this folder should contain ONLY j2objc\\n\" +\n-                    \"generated files Objective-C. The folder contents are deleted to remove\\n\" +\n-                    \"files that are nolonger generated. Please check the directory and remove\\n\" +\n-                    \"any files that don't end with Objective-C extensions '.h' and '.m'.\\n\" +\n-                    \"destDir: ${project.j2objcConfig.destDir}\\n\" +\n-                    \"Unexpected file for deletion: ${file.path}\"\n-            throw new InvalidUserDataException(message)\n-        }\n-        // TODO: better if this was a sync operation as it does deletes automatically\n-        println \"Deleting destDir to fill with generated objc files... \" + destDir.path\n-        project.delete destDir\n+        prepDestDir destDir, 'destDir'","path":"j2objc.gradle","position":null,"original_position":281,"commit_id":"65a5940f6e767eeb0402cd8a30d7266e23d51bd9","original_commit_id":"c87d28e70b3653fd06caba6cde2260b68d3933b3","user":{"login":"advayDev1","id":11729521,"avatar_url":"https://avatars.githubusercontent.com/u/11729521?v=3","gravatar_id":"","url":"https://api.github.com/users/advayDev1","html_url":"https://github.com/advayDev1","followers_url":"https://api.github.com/users/advayDev1/followers","following_url":"https://api.github.com/users/advayDev1/following{/other_user}","gists_url":"https://api.github.com/users/advayDev1/gists{/gist_id}","starred_url":"https://api.github.com/users/advayDev1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advayDev1/subscriptions","organizations_url":"https://api.github.com/users/advayDev1/orgs","repos_url":"https://api.github.com/users/advayDev1/repos","events_url":"https://api.github.com/users/advayDev1/events{/privacy}","received_events_url":"https://api.github.com/users/advayDev1/received_events","type":"User","site_admin":false},"body":"fixed PTAL","created_at":"2015-05-13T06:17:51Z","updated_at":"2015-05-13T06:17:51Z","html_url":"https://github.com/brunobowden/j2objc-gradle/pull/56#discussion_r30204830","pull_request_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/comments/30204830"},"html":{"href":"https://github.com/brunobowden/j2objc-gradle/pull/56#discussion_r30204830"},"pull_request":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/56","id":35093018,"html_url":"https://github.com/brunobowden/j2objc-gradle/pull/56","diff_url":"https://github.com/brunobowden/j2objc-gradle/pull/56.diff","patch_url":"https://github.com/brunobowden/j2objc-gradle/pull/56.patch","issue_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues/56","number":56,"state":"open","locked":false,"title":"Add destTestDir option to save away test objc files.","user":{"login":"advayDev1","id":11729521,"avatar_url":"https://avatars.githubusercontent.com/u/11729521?v=3","gravatar_id":"","url":"https://api.github.com/users/advayDev1","html_url":"https://github.com/advayDev1","followers_url":"https://api.github.com/users/advayDev1/followers","following_url":"https://api.github.com/users/advayDev1/following{/other_user}","gists_url":"https://api.github.com/users/advayDev1/gists{/gist_id}","starred_url":"https://api.github.com/users/advayDev1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advayDev1/subscriptions","organizations_url":"https://api.github.com/users/advayDev1/orgs","repos_url":"https://api.github.com/users/advayDev1/repos","events_url":"https://api.github.com/users/advayDev1/events{/privacy}","received_events_url":"https://api.github.com/users/advayDev1/received_events","type":"User","site_admin":false},"body":"(Please first do PR #54 and #53 for easy merging)\r\n\r\nYou can make this a different directory or the same as destDir - it\r\nwill work either way.\r\n\r\nThis allows a convenient way to setup objc source sets\r\njust like your java ones (think:\r\nsrc-gen/main/objc\r\nsrc-gen/test/objc\r\netc.) for easy gradle compilation.\r\n\r\nTESTED=yes","created_at":"2015-05-11T01:45:39Z","updated_at":"2015-05-13T06:17:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f67de196e15469ffea08c5aa152fe37de588f33","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/56/commits","review_comments_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/56/comments","review_comment_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues/56/comments","statuses_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/statuses/65a5940f6e767eeb0402cd8a30d7266e23d51bd9","head":{"label":"advayDev1:testDir","ref":"testDir","sha":"65a5940f6e767eeb0402cd8a30d7266e23d51bd9","user":{"login":"advayDev1","id":11729521,"avatar_url":"https://avatars.githubusercontent.com/u/11729521?v=3","gravatar_id":"","url":"https://api.github.com/users/advayDev1","html_url":"https://github.com/advayDev1","followers_url":"https://api.github.com/users/advayDev1/followers","following_url":"https://api.github.com/users/advayDev1/following{/other_user}","gists_url":"https://api.github.com/users/advayDev1/gists{/gist_id}","starred_url":"https://api.github.com/users/advayDev1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advayDev1/subscriptions","organizations_url":"https://api.github.com/users/advayDev1/orgs","repos_url":"https://api.github.com/users/advayDev1/repos","events_url":"https://api.github.com/users/advayDev1/events{/privacy}","received_events_url":"https://api.github.com/users/advayDev1/received_events","type":"User","site_admin":false},"repo":{"id":33487475,"name":"j2objc-gradle","full_name":"advayDev1/j2objc-gradle","owner":{"login":"advayDev1","id":11729521,"avatar_url":"https://avatars.githubusercontent.com/u/11729521?v=3","gravatar_id":"","url":"https://api.github.com/users/advayDev1","html_url":"https://github.com/advayDev1","followers_url":"https://api.github.com/users/advayDev1/followers","following_url":"https://api.github.com/users/advayDev1/following{/other_user}","gists_url":"https://api.github.com/users/advayDev1/gists{/gist_id}","starred_url":"https://api.github.com/users/advayDev1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advayDev1/subscriptions","organizations_url":"https://api.github.com/users/advayDev1/orgs","repos_url":"https://api.github.com/users/advayDev1/repos","events_url":"https://api.github.com/users/advayDev1/events{/privacy}","received_events_url":"https://api.github.com/users/advayDev1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/advayDev1/j2objc-gradle","description":"Gradle plugin for j2objc (Java to Objective-C transpiler)","fork":true,"url":"https://api.github.com/repos/advayDev1/j2objc-gradle","forks_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/forks","keys_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/teams","hooks_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/hooks","issue_events_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/issues/events{/number}","events_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/events","assignees_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/assignees{/user}","branches_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/branches{/branch}","tags_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/tags","blobs_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/git/refs{/sha}","trees_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/statuses/{sha}","languages_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/languages","stargazers_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/stargazers","contributors_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/contributors","subscribers_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/subscribers","subscription_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/subscription","commits_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/commits{/sha}","git_commits_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/git/commits{/sha}","comments_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/comments{/number}","issue_comment_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/issues/comments{/number}","contents_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/contents/{+path}","compare_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/merges","archive_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/downloads","issues_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/issues{/number}","pulls_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/pulls{/number}","milestones_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/milestones{/number}","notifications_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/labels{/name}","releases_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/releases{/id}","created_at":"2015-04-06T14:55:35Z","updated_at":"2015-04-06T14:59:34Z","pushed_at":"2015-05-13T06:16:09Z","git_url":"git://github.com/advayDev1/j2objc-gradle.git","ssh_url":"git@github.com:advayDev1/j2objc-gradle.git","clone_url":"https://github.com/advayDev1/j2objc-gradle.git","svn_url":"https://github.com/advayDev1/j2objc-gradle","homepage":null,"size":243,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"brunobowden:master","ref":"master","sha":"12a4808aac3047b4579388c4c2d76100ad690643","user":{"login":"brunobowden","id":679339,"avatar_url":"https://avatars.githubusercontent.com/u/679339?v=3","gravatar_id":"","url":"https://api.github.com/users/brunobowden","html_url":"https://github.com/brunobowden","followers_url":"https://api.github.com/users/brunobowden/followers","following_url":"https://api.github.com/users/brunobowden/following{/other_user}","gists_url":"https://api.github.com/users/brunobowden/gists{/gist_id}","starred_url":"https://api.github.com/users/brunobowden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunobowden/subscriptions","organizations_url":"https://api.github.com/users/brunobowden/orgs","repos_url":"https://api.github.com/users/brunobowden/repos","events_url":"https://api.github.com/users/brunobowden/events{/privacy}","received_events_url":"https://api.github.com/users/brunobowden/received_events","type":"User","site_admin":false},"repo":{"id":30206593,"name":"j2objc-gradle","full_name":"brunobowden/j2objc-gradle","owner":{"login":"brunobowden","id":679339,"avatar_url":"https://avatars.githubusercontent.com/u/679339?v=3","gravatar_id":"","url":"https://api.github.com/users/brunobowden","html_url":"https://github.com/brunobowden","followers_url":"https://api.github.com/users/brunobowden/followers","following_url":"https://api.github.com/users/brunobowden/following{/other_user}","gists_url":"https://api.github.com/users/brunobowden/gists{/gist_id}","starred_url":"https://api.github.com/users/brunobowden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunobowden/subscriptions","organizations_url":"https://api.github.com/users/brunobowden/orgs","repos_url":"https://api.github.com/users/brunobowden/repos","events_url":"https://api.github.com/users/brunobowden/events{/privacy}","received_events_url":"https://api.github.com/users/brunobowden/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brunobowden/j2objc-gradle","description":"Gradle plugin for j2objc (Java to Objective-C transpiler)","fork":false,"url":"https://api.github.com/repos/brunobowden/j2objc-gradle","forks_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/forks","keys_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/teams","hooks_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/hooks","issue_events_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues/events{/number}","events_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/events","assignees_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/assignees{/user}","branches_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/branches{/branch}","tags_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/tags","blobs_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/git/refs{/sha}","trees_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/statuses/{sha}","languages_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/languages","stargazers_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/stargazers","contributors_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/contributors","subscribers_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/subscribers","subscription_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/subscription","commits_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/commits{/sha}","git_commits_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/git/commits{/sha}","comments_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/comments{/number}","issue_comment_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues/comments{/number}","contents_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/contents/{+path}","compare_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/merges","archive_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/downloads","issues_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues{/number}","pulls_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls{/number}","milestones_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/milestones{/number}","notifications_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/labels{/name}","releases_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/releases{/id}","created_at":"2015-02-02T20:22:07Z","updated_at":"2015-05-13T06:04:59Z","pushed_at":"2015-05-13T06:16:10Z","git_url":"git://github.com/brunobowden/j2objc-gradle.git","ssh_url":"git@github.com:brunobowden/j2objc-gradle.git","clone_url":"https://github.com/brunobowden/j2objc-gradle.git","svn_url":"https://github.com/brunobowden/j2objc-gradle","homepage":null,"size":925,"stargazers_count":25,"watchers_count":25,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":15,"forks":7,"open_issues":15,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/56"},"html":{"href":"https://github.com/brunobowden/j2objc-gradle/pull/56"},"issue":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues/56"},"comments":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/statuses/65a5940f6e767eeb0402cd8a30d7266e23d51bd9"}}}}