{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1391","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1391/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1391/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1391/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/1391","id":111496071,"number":1391,"title":"API Factory and Impl classes are generated in incorrect folders on Windows","user":{"login":"rbhunt","id":15096373,"avatar_url":"https://avatars.githubusercontent.com/u/15096373?v=3","gravatar_id":"","url":"https://api.github.com/users/rbhunt","html_url":"https://github.com/rbhunt","followers_url":"https://api.github.com/users/rbhunt/followers","following_url":"https://api.github.com/users/rbhunt/following{/other_user}","gists_url":"https://api.github.com/users/rbhunt/gists{/gist_id}","starred_url":"https://api.github.com/users/rbhunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbhunt/subscriptions","organizations_url":"https://api.github.com/users/rbhunt/orgs","repos_url":"https://api.github.com/users/rbhunt/repos","events_url":"https://api.github.com/users/rbhunt/events{/privacy}","received_events_url":"https://api.github.com/users/rbhunt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-10-14T21:20:53Z","updated_at":"2015-10-19T21:24:37Z","closed_at":null,"body":"When generating a JAX-RS service on Windows the factory and impl classes are written to \\factories\\io\\swagger\\api and \\impl\\io\\swagger\\api instead of \\io\\swagger\\api\\factories and io\\swagger\\api\\impl respectively.\r\n\r\nHere's the output from running codegen.  Looks like the use of \\ as a separator in the package names could be confusing the code inserting factories and impl into the paths?\r\n\r\n*writing file generated-code/jaxrs/src/gen/java/impl/io\\swagger\\api\\SecurityApiServiceImpl.java\r\nwriting file generated-code/jaxrs/src/gen/java/factories/io\\swagger\\api\\SecurityApiServiceFactory.java\r\nwriting file generated-code/jaxrs/src/gen/java/impl/io\\swagger\\api\\RegisterApiServiceImpl.java\r\nwriting file generated-code/jaxrs/src/gen/java/factories/io\\swagger\\api\\RegisterApiServiceFactory.java*\r\n\r\nEdit: This was observed using 2.1.3\r\n"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/149351710","html_url":"https://github.com/swagger-api/swagger-codegen/issues/1391#issuecomment-149351710","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1391","id":149351710,"user":{"login":"rbhunt","id":15096373,"avatar_url":"https://avatars.githubusercontent.com/u/15096373?v=3","gravatar_id":"","url":"https://api.github.com/users/rbhunt","html_url":"https://github.com/rbhunt","followers_url":"https://api.github.com/users/rbhunt/followers","following_url":"https://api.github.com/users/rbhunt/following{/other_user}","gists_url":"https://api.github.com/users/rbhunt/gists{/gist_id}","starred_url":"https://api.github.com/users/rbhunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbhunt/subscriptions","organizations_url":"https://api.github.com/users/rbhunt/orgs","repos_url":"https://api.github.com/users/rbhunt/repos","events_url":"https://api.github.com/users/rbhunt/events{/privacy}","received_events_url":"https://api.github.com/users/rbhunt/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T21:24:37Z","updated_at":"2015-10-19T21:24:37Z","body":"I've retested but we're back to the original issue - incorrect paths are being generated.  Now that I know the class in question is JaxRSServerCodegen I'll try to find some time in the next few days to poke around and take a look - probably easier than you trying to guess how it will behave on Windows."}}