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

Gradle clean #5

Open
m9aertner opened this issue Dec 1, 2016 · 0 comments
Open

Gradle clean #5

m9aertner opened this issue Dec 1, 2016 · 0 comments

Comments

@m9aertner
Copy link

The clean task should not execute the deletion in the configuration phase. Simple solution is to write

clean.doFirst {
    delete 'src/main/java-gen'
}

BTW, is that folder created at all? After a clean clone and build, I don't see it ... Maybe just remove it?

TL;DR

Neither << nor doLast { ... } are used, as one would commonly do in Gradle to move the code to the execution phase. Now the "clean" task is special, in that a simple delete calls the method on the wrong object (see http://stackoverflow.com/a/28044951/1037626). doLast works.

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