{"action":"created","issue":{"url":"https://api.github.com/repos/tmtsoftware/icd/issues/20","repository_url":"https://api.github.com/repos/tmtsoftware/icd","labels_url":"https://api.github.com/repos/tmtsoftware/icd/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/tmtsoftware/icd/issues/20/comments","events_url":"https://api.github.com/repos/tmtsoftware/icd/issues/20/events","html_url":"https://github.com/tmtsoftware/icd/issues/20","id":126967464,"number":20,"title":"install.sh generates many warnings \"will not overwrite just-created\"","user":{"login":"edwardchapin","id":486153,"avatar_url":"https://avatars.githubusercontent.com/u/486153?v=3","gravatar_id":"","url":"https://api.github.com/users/edwardchapin","html_url":"https://github.com/edwardchapin","followers_url":"https://api.github.com/users/edwardchapin/followers","following_url":"https://api.github.com/users/edwardchapin/following{/other_user}","gists_url":"https://api.github.com/users/edwardchapin/gists{/gist_id}","starred_url":"https://api.github.com/users/edwardchapin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edwardchapin/subscriptions","organizations_url":"https://api.github.com/users/edwardchapin/orgs","repos_url":"https://api.github.com/users/edwardchapin/repos","events_url":"https://api.github.com/users/edwardchapin/events{/privacy}","received_events_url":"https://api.github.com/users/edwardchapin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-15T22:04:03Z","updated_at":"2016-02-04T22:19:06Z","closed_at":"2016-02-04T22:19:06Z","body":"This issue is just an annoyance.\r\n\r\nWhen I execute `install.sh` on an Ubuntu 14.04 system, there is a lot of noise generated by cp, like:\r\n```\r\ncp: will not overwrite just-created ‘../install_icd/lib/ch.qos.logback.logback-classic-1.1.1.jar’ with ‘icd/target/universal/stage/lib/ch.qos.logback.logback-classic-1.1.1.jar’\r\ncp: will not overwrite just-created ‘../install_icd/lib/ch.qos.logback.logback-core-1.1.1.jar’ with ‘icd/target/universal/stage/lib/ch.qos.logback.logback-core-1.1.1.jar’\r\ncp: will not overwrite just-created ‘../install_icd/lib/com.fasterxml.jackson.core.jackson-annotations-2.2.3.jar’ with ‘icd/target/universal/stage/lib/com.fasterxml.jackson.core.jackson-annotations-2.2.3.jar’\r\n...\r\n```\r\n\r\nThe reason is that `install.sh` is making multiple copies of the same jar file from different source directories in a single target directory:\r\n```\r\nfor i in bin lib ; do cp -f */target/universal/stage/$i/* $dir/$i/; done\r\n```\r\nNote, for example, that this will pick up two copies of this `.jar` file and try to write them to the same place:\r\n```\r\nls */target/universal/stage/lib/ch.qos.logback.logback-classic-1.1.1.jar\r\nicd-db/target/universal/stage/lib/ch.qos.logback.logback-classic-1.1.1.jar  icd/target/universal/stage/lib/ch.qos.logback.logback-classic-1.1.1.jar\r\n```\r\n\r\nOne solution would be a nested for-loop (the inner loop would be over each subdirectory of `*/target/universal/stage/$i/*`) for example... or perhaps something clever with `rsync`."},"comment":{"url":"https://api.github.com/repos/tmtsoftware/icd/issues/comments/180076391","html_url":"https://github.com/tmtsoftware/icd/issues/20#issuecomment-180076391","issue_url":"https://api.github.com/repos/tmtsoftware/icd/issues/20","id":180076391,"user":{"login":"abrighton","id":4173116,"avatar_url":"https://avatars.githubusercontent.com/u/4173116?v=3","gravatar_id":"","url":"https://api.github.com/users/abrighton","html_url":"https://github.com/abrighton","followers_url":"https://api.github.com/users/abrighton/followers","following_url":"https://api.github.com/users/abrighton/following{/other_user}","gists_url":"https://api.github.com/users/abrighton/gists{/gist_id}","starred_url":"https://api.github.com/users/abrighton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abrighton/subscriptions","organizations_url":"https://api.github.com/users/abrighton/orgs","repos_url":"https://api.github.com/users/abrighton/repos","events_url":"https://api.github.com/users/abrighton/events{/privacy}","received_events_url":"https://api.github.com/users/abrighton/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T22:19:06Z","updated_at":"2016-02-04T22:19:06Z","body":"I updated the install.sh script to avoid the warning."}}