winter 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore ADDED
@@ -0,0 +1,21 @@
1
+ *.gem
2
+ *.rbc
3
+ *.swp
4
+ .bundle
5
+ .config
6
+ .yardoc
7
+ Gemfile.lock
8
+ InstalledFiles
9
+ _yardoc
10
+ coverage
11
+ doc/
12
+ lib/bundler/man
13
+ pkg
14
+ rdoc
15
+ spec/reports
16
+ test/tmp
17
+ test/version_tmp
18
+ tmp
19
+ run
20
+ coverage
21
+ README.html
data/.rbenv-version ADDED
@@ -0,0 +1 @@
1
+ 1.9.3-p194
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
data/Gemfile ADDED
@@ -0,0 +1,15 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in winter.gemspec
4
+ gemspec
5
+
6
+ gem 'thor'
7
+ gem 'bundler'
8
+
9
+ gem 'multi_json'
10
+
11
+ group :test do
12
+ gem 'json', '~> 1.7.7'
13
+ gem 'rspec'
14
+ gem 'simplecov'
15
+ end
data/LICENSE ADDED
@@ -0,0 +1,75 @@
1
+ Winter
2
+
3
+ Apache License
4
+
5
+ Version 2.0, January 2004
6
+
7
+ http://www.apache.org/licenses/
8
+
9
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
10
+
11
+ 1. Definitions.
12
+
13
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
14
+
15
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
16
+
17
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
18
+
19
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
20
+
21
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
22
+
23
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
24
+
25
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
26
+
27
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
28
+
29
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
30
+
31
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
32
+
33
+ 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
34
+
35
+ 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
36
+
37
+ 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
38
+
39
+ You must give any other recipients of the Work or Derivative Works a copy of this License; and
40
+ You must cause any modified files to carry prominent notices stating that You changed the files; and
41
+ You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
42
+ If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
43
+
44
+ You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
45
+
46
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
47
+
48
+ 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
49
+
50
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
51
+
52
+ 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
53
+
54
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
55
+
56
+ END OF TERMS AND CONDITIONS
57
+ APPENDIX: How to apply the Apache License to your work
58
+
59
+ To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
60
+
61
+ Copyright [yyyy] [name of copyright owner]
62
+
63
+ Licensed under the Apache License, Version 2.0 (the "License");
64
+ you may not use this file except in compliance with the License.
65
+ You may obtain a copy of the License at
66
+
67
+ http://www.apache.org/licenses/LICENSE-2.0
68
+
69
+ Unless required by applicable law or agreed to in writing, software
70
+ distributed under the License is distributed on an "AS IS" BASIS,
71
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
72
+ See the License for the specific language governing permissions and
73
+ limitations under the License
74
+
75
+
data/NOTICE ADDED
@@ -0,0 +1,10 @@
1
+ Winter
2
+
3
+ Copyright 2013 LiveOps, Inc.
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at:
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
data/README.md ADDED
@@ -0,0 +1,235 @@
1
+ # Winter
2
+
3
+ Winter is a system for maintaining the configuration of java web applications with a specific focus on the Felix OSGi container. Simply create a `Winterfile` and describe the configuration of your application with the Winter DSL. You can then use the `winter` CLI tool to `winter build` the appliation. This will download all the necessary dependencies for your application. When the build is complete, you can run it with `winter start`.
4
+
5
+ ## Installation from Rubygems
6
+
7
+ $ gem install winter
8
+
9
+ ## Installation from source
10
+
11
+ $ git clone https://github.liveops.com/swilson/winter.git && cd winter
12
+ $ gem build winter.gemspec
13
+ $ gem install winter*.gem
14
+
15
+ ## Installation with bundler
16
+
17
+ Add this line to your application's Gemfile:
18
+
19
+ gem 'winter'
20
+
21
+ And then execute:
22
+
23
+ $ bundle install
24
+
25
+ (If you use `rbenv`, this would be a good time for an `rbenv rehash`)
26
+
27
+ To make running this easier, add this to your `~/.bash_profile`
28
+ ```bash
29
+ # bundle exec stuff
30
+ function be {
31
+ CUR=$PWD
32
+ LAST=
33
+ until [ "$CUR" == "$LAST" ]; do
34
+ if [ -e "$CUR/Gemfile" ]; then
35
+ bundle exec "$@"
36
+ return
37
+ fi
38
+ LAST=$CUR
39
+ CUR=$(dirname $CUR)
40
+ done
41
+ "$@"
42
+ }
43
+ alias winter='be winter'
44
+ ```
45
+
46
+ ## Example
47
+
48
+ 1. Create a 'Winterfile' in a new directory called 'sample'.
49
+
50
+ $ mkdir sample && touch Winterfile
51
+
52
+ 2. Describe your application with the DSL. Put this in the `Winterfile`:
53
+
54
+ ```Ruby
55
+ name "sample_app"
56
+ lib 'org.apache.felix', 'org.apache.felix.shell', '1.4.3'
57
+ lib 'org.apache.felix', 'org.apache.felix.shell.remote', '1.1.2'
58
+ lib 'org.apache.felix', 'org.apache.felix.log', '1.0.1'
59
+ ```
60
+
61
+ 3. Build the application to download all the dependencies.
62
+
63
+ $ winter build
64
+
65
+ 4. Run the sample application
66
+
67
+ $ winter start
68
+
69
+ 5. Check to see that the app is running
70
+
71
+ $ winter status
72
+
73
+ 6. Turn off the application
74
+
75
+ $ winter stop
76
+
77
+ ## CLI Usage
78
+
79
+ All commands that need a `Winterfile` will use the default filename 'Winterfile' by default. This can be overridden by specifying a different filename in its place e.g. `winter validate someOtherFilename`.
80
+
81
+ ```bash
82
+ $ winter
83
+ Commands:
84
+ winter build [Winterfile] # Build a service from a Winterfile
85
+ winter help [COMMAND] # Describe available commands or one specific...
86
+ winter start [Winterfile] # Start the services in [Winterfile]
87
+ winter status # Show status of available services
88
+ winter stop [Winterfile] # Stop the services in [Winterfile]
89
+ winter validate [Winterfile] # (optional) Check the configuration files
90
+ winter version # Display version information.
91
+ ```
92
+
93
+ #### Build
94
+
95
+ Build a service from a Winterfile
96
+
97
+ Usage:
98
+ winter build [Winterfile]
99
+
100
+ Options:
101
+ [--group=GROUP] # Config group
102
+ [--verbose=VERBOSE] # Verbose maven output
103
+ [--debug=DEBUG] # Set log level to debug.
104
+ [--local=LOCAL] # Resolve dependencies only from local repository
105
+
106
+ #### Start
107
+
108
+ Start the services in [Winterfile]
109
+
110
+ Usage:
111
+ winter start [Winterfile]
112
+
113
+ Options:
114
+ [--group=GROUP] # Config group
115
+ [--debug=DEBUG] # Set log level to debug.
116
+ --con, [--console=CONSOLE] # Send console output to [file]
117
+ # Default: /dev/null
118
+
119
+ #### Status
120
+
121
+ Show status of available services
122
+
123
+ Usage:
124
+ winter status
125
+
126
+ #### Stop
127
+
128
+ Stop the services in [Winterfile]
129
+
130
+ Usage:
131
+ winter stop [Winterfile]
132
+
133
+ Options:
134
+ [--group=GROUP] # Config group
135
+
136
+ #### Validate
137
+
138
+ Check the configuration files
139
+
140
+ Usage:
141
+ winter validate [Winterfile]
142
+
143
+ Options:
144
+ [--group=GROUP] # Config group
145
+ [--debug=DEBUG] # Set log level to debug.
146
+
147
+ #### Version
148
+
149
+ Display version information.
150
+
151
+ Usage:
152
+ winter version
153
+
154
+
155
+ ## Winterfile DSL
156
+
157
+ ####bundle (group, artifact, [version], [{}])
158
+ Specify an application bundle to deploy into the OSGi container. If `version` is not speicfied, it will default to `LATEST`. The 4th parameter is a block that can be used to specify the packaging type (defaults to 'jar'). For example, if the bundle is packaged as a war file, the block can read `{:package => 'war'}`. Bundles added the Winterfile will be downoaded and placed in the './run/{name}/bundles' directory (relative to the Winterfile) when `winter build` is performed.
159
+
160
+ ####conf (directory)
161
+ The contents of this directory tree is read and any file ending in '*.erb' is parsed as a template. The result of the template is placed in './run/{name}/conf' (relative to the Winterfile) and will overwrite any files that already exist there.
162
+
163
+ ####directive (key, [value])
164
+ Add a directive to the java invocation. `directive 'com.example.logger', 'true'` is translated to ` -D com.example.logger=true`.
165
+
166
+ ####felix (group, artifact, [version])
167
+ Specify the felix version to use. If none is specified, felix version 3.0.6 is added by default.
168
+
169
+ ####group (Symbol)
170
+ Multiple configuration groups may be specified in a Winterfile, and they may be nested. Any number of other commands may be placed in a group permitting changes in configuration, bundles, libraries and even Felix version changes. For Example:
171
+
172
+ ```Ruby
173
+ info "This is the default group"
174
+ group :groupName do
175
+ info "This is inside the group groupName"
176
+ group :nestedGroup do
177
+ info "This is inside the group nestedName"
178
+ end
179
+ end
180
+ ```
181
+
182
+ The groups are then accessed from the command line as a comma separated list:
183
+ $ winter validate --group=groupName,groupName::nestedGroup
184
+ This is the default group
185
+ This is inside the group groupName
186
+ This is inside the group nestedGroup
187
+
188
+ ####info (String)
189
+ Print a statment to STDOUT as the DSL is parsed. Useful for debugging.
190
+
191
+ ####lib (group, artifact, [version])
192
+ Specify an application library or dependency. If `version` is not speicfied, it will default to `LATEST`. Libraries listed in the Winterfile will be downoaded and placed in the './run/{name}/libs' directory (relative to the Winterfile) when `winter build` is performed. This directory is added to the classpath at runtime.
193
+
194
+ ####name (String)
195
+ (*REQUIRED*) Give a name to this configuration group. This is used to describe a running instance when viewing `winter status` information, and allows a developer to create discrete configuration groups. The purpose of creating configuration groups is to allow for multiple containers to run on the same machine e.g. clustered applications.
196
+
197
+ ####pom (file | url)
198
+ The pom file is parsed and any dependencies listed as `<scope>provided</scope>` are added as application dependencies. When `winter build` is executed, these dependencies are downloaded and placed in './run/{name}/libs' relative to the Winterfile. A local file may be specified (relative to the Winterfile) or if a URL is specified it is fetched and parsed.
199
+
200
+ ####read (file)
201
+ The 'read' verb is used to import json configuration files relative to the Winterfile. The json structure is parsed and merged with the @config variable, overwriting existing values. Several 'read' directives may be specified in a single Winterfile. For example:
202
+
203
+ ```Ruby
204
+ read 'conf/default.json'
205
+ group :dev do
206
+ read 'conf/dev_config.json'
207
+ end
208
+ ```
209
+
210
+ ####repository (directory | url)
211
+ Add repositories to the maven search path when downloading bundles, libs and felix versions. Generally a URL is specified, but an ~/.m2 style directory will also work.
212
+ (aliased as 'repo' for your convienience)
213
+
214
+ ## Contributing
215
+
216
+ 1. Fork it
217
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
218
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
219
+ 4. Push to the branch (`git push origin my-new-feature`)
220
+ 5. Create new Pull Request
221
+
222
+ ## License and Copyright
223
+
224
+ Copyright 2013 LiveOps, Inc.
225
+
226
+ Right to Use this Documentation: This material is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) License. You may not exercise any rights in this material except under the terms of the CC BY-SA 3.0 License, a copy of which may be found at:
227
+
228
+ http://creativecommons.org/licenses/by-sa/3.0/
229
+
230
+ Right to Use the Software Referenced Herein: Unless otherwise provided for a specific file, the product(s) and files referenced herein are licensed under the Apache License, Version 2.0 (the "License"); you may not use such files except in compliance with the License. You may obtain a copy of the License at:
231
+
232
+ http://www.apache.org/licenses/LICENSE-2.0
233
+
234
+ Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
235
+
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require 'rubygems'
3
+ require 'rspec/core/rake_task'
4
+
5
+
6
+ desc "Run all tests"
7
+ RSpec::Core::RakeTask.new('spec') do |t|
8
+ #t.pattern = 'spec/**/*.rb'
9
+ end
10
+
data/bin/winter ADDED
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # Trap interrupts to quit cleanly. See
4
+ # # https://twitter.com/mitchellh/status/283014103189053442
5
+ Signal.trap("INT") { exit 1 }
6
+
7
+ # TODO still required when running through rubygems?
8
+ $:.unshift(File.dirname(__FILE__) + '/../lib')
9
+
10
+ begin
11
+ require 'winter/cli'
12
+ rescue
13
+ require 'rubygems'
14
+ require 'winter/cli'
15
+ end
16
+
17
+ Winter::CLI.start
18
+
19
+ cli = Winter::CLI.new
@@ -0,0 +1,33 @@
1
+ name "osgi_sample"
2
+
3
+ repo "~/.m2/repository"
4
+ repo "http://artifactory:8081/artifactory/"
5
+
6
+ read "conf/default/wf_config.json"
7
+
8
+ #pom "pom.xml"
9
+ pom "example.pom"
10
+
11
+ conf "conf/default"
12
+
13
+ group :net do
14
+ info "This group requires a net connection to work"
15
+ end
16
+
17
+ #lib 'org.apache.felix', 'org.apache.felix.configadmin', '1.4.0'
18
+
19
+ # core OSGi artifacts
20
+ felix 'org.apache.felix', 'org.apache.felix.main', '3.0.1'
21
+ lib 'org.apache.felix', 'org.apache.felix.shell', '1.4.3'
22
+ lib 'org.apache.felix', 'org.apache.felix.shell.remote', '1.1.2'
23
+ lib 'org.apache.felix', 'org.apache.felix.scr', '1.6.2'
24
+ lib 'org.apache.felix', 'org.apache.felix.log', '1.0.1'
25
+ lib 'org.apache.felix', 'org.apache.felix.fileinstall', '3.2.6'
26
+ lib 'org.osgi', 'org.osgi.compendium', '4.3.1'
27
+ lib 'org.osgi', 'org.osgi.core' , '4.3.1'
28
+
29
+ # application artifacts
30
+ bundle 'com.liveops.sample', 'sample', '1.0.0-SNAPSHOT'
31
+
32
+ directive 'add.test.directive', 60
33
+
@@ -0,0 +1,51 @@
1
+ # The following property determines which actions are performed when
2
+ # processing the auto-deploy directory. It is a comma-delimited list of
3
+ # the following values: 'install', 'start', 'update', and 'uninstall'.
4
+ # An undefined or blank value is equivalent to disabling auto-deploy
5
+ # processing.
6
+ felix.auto.deploy.action=install,start
7
+
8
+ # The following property specifies the directory to use as the bundle
9
+ # auto-deploy directory; the default is 'bundle' in the working directory.
10
+ #felix.auto.deploy.dir=bundle
11
+
12
+ # The following property is a space-delimited list of bundle URLs
13
+ # to install when the framework starts. The ending numerical component
14
+ # is the target start level. Any number of these properties may be
15
+ # specified for different start levels.
16
+ #felix.auto.install.1=
17
+
18
+ # The following property is a space-delimited list of bundle URLs
19
+ # to install and start when the framework starts. The ending numerical
20
+ # component is the target start level. Any number of these properties
21
+ # may be specified for different start levels.
22
+ #felix.auto.start.1=
23
+
24
+ #log.level : 1-ERROR, 2-WARN, 3-INFO, 4-DEBUG
25
+ felix.log.level=1
26
+ org.osgi.framework.startlevel.beginning=100
27
+
28
+ # Sets the initial start level of the framework upon startup.
29
+ #org.osgi.framework.startlevel.beginning=1
30
+
31
+ # Sets the start level of newly installed bundles.
32
+ #felix.startlevel.bundle=1
33
+
34
+ # Felix installs a stream and content handler factories by default,
35
+ # uncomment the following line to not install them.
36
+ #felix.service.urlhandlers=false
37
+
38
+ # The launcher registers a shutdown hook to cleanly stop the framework
39
+ # by default, uncomment the following line to disable it.
40
+ #felix.shutdown.hook=false
41
+
42
+ #
43
+ # Bundle config properties.
44
+ #
45
+
46
+ org.osgi.service.http.port=${web.port}
47
+ org.osgi.framework.storage.clean=onFirstInit
48
+ osgi.shell.telnet.port=${osgi.port}
49
+ osgi.shell.telnet.maxconn=2
50
+ org.apache.felix.http.jettyEnabled=true
51
+ obr.repository.url=http://felix.apache.org/obr/releases.xml
@@ -0,0 +1,47 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+
3
+ <!-- For assistance related to logback-translator or configuration -->
4
+ <!-- files in general, please contact the logback user mailing list -->
5
+ <!-- at http://www.qos.ch/mailman/listinfo/logback-user -->
6
+ <!-- -->
7
+ <!-- For professional support please see -->
8
+ <!-- http://www.qos.ch/shop/products/professionalSupport -->
9
+ <!-- -->
10
+ <configuration>
11
+ <logger name="com" level="off" />
12
+ <logger name="org" level="off" />
13
+ <logger name="com.liveops" level="ERROR" />
14
+ <logger name="com.liveops.api.dataapi" level="OFF" />
15
+ <logger name="com.liveops.integration.data" level="off" />
16
+ <logger name="com.liveops.api.search" level="DEBUG" />
17
+
18
+ <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
19
+ <encoder>
20
+ <pattern>%d [%t] %-5p %c - %m%n</pattern>
21
+ </encoder>
22
+ <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
23
+ <level>info</level>
24
+ </filter>
25
+ </appender>
26
+ <appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
27
+ <!--See also http://logback.qos.ch/manual/appenders.html#RollingFileAppender-->
28
+ <File>${log.dir}/psapi.log</File>
29
+ <encoder>
30
+ <pattern>%d [%t] %-5p %c - %m%n</pattern>
31
+ </encoder>
32
+ <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
33
+ <level>info</level>
34
+ </filter>
35
+ <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
36
+ <maxIndex>10</maxIndex>
37
+ <FileNamePattern>${log.dir}/psapi.log.%i</FileNamePattern>
38
+ </rollingPolicy>
39
+ <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
40
+ <maxFileSize>200MB</maxFileSize>
41
+ </triggeringPolicy>
42
+ </appender>
43
+ <root level="INFO">
44
+ <appender-ref ref="console"/>
45
+ <appender-ref ref="file"/>
46
+ </root>
47
+ </configuration>
@@ -0,0 +1,31 @@
1
+
2
+
3
+ ## Log4j Properties ##
4
+
5
+
6
+ # Set root logger level to DEBUG and its only appender to A1.
7
+ log4j.rootLogger=DEBUG, console, file
8
+
9
+
10
+ log4j.appender.console=org.apache.log4j.ConsoleAppender
11
+ log4j.appender.console.threshold=debug
12
+ log4j.appender.console.layout=org.apache.log4j.PatternLayout
13
+ log4j.appender.console.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n
14
+
15
+ log4j.appender.file=org.apache.log4j.RollingFileAppender
16
+ log4j.appender.file.maxFileSize=200MB
17
+ log4j.appender.file.maxBackupIndex=10
18
+ log4j.appender.file.File=${log.dir}/winterfell.log
19
+ log4j.appender.file.threshold=debug
20
+ log4j.appender.file.layout=org.apache.log4j.PatternLayout
21
+ log4j.appender.file.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n
22
+
23
+ log4j.appender.errorfile=org.apache.log4j.RollingFileAppender
24
+ log4j.appender.errorfile.maxFileSize=10MB
25
+ log4j.appender.errorfile.maxBackupIndex=5
26
+ log4j.appender.errorfile.File=${log.dir}/winterfell_error.log
27
+ log4j.appender.errorfile.threshold=error
28
+ log4j.appender.errorfile.layout=org.apache.log4j.PatternLayout
29
+ log4j.appender.errorfile.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n
30
+
31
+
@@ -0,0 +1,8 @@
1
+ {
2
+ "64bit" : false,
3
+ "jvm.mx" : "1g",
4
+ "web.port" : 8070,
5
+ "osgi.port" : 6070,
6
+ "jdb.port" : 6071,
7
+ "jmx.port" : 6072
8
+ }