closure 1.4.3 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +12 -12
- data/closure-compiler/README.md +503 -0
- data/closure-compiler/compiler.jar +0 -0
- data/closure-templates/SoyToJsSrcCompiler.jar +0 -0
- data/closure-templates/soyutils.js +1593 -469
- data/closure-templates/soyutils_usegoog.js +1105 -223
- data/docs/SCRIPT.md +5 -5
- data/docs/closure/Closure/BeanShell.html +63 -54
- data/docs/closure/Closure/Compiler/Compilation.html +124 -107
- data/docs/closure/Closure/Compiler/Error.html +28 -21
- data/docs/closure/Closure/Compiler.html +81 -76
- data/docs/closure/Closure/FileResponse.html +113 -98
- data/docs/closure/Closure/Goog.html +264 -253
- data/docs/closure/Closure/Middleware.html +66 -55
- data/docs/closure/Closure/Script/NotFound.html +28 -21
- data/docs/closure/Closure/Script/RenderStackOverflow.html +28 -21
- data/docs/closure/Closure/Script.html +212 -203
- data/docs/closure/Closure/Server.html +100 -90
- data/docs/closure/Closure/ShowExceptions.html +63 -52
- data/docs/closure/Closure/Sources.html +254 -246
- data/docs/closure/Closure/Templates/Error.html +28 -21
- data/docs/closure/Closure/Templates.html +88 -80
- data/docs/closure/Closure.html +181 -163
- data/docs/closure/_index.html +42 -38
- data/docs/closure/class_list.html +19 -8
- data/docs/closure/css/full_list.css +4 -2
- data/docs/closure/css/style.css +68 -51
- data/docs/closure/file.LICENSE.html +24 -217
- data/docs/closure/file.README.html +54 -47
- data/docs/closure/file_list.html +20 -9
- data/docs/closure/frames.html +18 -5
- data/docs/closure/index.html +54 -47
- data/docs/closure/js/app.js +60 -46
- data/docs/closure/js/full_list.js +24 -10
- data/docs/closure/js/jquery.js +4 -16
- data/docs/closure/method_list.html +74 -175
- data/docs/closure/top-level-namespace.html +29 -20
- data/lib/closure/compiler.rb +32 -42
- data/lib/closure/goog.rb +12 -12
- data/lib/closure/server.rb +6 -6
- data/lib/closure/show_exceptions.rb +15 -12
- data/lib/closure/version.rb +1 -1
- data/scripts/git.erb +183 -0
- data/scripts/hello/compiler.js.erb +2 -2
- data/scripts/hello/hello.js +1 -1
- data/scripts/hello/index.erb +6 -0
- data/scripts/hello/legume.js +12 -7
- data/scripts/index.erb +15 -13
- data/scripts/modules/compiler.js.erb +3 -3
- data/scripts/modules/compiler_build.js +3 -3
- data/scripts/modules/compiler_build.map +13 -12159
- data/scripts/modules/compiler_build_api.js +1 -1
- data/scripts/modules/compiler_build_app.js +74 -71
- data/scripts/modules/compiler_build_settings.js +2 -2
- data/scripts/modules/index.erb +5 -3
- data/scripts/modules/settings.js +1 -1
- data/scripts/svn.erb +11 -11
- data/scripts/welcome.erb +7 -6
- metadata +65 -81
- data/closure-compiler/README +0 -292
- data/scripts/hello/compiler_build.js +0 -5
- data/scripts/hello/compiler_build.map +0 -748
- data/scripts/hello/compiler_debug.js +0 -119
- data/scripts/modules/compiler_debug.js +0 -6
- data/scripts/modules/compiler_debug_api.js +0 -11
- data/scripts/modules/compiler_debug_app.js +0 -2414
- data/scripts/modules/compiler_debug_settings.js +0 -39
- data/scripts/rails/index.erb +0 -46
- data/scripts/rails/rails_ujs.js +0 -96
data/scripts/svn.erb
CHANGED
@@ -30,7 +30,7 @@ require 'thread'
|
|
30
30
|
# Don't supply any locals if you just want Closure::Svn for manual use.
|
31
31
|
|
32
32
|
class Closure::Svn
|
33
|
-
|
33
|
+
|
34
34
|
# Repository objects are held in global class variable.
|
35
35
|
# Checking out or updating runs in a background thread.
|
36
36
|
# repo = Closure::Svn['lib-folder', 'http://svn.example.org/trunk']
|
@@ -44,7 +44,7 @@ class Closure::Svn
|
|
44
44
|
repo.name = name if name
|
45
45
|
repo
|
46
46
|
end
|
47
|
-
|
47
|
+
|
48
48
|
# Configurable Subversion shell command
|
49
49
|
def self.svn; @svn ||= 'svn'; end
|
50
50
|
def self.svn=(svn); @svn = svn; end
|
@@ -58,7 +58,7 @@ class Closure::Svn
|
|
58
58
|
@updating_to = ''
|
59
59
|
@log = nil
|
60
60
|
end
|
61
|
-
|
61
|
+
|
62
62
|
attr_reader :running
|
63
63
|
attr_reader :path
|
64
64
|
attr_reader :url
|
@@ -70,7 +70,7 @@ class Closure::Svn
|
|
70
70
|
# Closure Script is thread-safe and so is this.
|
71
71
|
# Although the locks in Subversion would prevent it
|
72
72
|
# from corrupting (one would hope), we don't want our
|
73
|
-
# global object to be in an indeterminate state with two
|
73
|
+
# global object to be in an indeterminate state with two
|
74
74
|
# threads running because submit was hit twice.
|
75
75
|
def update(revision='HEAD')
|
76
76
|
@semaphore.synchronize do
|
@@ -94,7 +94,7 @@ class Closure::Svn
|
|
94
94
|
end
|
95
95
|
end
|
96
96
|
end
|
97
|
-
|
97
|
+
|
98
98
|
def info(location)
|
99
99
|
doc = ::REXML::Document.new `#{self.class.svn.dump} info --xml #{location.dump}`
|
100
100
|
source = doc.root.elements['//info/entry/url'].text
|
@@ -104,7 +104,7 @@ class Closure::Svn
|
|
104
104
|
rescue
|
105
105
|
return {:url => nil, :revision => 'ERROR'}
|
106
106
|
end
|
107
|
-
|
107
|
+
|
108
108
|
def local_revision
|
109
109
|
return @local_revision if @local_revision
|
110
110
|
local_info = info(path)
|
@@ -117,7 +117,7 @@ class Closure::Svn
|
|
117
117
|
local_revision # sets real @url from info, if found
|
118
118
|
@found_url || @url
|
119
119
|
end
|
120
|
-
|
120
|
+
|
121
121
|
def remote_revision
|
122
122
|
begin # Check every 12 hours
|
123
123
|
raise if Time.now - @remote_revision_checked > 43200
|
@@ -127,12 +127,12 @@ class Closure::Svn
|
|
127
127
|
end
|
128
128
|
@remote_revision ||= info(url)[:revision]
|
129
129
|
end
|
130
|
-
|
130
|
+
|
131
131
|
def update_available?
|
132
132
|
return false if remote_revision == 'ERROR'
|
133
133
|
remote_revision != local_revision
|
134
134
|
end
|
135
|
-
|
135
|
+
|
136
136
|
end
|
137
137
|
|
138
138
|
|
@@ -183,7 +183,7 @@ if get? and svn and render_stack.size > 1
|
|
183
183
|
<input type="submit" value="Update" />
|
184
184
|
|
185
185
|
<% end -%>
|
186
|
-
|
186
|
+
|
187
187
|
<% if is_running -%>
|
188
188
|
Stand by...
|
189
189
|
<% elsif svn.log -%>
|
@@ -194,7 +194,7 @@ if get? and svn and render_stack.size > 1
|
|
194
194
|
<% elsif svn.update_available? -%>
|
195
195
|
Newer revision available.
|
196
196
|
<% end -%>
|
197
|
-
|
197
|
+
|
198
198
|
</form>
|
199
199
|
<% elsif get? and svn -%>
|
200
200
|
<!DOCTYPE html>
|
data/scripts/welcome.erb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
<%
|
1
|
+
<%
|
2
2
|
require 'fileutils'
|
3
3
|
|
4
4
|
source_dir = File.expand_path File.dirname(__FILE__)
|
@@ -50,18 +50,19 @@ if get? -%>
|
|
50
50
|
<meta name="Content-Type" content="text/html; charset=UTF-8" />
|
51
51
|
<title>Welcome to Closure</title>
|
52
52
|
<style type="text/css" media="screen">
|
53
|
-
|
53
|
+
html {font-family: sans-serif; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;}
|
54
|
+
button,input,optgroup,select,textarea {font-family: sans-serif; font-size: inherit;}
|
54
55
|
</style>
|
55
56
|
</head>
|
56
57
|
<body>
|
57
|
-
|
58
|
+
|
58
59
|
<h1>Welcome to Closure</h1>
|
59
|
-
|
60
|
+
|
60
61
|
<dl>
|
61
62
|
<dt>Running in:</dt>
|
62
63
|
<dd><%=h dest_dir %></dd>
|
63
64
|
</dl>
|
64
|
-
|
65
|
+
|
65
66
|
<% if !conflict %>
|
66
67
|
<form action='?' method="post">
|
67
68
|
Prepare this folder?
|
@@ -72,7 +73,7 @@ if get? -%>
|
|
72
73
|
<span style="color:red">ERROR:</span>
|
73
74
|
Existing files prevent scaffold install.
|
74
75
|
<% end %>
|
75
|
-
|
76
|
+
|
76
77
|
</body>
|
77
78
|
</html>
|
78
79
|
<% end -%>
|
metadata
CHANGED
@@ -1,81 +1,69 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: closure
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 1.4.3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.5.0
|
6
5
|
platform: ruby
|
7
|
-
authors:
|
6
|
+
authors:
|
8
7
|
- David Turnbull
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2016-03-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
16
14
|
name: rack
|
17
|
-
requirement:
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
version: 1.0.0
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
|
-
version_requirements:
|
26
|
-
|
27
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1'
|
27
|
+
description: Everything you need for advanced Google Closure development.
|
28
|
+
email:
|
28
29
|
- dturnbull@gmail.com
|
29
|
-
executables:
|
30
|
+
executables:
|
30
31
|
- closure-script
|
31
32
|
extensions: []
|
32
|
-
|
33
33
|
extra_rdoc_files: []
|
34
|
-
|
35
|
-
|
36
|
-
-
|
34
|
+
files:
|
35
|
+
- LICENSE
|
36
|
+
- README.md
|
37
37
|
- beanshell/LICENSE
|
38
|
+
- beanshell/bsh-core-2.0b4.jar
|
38
39
|
- bin/closure-script
|
39
|
-
- closure-compiler/compiler.jar
|
40
40
|
- closure-compiler/COPYING
|
41
|
-
- closure-compiler/README
|
41
|
+
- closure-compiler/README.md
|
42
|
+
- closure-compiler/compiler.jar
|
42
43
|
- closure-templates/COPYING
|
43
44
|
- closure-templates/README
|
44
45
|
- closure-templates/SoyToJsSrcCompiler.jar
|
45
46
|
- closure-templates/soyutils.js
|
46
47
|
- closure-templates/soyutils_usegoog.js
|
47
|
-
-
|
48
|
-
-
|
49
|
-
- lib/closure/engines.rb
|
50
|
-
- lib/closure/file_response.rb
|
51
|
-
- lib/closure/goog.rb
|
52
|
-
- lib/closure/middleware.rb
|
53
|
-
- lib/closure/script.rb
|
54
|
-
- lib/closure/server.rb
|
55
|
-
- lib/closure/show_exceptions.rb
|
56
|
-
- lib/closure/sources.rb
|
57
|
-
- lib/closure/templates.rb
|
58
|
-
- lib/closure/version.rb
|
59
|
-
- lib/closure.rb
|
60
|
-
- lib/shim.jar
|
61
|
-
- docs/closure/_index.html
|
62
|
-
- docs/closure/class_list.html
|
48
|
+
- docs/SCRIPT.md
|
49
|
+
- docs/closure/Closure.html
|
63
50
|
- docs/closure/Closure/BeanShell.html
|
51
|
+
- docs/closure/Closure/Compiler.html
|
64
52
|
- docs/closure/Closure/Compiler/Compilation.html
|
65
53
|
- docs/closure/Closure/Compiler/Error.html
|
66
|
-
- docs/closure/Closure/Compiler.html
|
67
54
|
- docs/closure/Closure/FileResponse.html
|
68
55
|
- docs/closure/Closure/Goog.html
|
69
56
|
- docs/closure/Closure/Middleware.html
|
57
|
+
- docs/closure/Closure/Script.html
|
70
58
|
- docs/closure/Closure/Script/NotFound.html
|
71
59
|
- docs/closure/Closure/Script/RenderStackOverflow.html
|
72
|
-
- docs/closure/Closure/Script.html
|
73
60
|
- docs/closure/Closure/Server.html
|
74
61
|
- docs/closure/Closure/ShowExceptions.html
|
75
62
|
- docs/closure/Closure/Sources.html
|
76
|
-
- docs/closure/Closure/Templates/Error.html
|
77
63
|
- docs/closure/Closure/Templates.html
|
78
|
-
- docs/closure/Closure.html
|
64
|
+
- docs/closure/Closure/Templates/Error.html
|
65
|
+
- docs/closure/_index.html
|
66
|
+
- docs/closure/class_list.html
|
79
67
|
- docs/closure/css/common.css
|
80
68
|
- docs/closure/css/full_list.css
|
81
69
|
- docs/closure/css/style.css
|
@@ -89,14 +77,29 @@ files:
|
|
89
77
|
- docs/closure/js/jquery.js
|
90
78
|
- docs/closure/method_list.html
|
91
79
|
- docs/closure/top-level-namespace.html
|
80
|
+
- docs/index.erb
|
81
|
+
- lib/closure.rb
|
82
|
+
- lib/closure/beanshell.rb
|
83
|
+
- lib/closure/compiler.rb
|
84
|
+
- lib/closure/engines.rb
|
85
|
+
- lib/closure/file_response.rb
|
86
|
+
- lib/closure/goog.rb
|
87
|
+
- lib/closure/middleware.rb
|
88
|
+
- lib/closure/script.rb
|
89
|
+
- lib/closure/server.rb
|
90
|
+
- lib/closure/show_exceptions.rb
|
91
|
+
- lib/closure/sources.rb
|
92
|
+
- lib/closure/templates.rb
|
93
|
+
- lib/closure/version.rb
|
94
|
+
- lib/shim.jar
|
95
|
+
- scripts/config.ru
|
96
|
+
- scripts/git.erb
|
92
97
|
- scripts/hello/compiler.js.erb
|
93
|
-
- scripts/hello/compiler_build.js
|
94
|
-
- scripts/hello/compiler_build.map
|
95
|
-
- scripts/hello/compiler_debug.js
|
96
98
|
- scripts/hello/hello.js
|
97
99
|
- scripts/hello/index.erb
|
98
100
|
- scripts/hello/legume.js
|
99
101
|
- scripts/hello/legume.soy
|
102
|
+
- scripts/index.erb
|
100
103
|
- scripts/modules/api.js
|
101
104
|
- scripts/modules/api_init.js
|
102
105
|
- scripts/modules/app.js
|
@@ -107,52 +110,33 @@ files:
|
|
107
110
|
- scripts/modules/compiler_build_api.js
|
108
111
|
- scripts/modules/compiler_build_app.js
|
109
112
|
- scripts/modules/compiler_build_settings.js
|
110
|
-
- scripts/modules/compiler_debug.js
|
111
|
-
- scripts/modules/compiler_debug_api.js
|
112
|
-
- scripts/modules/compiler_debug_app.js
|
113
|
-
- scripts/modules/compiler_debug_settings.js
|
114
113
|
- scripts/modules/index.erb
|
115
114
|
- scripts/modules/settings.js
|
116
115
|
- scripts/modules/settings_init.js
|
117
|
-
- scripts/rails/index.erb
|
118
|
-
- scripts/rails/rails_ujs.js
|
119
|
-
- LICENSE
|
120
|
-
- README.md
|
121
|
-
- docs/index.erb
|
122
|
-
- docs/SCRIPT.md
|
123
|
-
- scripts/config.ru
|
124
|
-
- scripts/index.erb
|
125
116
|
- scripts/svn.erb
|
126
117
|
- scripts/welcome.erb
|
127
|
-
homepage: https://github.com/
|
128
|
-
licenses:
|
129
|
-
|
118
|
+
homepage: https://github.com/AE9RB/closure-script
|
119
|
+
licenses:
|
120
|
+
- https://opensource.org/licenses/Apache-2.0
|
121
|
+
metadata: {}
|
130
122
|
post_install_message:
|
131
123
|
rdoc_options: []
|
132
|
-
|
133
|
-
require_paths:
|
124
|
+
require_paths:
|
134
125
|
- lib
|
135
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
136
|
-
|
137
|
-
requirements:
|
126
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
138
128
|
- - ">="
|
139
|
-
- !ruby/object:Gem::Version
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
version: "0"
|
144
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
|
-
requirements:
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
147
133
|
- - ">="
|
148
|
-
- !ruby/object:Gem::Version
|
134
|
+
- !ruby/object:Gem::Version
|
149
135
|
version: 1.3.6
|
150
136
|
requirements: []
|
151
|
-
|
152
137
|
rubyforge_project:
|
153
|
-
rubygems_version:
|
138
|
+
rubygems_version: 2.4.6
|
154
139
|
signing_key:
|
155
|
-
specification_version:
|
140
|
+
specification_version: 4
|
156
141
|
summary: Google Closure Compiler, Library, Script, and Templates.
|
157
142
|
test_files: []
|
158
|
-
|
data/closure-compiler/README
DELETED
@@ -1,292 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright 2009 The Closure Compiler Authors.
|
3
|
-
*
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
* you may not use this file except in compliance with the License.
|
6
|
-
* You may obtain a copy of the License at
|
7
|
-
*
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
*
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
* See the License for the specific language governing permissions and
|
14
|
-
* limitations under the License.
|
15
|
-
*/
|
16
|
-
|
17
|
-
//
|
18
|
-
// Contents
|
19
|
-
//
|
20
|
-
|
21
|
-
The Closure Compiler performs checking, instrumentation, and
|
22
|
-
optimizations on JavaScript code. The purpose of this README is to
|
23
|
-
explain how to build and run the Closure Compiler.
|
24
|
-
|
25
|
-
The Closure Compiler requires Java 6 or higher.
|
26
|
-
http://www.java.com/
|
27
|
-
|
28
|
-
|
29
|
-
//
|
30
|
-
// Building The Closure Compiler
|
31
|
-
//
|
32
|
-
|
33
|
-
There are three ways to get a Closure Compiler executable.
|
34
|
-
|
35
|
-
1) Use one we built for you.
|
36
|
-
|
37
|
-
Pre-built Closure binaries can be found at
|
38
|
-
http://code.google.com/p/closure-compiler/downloads/list
|
39
|
-
|
40
|
-
|
41
|
-
2) Check out the source and build it with Apache Ant.
|
42
|
-
|
43
|
-
First, check out the full source tree of the Closure Compiler. There
|
44
|
-
are instructions on how to do this at the project site.
|
45
|
-
http://code.google.com/p/closure-compiler/source/checkout
|
46
|
-
|
47
|
-
Apache Ant is a cross-platform build tool.
|
48
|
-
http://ant.apache.org/
|
49
|
-
|
50
|
-
At the root of the source tree, there is an Ant file named
|
51
|
-
build.xml. To use it, navigate to the same directory and type the
|
52
|
-
command
|
53
|
-
|
54
|
-
ant jar
|
55
|
-
|
56
|
-
This will produce a jar file called "build/compiler.jar".
|
57
|
-
|
58
|
-
|
59
|
-
3) Check out the source and build it with Eclipse.
|
60
|
-
|
61
|
-
Eclipse is a cross-platform IDE.
|
62
|
-
http://www.eclipse.org/
|
63
|
-
|
64
|
-
Under Eclipse's File menu, click "New > Project ..." and create a
|
65
|
-
"Java Project." You will see an options screen. Give the project a
|
66
|
-
name, select "Create project from existing source," and choose the
|
67
|
-
root of the checked-out source tree as the existing directory. Verify
|
68
|
-
that you are using JRE version 6 or higher.
|
69
|
-
|
70
|
-
Eclipse can use the build.xml file to discover rules. When you
|
71
|
-
navigate to the build.xml file, you will see all the build rules in
|
72
|
-
the "Outline" pane. Run the "jar" rule to build the compiler in
|
73
|
-
build/compiler.jar.
|
74
|
-
|
75
|
-
|
76
|
-
//
|
77
|
-
// Running The Closure Compiler
|
78
|
-
//
|
79
|
-
|
80
|
-
Once you have the jar binary, running the Closure Compiler is straightforward.
|
81
|
-
|
82
|
-
On the command line, type
|
83
|
-
|
84
|
-
java -jar compiler.jar
|
85
|
-
|
86
|
-
This starts the compiler in interactive mode. Type
|
87
|
-
|
88
|
-
var x = 17 + 25;
|
89
|
-
|
90
|
-
then hit "Enter", then hit "Ctrl-Z" (on Windows) or "Ctrl-D" (on Mac or Linux)
|
91
|
-
and "Enter" again. The Compiler will respond:
|
92
|
-
|
93
|
-
var x=42;
|
94
|
-
|
95
|
-
The Closure Compiler has many options for reading input from a file,
|
96
|
-
writing output to a file, checking your code, and running
|
97
|
-
optimizations. To learn more, type
|
98
|
-
|
99
|
-
java -jar compiler.jar --help
|
100
|
-
|
101
|
-
You can read more detailed documentation about the many flags at
|
102
|
-
http://code.google.com/closure/compiler/docs/gettingstarted_app.html
|
103
|
-
|
104
|
-
|
105
|
-
//
|
106
|
-
// Compiling Multiple Scripts
|
107
|
-
//
|
108
|
-
|
109
|
-
If you have multiple scripts, you should compile them all together with
|
110
|
-
one compile command.
|
111
|
-
|
112
|
-
java -jar compiler.jar --js=in1.js --js=in2.js ... --js_output_file=out.js
|
113
|
-
|
114
|
-
The Closure Compiler will concatenate the files in the order they're
|
115
|
-
passed at the command line.
|
116
|
-
|
117
|
-
If you need to compile many, many scripts together, you may start to
|
118
|
-
run into problems with managing dependencies between scripts. You
|
119
|
-
should check out the Closure Library. It contains functions for
|
120
|
-
enforcing dependencies between scripts, and a tool called calcdeps.py
|
121
|
-
that knows how to give scripts to the Closure Compiler in the right
|
122
|
-
order.
|
123
|
-
|
124
|
-
http://code.google.com/p/closure-library/
|
125
|
-
|
126
|
-
//
|
127
|
-
// Licensing
|
128
|
-
//
|
129
|
-
|
130
|
-
Unless otherwise stated, all source files are licensed under
|
131
|
-
the Apache License, Version 2.0.
|
132
|
-
|
133
|
-
|
134
|
-
-----
|
135
|
-
Code under:
|
136
|
-
src/com/google/javascript/rhino
|
137
|
-
test/com/google/javascript/rhino
|
138
|
-
|
139
|
-
URL: http://www.mozilla.org/rhino
|
140
|
-
Version: 1.5R3, with heavy modifications
|
141
|
-
License: Netscape Public License and MPL / GPL dual license
|
142
|
-
|
143
|
-
Description: A partial copy of Mozilla Rhino. Mozilla Rhino is an
|
144
|
-
implementation of JavaScript for the JVM. The JavaScript parser and
|
145
|
-
the parse tree data structures were extracted and modified
|
146
|
-
significantly for use by Google's JavaScript compiler.
|
147
|
-
|
148
|
-
Local Modifications: The packages have been renamespaced. All code not
|
149
|
-
relavant to parsing has been removed. A JSDoc parser and static typing
|
150
|
-
system have been added.
|
151
|
-
|
152
|
-
|
153
|
-
-----
|
154
|
-
Code in:
|
155
|
-
lib/rhino
|
156
|
-
|
157
|
-
Rhino
|
158
|
-
URL: http://www.mozilla.org/rhino
|
159
|
-
Version: Trunk
|
160
|
-
License: Netscape Public License and MPL / GPL dual license
|
161
|
-
|
162
|
-
Description: Mozilla Rhino is an implementation of JavaScript for the JVM.
|
163
|
-
|
164
|
-
Local Modifications: Minor changes to parsing JSDoc that usually get pushed
|
165
|
-
up-stream to Rhino trunk.
|
166
|
-
|
167
|
-
|
168
|
-
-----
|
169
|
-
Code in:
|
170
|
-
lib/args4j.jar
|
171
|
-
|
172
|
-
Args4j
|
173
|
-
URL: https://args4j.dev.java.net/
|
174
|
-
Version: 2.0.12
|
175
|
-
License: MIT
|
176
|
-
|
177
|
-
Description:
|
178
|
-
args4j is a small Java class library that makes it easy to parse command line
|
179
|
-
options/arguments in your CUI application.
|
180
|
-
|
181
|
-
Local Modifications: None.
|
182
|
-
|
183
|
-
|
184
|
-
-----
|
185
|
-
Code in:
|
186
|
-
lib/guava.jar
|
187
|
-
|
188
|
-
Guava Libraries
|
189
|
-
URL: http://code.google.com/p/guava-libraries/
|
190
|
-
Version: r08
|
191
|
-
License: Apache License 2.0
|
192
|
-
|
193
|
-
Description: Google's core Java libraries.
|
194
|
-
|
195
|
-
Local Modifications: None.
|
196
|
-
|
197
|
-
|
198
|
-
-----
|
199
|
-
Code in:
|
200
|
-
lib/jsr305.jar
|
201
|
-
|
202
|
-
Annotations for software defect detection
|
203
|
-
URL: http://code.google.com/p/jsr-305/
|
204
|
-
Version: svn revision 47
|
205
|
-
License: BSD License
|
206
|
-
|
207
|
-
Description: Annotations for software defect detection.
|
208
|
-
|
209
|
-
Local Modifications: None.
|
210
|
-
|
211
|
-
|
212
|
-
-----
|
213
|
-
Code in:
|
214
|
-
lib/jarjar.jar
|
215
|
-
|
216
|
-
Jar Jar Links
|
217
|
-
URL: http://jarjar.googlecode.com/
|
218
|
-
Version: 1.1
|
219
|
-
License: Apache License 2.0
|
220
|
-
|
221
|
-
Description:
|
222
|
-
A utility for repackaging Java libraries.
|
223
|
-
|
224
|
-
Local Modifications: None.
|
225
|
-
|
226
|
-
|
227
|
-
----
|
228
|
-
Code in:
|
229
|
-
lib/junit.jar
|
230
|
-
|
231
|
-
JUnit
|
232
|
-
URL: http://sourceforge.net/projects/junit/
|
233
|
-
Version: 4.8.2
|
234
|
-
License: Common Public License 1.0
|
235
|
-
|
236
|
-
Description: A framework for writing and running automated tests in Java.
|
237
|
-
|
238
|
-
Local Modifications: None.
|
239
|
-
|
240
|
-
|
241
|
-
---
|
242
|
-
Code in:
|
243
|
-
lib/protobuf-java.jar
|
244
|
-
|
245
|
-
Protocol Buffers
|
246
|
-
URL: http://code.google.com/p/protobuf/
|
247
|
-
Version: 2.3.0
|
248
|
-
License: New BSD License
|
249
|
-
|
250
|
-
Description: Supporting libraries for protocol buffers,
|
251
|
-
an encoding of structured data.
|
252
|
-
|
253
|
-
Local Modifications: None
|
254
|
-
|
255
|
-
|
256
|
-
---
|
257
|
-
Code in:
|
258
|
-
lib/ant.jar
|
259
|
-
lib/ant-launcher.jar
|
260
|
-
|
261
|
-
URL: http://ant.apache.org/bindownload.cgi
|
262
|
-
Version: 1.8.1
|
263
|
-
License: Apache License 2.0
|
264
|
-
Description:
|
265
|
-
Ant is a Java based build tool. In theory it is kind of like "make"
|
266
|
-
without make's wrinkles and with the full portability of pure java code.
|
267
|
-
|
268
|
-
Local Modifications: None
|
269
|
-
|
270
|
-
|
271
|
-
---
|
272
|
-
Code in:
|
273
|
-
lib/json.jar
|
274
|
-
URL: http://json.org/java/index.html
|
275
|
-
Version: JSON version 20090211
|
276
|
-
License: MIT license
|
277
|
-
Description:
|
278
|
-
JSON is a set of java files for use in transmitting data in JSON format.
|
279
|
-
|
280
|
-
Local Modifications: None
|
281
|
-
|
282
|
-
---
|
283
|
-
Code in:
|
284
|
-
tools/maven-ant-tasks-2.1.1.jar
|
285
|
-
URL: http://maven.apache.org
|
286
|
-
Version 2.1.1
|
287
|
-
License: Apache License 2.0
|
288
|
-
Description:
|
289
|
-
Maven Ant tasks are used to manage dependencies and to install/deploy to
|
290
|
-
maven repositories.
|
291
|
-
|
292
|
-
Local Modifications: None
|
@@ -1,5 +0,0 @@
|
|
1
|
-
var c=this;Math.floor(Math.random()*2147483648).toString(36);function d(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};var e,f,h,i;function l(){return c.navigator?c.navigator.userAgent:null}i=h=f=e=false;var m;if(m=l()){var n=c.navigator;e=m.indexOf("Opera")==0;f=!e&&m.indexOf("MSIE")!=-1;h=!e&&m.indexOf("WebKit")!=-1;i=!e&&!h&&n.product=="Gecko"}var o=f,p=i,q=h,t;
|
2
|
-
a:{var u="",v;if(e&&c.opera)var w=c.opera.version,u=typeof w=="function"?w():w;else if(p?v=/rv\:([^\);]+)(\)|;)/:o?v=/MSIE\s+([^\);]+)(\)|;)/:q&&(v=/WebKit\/(\S+)/),v)var x=v.exec(l()),u=x?x[1]:"";if(o){var y,z=c.document;y=z?z.documentMode:void 0;if(y>parseFloat(u)){t=String(y);break a}}t=u}var A={};
|
3
|
-
function B(a){if(!A[a]){for(var b=0,r=String(t).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),g=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),K=Math.max(r.length,g.length),s=0;b==0&&s<K;s++){var L=r[s]||"",M=g[s]||"",N=RegExp("(\\d*)(\\D*)","g"),O=RegExp("(\\d*)(\\D*)","g");do{var j=N.exec(L)||["","",""],k=O.exec(M)||["","",""];if(j[0].length==0&&k[0].length==0)break;b=d(j[1].length==0?0:parseInt(j[1],10),k[1].length==0?0:parseInt(k[1],10))||d(j[2].length==0,k[2].length==0)||d(j[2],
|
4
|
-
k[2])}while(b==0)}A[a]=b>=0}}var C={};function D(){return C[9]||(C[9]=o&&document.documentMode&&document.documentMode>=9)};!o||D();!p&&!o||o&&D()||p&&B("1.9.1");o&&B("9");o&&B(8);var E;(E="ScriptEngine"in c&&c.ScriptEngine()=="JScript")&&(c.ScriptEngineMajorVersion(),c.ScriptEngineMinorVersion(),c.ScriptEngineBuildVersion());function F(a,b){this.a=E?[]:"";a!=null&&this.append.apply(this,arguments)}E?(F.prototype.c=0,F.prototype.append=function(a,b,r){b==null?this.a[this.c++]=a:(this.a.push.apply(this.a,arguments),this.c=this.a.length);return this}):F.prototype.append=function(a,b,r){this.a+=a;if(b!=null)for(var g=1;g<arguments.length;g++)this.a+=arguments[g];return this};F.prototype.clear=function(){E?this.c=this.a.length=0:this.a=""};
|
5
|
-
F.prototype.toString=function(){if(E){var a=this.a.join("");this.clear();a&&this.append(a);return a}else return this.a};var G={"\x00":"�",'"':""","&":"&","'":"'","<":"<",">":">","\t":"	","\n":" ","\u000b":"","\u000c":"","\r":" "," ":" ","-":"-","/":"/","=":"=","`":"`","\u0085":"…","\u00a0":" ","\u2028":"
","\u2029":"
"};function H(a){return G[a]}var I=/[\x00\x22\x26\x27\x3c\x3e]/g;function J(a){var b=new F;b.append("\tHello ",typeof a.b==="object"&&a.b&&a.b.d===0?a.b.content:String(a.b).replace(I,H),"!");return b.toString()};function P(a){document.write(J({b:a}))}var Q="hello".split("."),R=c;!(Q[0]in R)&&R.execScript&&R.execScript("var "+Q[0]);for(var S;Q.length&&(S=Q.shift());)!Q.length&&P!==void 0?R[S]=P:R=R[S]?R[S]:R[S]={};
|