Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(11740)

Issue 6405045: Don't leave empty source*map files sitting around.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 9 months ago by Ilia Mirkin
Modified:
11 years, 9 months ago
Reviewers:
bolinfest, imirkin
Visibility:
Public.

Description

Don't leave empty source*map files sitting around.

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M src/org/plovr/Config.java View 1 chunk +1 line, -0 lines 1 comment Download

Messages

Total messages: 8
Ilia Mirkin
11 years, 9 months ago (2012-07-15 18:47:57 UTC) #1
imirkin_alum.mit.edu
I was also considering putting an explicit delete in Compilation.compile() but that seems too unexpected, ...
11 years, 9 months ago (2012-07-15 18:52:47 UTC) #2
bolinfest
http://codereview.appspot.com/6405045/diff/1/src/org/plovr/Config.java File src/org/plovr/Config.java (right): http://codereview.appspot.com/6405045/diff/1/src/org/plovr/Config.java#newcode622 src/org/plovr/Config.java:622: tempFile.deleteOnExit(); Nice fix! I wasn't aware of this API. ...
11 years, 9 months ago (2012-07-18 04:35:46 UTC) #3
bolinfest
Also, did you verify that this works when you use ctrl+C to kill plovr?
11 years, 9 months ago (2012-07-18 04:36:29 UTC) #4
imirkin_alum.mit.edu
No, but it should. If you kill -9, it won't. Like any finalizer, it's not ...
11 years, 9 months ago (2012-07-18 04:38:17 UTC) #5
bolinfest
Right, it should be submitted either way since it's definitely an improvement over what happens ...
11 years, 9 months ago (2012-07-18 04:41:33 UTC) #6
imirkin_alum.mit.edu
Yeah, just tried it with plovr in serve mode, the source*map file was there, then ...
11 years, 9 months ago (2012-07-18 04:41:41 UTC) #7
bolinfest
11 years, 9 months ago (2012-07-18 05:36:25 UTC) #8
Awesome -- thanks!

On Tue, Jul 17, 2012 at 9:41 PM, Ilia Mirkin <imirkin@alum.mit.edu> wrote:

> Yeah, just tried it with plovr in serve mode, the source*map file was
> there, then I hit ^C, and it went away. Tested with
>
> $ java -version
> java version "1.6.0_33"
> Java(TM) SE Runtime Environment (build 1.6.0_33-b03)
> Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03, mixed mode)
>
> On linux (3.0.6, FWIW, although I'd be thoroughly dissapointed if that
> mattered).
>
> On Wed, Jul 18, 2012 at 12:38 AM, Ilia Mirkin <imirkin@alum.mit.edu>
> wrote:
> > No, but it should. If you kill -9, it won't. Like any finalizer, it's
> > not guaranteed to actually run. I'll double-check that it works with
> > ^C and reinvestigate if it doesn't, but this definitely doesn't cover
> > every case.
> >
> > On Wed, Jul 18, 2012 at 12:36 AM,  <bolinfest@gmail.com> wrote:
> >> Also, did you verify that this works when you use ctrl+C to kill plovr?
> >>
> >> http://codereview.appspot.com/6405045/
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b