Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should not clean original files #24

Open
tobegit3hub opened this issue Apr 4, 2014 · 1 comment
Open

Should not clean original files #24

tobegit3hub opened this issue Apr 4, 2014 · 1 comment

Comments

@tobegit3hub
Copy link

If I specify outputDirectory as ./src/main/java/, it will cleanup all my source files in ./src/main/java.

I would like generate the thrift java files so that the same project could import and use it. But if I set the outputDirectory as the path of my source code, it will cleanup all files.

@tobegit3hub
Copy link
Author

I'm reading AbstractThriftMojo.java and find that the line 183 is going to clean the complete directory to avoid the old generated file. I don't think it's reasonable way to fix this problem. May delete the specified file is enough or just print the hint to remind the user. Cleaning all files is really dangerous and the first time I set the current path in outputDirectory it cleanup my project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant