GoogleCloudPlatform / gradle-appengine-templates

Freemarker based templates that build with the gradle-appengine-plugin
438 stars 205 forks source link

Unable to delete file appengine-api-1.0-sdk-1.9.28.jar #61

Open gfcut opened 8 years ago

gfcut commented 8 years ago

Hi, Whenever I try to run my app, after building the backend module, I get this error. Is there a workaround for this?

Thanks

Error:Execution failed for task ':backend:clean'.

Unable to delete file: C:\Users\gratian.cutulescu\git\Investigations\backend\build\exploded-app\WEB-INF\lib\appengine-api-1.0-sdk-1.9.28.jar

rahulfhp commented 8 years ago

Is your backend App Engine server in start mode when this error occur ?

Regards Rahul Purswani Founder & Developer - My Android App - CricFriends https://play.google.com/store/apps/details?id=com.mindefy.cricfrnds.app&hl=en

On Thu, Jan 21, 2016 at 7:34 PM, gfcut notifications@github.com wrote:

Hi, Whenever I try to run my app, after building the backend module, I get this error Is there a workaround for this?

Thanks

Error:Execution failed for task ':backend:clean'

Unable to delete file: C:\Users\gratiancutulescu\git\Investigations\backend\build\exploded-app\WEB-INF\lib\appengine-api-10-sdk-1928jar

— Reply to this email directly or view it on GitHub https://github.com/GoogleCloudPlatform/gradle-appengine-templates/issues/61 .

gfcut commented 8 years ago

Yes. Is it OK to perform a backend:clean task while the backend is running?

rahulfhp commented 8 years ago

For this reason only it gives this error, as it keeps a lock on it .

Ideally you should stop the backend and then perform clean operation .

Regards Rahul Purswani Founder & Developer - My Android App - CricFriends https://play.google.com/store/apps/details?id=com.mindefy.cricfrnds.app&hl=en

On Thu, Jan 21, 2016 at 7:42 PM, gfcut notifications@github.com wrote:

Yes. Is it OK to perform a backend:clean task while the backend is running?

— Reply to this email directly or view it on GitHub https://github.com/GoogleCloudPlatform/gradle-appengine-templates/issues/61#issuecomment-173580290 .

gfcut commented 8 years ago

I had to configure my run task for the app. Now it performs only: assembleDebug and installDebug. This means that there won't be a backend:clean task performed. If this is the solution, this should be documented.

8Ozymandias commented 6 years ago

@gfcut I am experiencing the same thing. The only difference with me is that I am dealing with:

appengine-api-1.0-sdk-1.9.42.jar

8Ozymandias commented 6 years ago

@rahulfhp I tried what you suggested and it worked. I stopped the server, went to build and clicked clean project and there are now 0 errors.

8Ozymandias commented 6 years ago

@gfcut I don't understand what you're saying here:

"I had to configure my run task for the app. Now it performs only: assembleDebug and installDebug. This means that there won't be a backend:clean task performed. If this is the solution, this should be documented."