{"action":"created","issue":{"url":"https://api.github.com/repos/bmuschko/gradle-cargo-plugin/issues/168","repository_url":"https://api.github.com/repos/bmuschko/gradle-cargo-plugin","labels_url":"https://api.github.com/repos/bmuschko/gradle-cargo-plugin/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/bmuschko/gradle-cargo-plugin/issues/168/comments","events_url":"https://api.github.com/repos/bmuschko/gradle-cargo-plugin/issues/168/events","html_url":"https://github.com/bmuschko/gradle-cargo-plugin/issues/168","id":310187276,"number":168,"title":"cargoRedeployRemote to Tomcat8 works but fails to update version number","user":{"login":"foriegnbody","id":14898182,"avatar_url":"https://avatars2.githubusercontent.com/u/14898182?v=4","gravatar_id":"","url":"https://api.github.com/users/foriegnbody","html_url":"https://github.com/foriegnbody","followers_url":"https://api.github.com/users/foriegnbody/followers","following_url":"https://api.github.com/users/foriegnbody/following{/other_user}","gists_url":"https://api.github.com/users/foriegnbody/gists{/gist_id}","starred_url":"https://api.github.com/users/foriegnbody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foriegnbody/subscriptions","organizations_url":"https://api.github.com/users/foriegnbody/orgs","repos_url":"https://api.github.com/users/foriegnbody/repos","events_url":"https://api.github.com/users/foriegnbody/events{/privacy}","received_events_url":"https://api.github.com/users/foriegnbody/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-30T22:56:19Z","updated_at":"2018-04-02T14:20:59Z","closed_at":null,"author_association":"NONE","body":"If I manually deploy a file \"TPCC##1.1.0.war\" it shows up in tomcat as expected as context of tpcc and a version of 1.1.0. \r\n\r\nHowever that doesn't see to be the case using cargoRedeployRemote.\r\nIt deploys, just the version is left as \"None specified\"\r\n\r\nHere's the cargo snippet:\r\n\r\nversion '##' + passedVersion\r\n//cargo config\r\ncargo {\r\n    containerId = 'tomcat8x'\r\n    port = 80\r\n\r\n    deployable {\r\n        file = file(\"$buildDir/libs/TPCC\" + project.version + \".war\")\r\n        context = 'tpcc'\r\n    }\r\n\r\n\r\nAny thoughts?"},"comment":{"url":"https://api.github.com/repos/bmuschko/gradle-cargo-plugin/issues/comments/377939610","html_url":"https://github.com/bmuschko/gradle-cargo-plugin/issues/168#issuecomment-377939610","issue_url":"https://api.github.com/repos/bmuschko/gradle-cargo-plugin/issues/168","id":377939610,"user":{"login":"bmuschko","id":440872,"avatar_url":"https://avatars2.githubusercontent.com/u/440872?v=4","gravatar_id":"","url":"https://api.github.com/users/bmuschko","html_url":"https://github.com/bmuschko","followers_url":"https://api.github.com/users/bmuschko/followers","following_url":"https://api.github.com/users/bmuschko/following{/other_user}","gists_url":"https://api.github.com/users/bmuschko/gists{/gist_id}","starred_url":"https://api.github.com/users/bmuschko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmuschko/subscriptions","organizations_url":"https://api.github.com/users/bmuschko/orgs","repos_url":"https://api.github.com/users/bmuschko/repos","events_url":"https://api.github.com/users/bmuschko/events{/privacy}","received_events_url":"https://api.github.com/users/bmuschko/received_events","type":"User","site_admin":false},"created_at":"2018-04-02T14:20:59Z","updated_at":"2018-04-02T14:20:59Z","author_association":"OWNER","body":"The issue you seeing is very likely a problem with the Cargo library. I have a couple of comments about your code and the approach.\r\n\r\nI'd use the full path to the WAR archive when assigning the value. That will always give you the right path without having to manually construct it (assuming you don't do any other customizations).\r\n\r\n```\r\ndeployable {\r\n    file = war.archivePath\r\n}\r\n```\r\n\r\nIn Java, a filename usually separates the name of the artifact from the version with a dash character. It's likely that `##` cannot be recognized by Cargo. I'd use `tpcc-1.1.0.war` instead. If you can't resolve the issue by changing the artifact name then I'd ask on the Cargo mailing list."}}
{"actor":{"display_login":"bmuschko"}}