google / google/closure-compiler

Bug? Closure Compiler Ant Task Locks files after running

Open
#2,580 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.7k
Forks
1.2k
Avg merge
2d 12h
Merged PRs (30d)
6

Description

Hello guys,

I'm running an ant script that uses the closure compiler ant task, the compiler modifies the files correctly minified but closure compiler fails to release lock on the the files while it was running. This seems to be a bug, as running other commands over the fileset does not cause any problems until closure-compiler grabs it.

The file locks remaining is causing problems as I am unable to delete files in another script.
The file lock is released when I close eclipse.
I hope this is an issue on my part, but at the moment I do not see an issue here.
I am on windows and using eclipse neon

Below is my ant buildscript to reproduce the issue:
```xml




































```

Image of Process being held:
(under handles, index.js is still being held by eclipse, suspect that closure compiler ant task still holding the file lock)
![capture](https://user-images.githubusercontent.com/5553615/28643200-0f78663e-7223-11e7-9a27-dbd64dcf51cd.PNG)

Thanks for taking the time to read this.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.