Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
closure compiler output on the same file not working.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ash  
View profile  
 More options Dec 22 2011, 2:20 am
From: Ash <agi...@gmail.com>
Date: Wed, 21 Dec 2011 23:20:57 -0800 (PST)
Local: Thurs, Dec 22 2011 2:20 am
Subject: closure compiler output on the same file not working.
I try to override my source file with compiled version at build time.

>java -jar compiler.jar --js test.js --js_output_file test.js

the above command succeed but the content of test.js gets wipped out.
If I output to a different file then it works.

What should i do to make it override the same  file with minified
version?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
zuxiong lin  
View profile  
 More options Dec 22 2011, 4:29 am
From: zuxiong lin <linzuxiong1...@gmail.com>
Date: Thu, 22 Dec 2011 17:29:17 +0800
Local: Thurs, Dec 22 2011 4:29 am
Subject: Re: [closure-compiler-discuss] closure compiler output on the same file not working.

Why do you need the same filename.?
Best paractice is  --js_output_file test.min.js

2011/12/22 Ash <agi...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Leung  
View profile  
 More options Dec 22 2011, 4:35 am
From: Alan Leung <acle...@google.com>
Date: Thu, 22 Dec 2011 09:35:19 +0000
Local: Thurs, Dec 22 2011 4:35 am
Subject: Re: [closure-compiler-discuss] closure compiler output on the same file not working.

I would say the more desirable behavior would be not overwritting the input
file and throws an error message.

I've accidently overwrite the input too many times.

What type of build system do you use? Can't you use compile to test.js.tmp
and then "mv test.js.tmp test.js" after?

On Thu, Dec 22, 2011 at 9:29 AM, zuxiong lin <linzuxiong1...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
zuxiong lin  
View profile  
 More options Dec 22 2011, 4:38 am
From: zuxiong lin <linzuxiong1...@gmail.com>
Date: Thu, 22 Dec 2011 17:38:46 +0800
Local: Thurs, Dec 22 2011 4:38 am
Subject: Re: [closure-compiler-discuss] closure compiler output on the same file not working.

build system  ???
You mean shell or bat ?

2011/12/22 Alan Leung <acle...@google.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
vita...@gmail.com  
View profile  
 More options Apr 19 2012, 8:38 am
From: vita...@gmail.com
Date: Thu, 19 Apr 2012 05:38:07 -0700 (PDT)
Local: Thurs, Apr 19 2012 8:38 am
Subject: Re: [closure-compiler-discuss] closure compiler output on the same file not working.

Example based on my setup:
copy PROJECT_DIR to PROJECT_DIR_MIN
compress every *.js in PROJECT_DIR_MIN
compile PROJECT_DIR_MIN project.bar
deploy_to_device project.bar

No need to make changes to <script> in the index.html (i.e. add the ".min"
part) == No frustrating work, TIME SAVED :D

Possible?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mikegleasonjr  
View profile   Translate to Translated (View Original)
 More options May 28 2012, 3:38 pm
From: mikegleasonjr <mikegleaso...@gmail.com>
Date: Mon, 28 May 2012 12:38:04 -0700 (PDT)
Local: Mon, May 28 2012 3:38 pm
Subject: Re: closure compiler output on the same file not working.
I agree, if I want to overwrite my own files it is my problem. (The
minification is made by my CI system before my js tests are run. No
need to modify my <script> tags).

I have a versionning system if I commit a minified file ;)

So is it possible ?

On Apr 19, 8:38 am, vita...@gmail.com wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »