You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the NanoHTTPD, you may pass in the following options
82
59
60
+
61
+
83
62
```
84
63
- h
85
64
--host The host to bind to - default 127.0.0.1
@@ -92,8 +71,246 @@ Following the NanoHTTPD, you may pass in the following options
92
71
93
72
```
94
73
95
-
## As an aside
74
+
75
+
76
+
77
+
78
+
<aname="documentr_heading_4"></a>
79
+
80
+
## As an aside <sup><sup>[top](documentr_top)</sup></sup>
81
+
82
+
96
83
97
84
The name ```RouteMaster``` pays homage to the original London buses [(see the wikipedia entry)](http://en.wikipedia.org/wiki/Routemaster) which would take you wherever you would like to go.
98
85
99
86
The favicon is also related, showing a depiction of the back top window of a routemaster bus.
87
+
88
+
89
+
# Building the Package
90
+
91
+
## *NIX/Mac OS X
92
+
93
+
From the root of the project, simply run
94
+
95
+
`./gradlew build`
96
+
97
+
98
+
## Windows
99
+
100
+
`./gradlew.bat build`
101
+
102
+
103
+
This will compile and assemble the artefacts into the `build/libs/` directory.
104
+
105
+
Note that this may also run tests (if applicable see the Testing notes)
106
+
107
+
# Running the Tests
108
+
109
+
## *NIX/Mac OS X
110
+
111
+
From the root of the project, simply run
112
+
113
+
`gradle --info test`
114
+
115
+
if you do not have gradle installed, try:
116
+
117
+
`gradlew --info test`
118
+
119
+
## Windows
120
+
121
+
From the root of the project, simply run
122
+
123
+
`gradle --info test`
124
+
125
+
if you do not have gradle installed, try:
126
+
127
+
`./gradlew.bat --info test`
128
+
129
+
130
+
The `--info` switch will also output logging for the tests
131
+
132
+
# Artefact Publishing - Github
133
+
134
+
This project publishes artefacts to [GitHub](https://github.com/)
135
+
136
+
> Note that the latest version can be found [https://github.com/synapticloop/routemaster/releases](https://github.com/synapticloop/routemaster/releases)
137
+
138
+
As such, this is not a repository, but a location to download files from.
139
+
140
+
# Artefact Publishing - Bintray
141
+
142
+
This project publishes artefacts to [bintray](https://bintray.com/)
143
+
144
+
> Note that the latest version can be found [https://bintray.com/synapticloop/maven/routemaster/view](https://bintray.com/synapticloop/maven/routemaster/view)
145
+
146
+
## maven setup
147
+
148
+
this comes from the jcenter bintray, to set up your repository:
or, more simply for versions of gradle greater than 2.1
231
+
232
+
```
233
+
234
+
235
+
dependencies {
236
+
runtime 'synapticloop:routemaster:2.0.0'
237
+
238
+
compile 'synapticloop:routemaster:2.0.0'
239
+
}
240
+
241
+
242
+
```
243
+
244
+
## Dependencies - Maven
245
+
246
+
```
247
+
248
+
249
+
<dependency>
250
+
<groupId>synapticloop</groupId>
251
+
<artifactId>routemaster</artifactId>
252
+
<version>2.0.0</version>
253
+
<type>jar</type>
254
+
</dependency>
255
+
256
+
257
+
```
258
+
259
+
## Dependencies - Downloads
260
+
261
+
262
+
You will also need to download the following dependencies:
263
+
264
+
265
+
266
+
### cobertura dependencies
267
+
268
+
-`net.sourceforge.cobertura:cobertura:2.0.3`: (It may be available on one of: [bintray](https://bintray.com/net.sourceforge.cobertura/maven/cobertura/2.0.3/view#files/net.sourceforge.cobertura/cobertura/2.0.3)[mvn central](http://search.maven.org/#artifactdetails|net.sourceforge.cobertura|cobertura|2.0.3|jar))
269
+
270
+
271
+
### compile dependencies
272
+
273
+
-`synapticloop:templar:1.4.2`: (It may be available on one of: [bintray](https://bintray.com/synapticloop/maven/templar/1.4.2/view#files/synapticloop/templar/1.4.2)[mvn central](http://search.maven.org/#artifactdetails|synapticloop|templar|1.4.2|jar))
274
+
-`org.nanohttpd:nanohttpd:2.3.1`: (It may be available on one of: [bintray](https://bintray.com/org.nanohttpd/maven/nanohttpd/2.3.1/view#files/org.nanohttpd/nanohttpd/2.3.1)[mvn central](http://search.maven.org/#artifactdetails|org.nanohttpd|nanohttpd|2.3.1|jar))
275
+
276
+
277
+
### runtime dependencies
278
+
279
+
-`synapticloop:templar:1.4.2`: (It may be available on one of: [bintray](https://bintray.com/synapticloop/maven/templar/1.4.2/view#files/synapticloop/templar/1.4.2)[mvn central](http://search.maven.org/#artifactdetails|synapticloop|templar|1.4.2|jar))
280
+
-`org.nanohttpd:nanohttpd:2.3.1`: (It may be available on one of: [bintray](https://bintray.com/org.nanohttpd/maven/nanohttpd/2.3.1/view#files/org.nanohttpd/nanohttpd/2.3.1)[mvn central](http://search.maven.org/#artifactdetails|org.nanohttpd|nanohttpd|2.3.1|jar))
281
+
282
+
283
+
### testCompile dependencies
284
+
285
+
-`junit:junit:4.11`: (It may be available on one of: [bintray](https://bintray.com/junit/maven/junit/4.11/view#files/junit/junit/4.11)[mvn central](http://search.maven.org/#artifactdetails|junit|junit|4.11|jar))
286
+
-`org.mockito:mockito-all:1.10.19`: (It may be available on one of: [bintray](https://bintray.com/org.mockito/maven/mockito-all/1.10.19/view#files/org.mockito/mockito-all/1.10.19)[mvn central](http://search.maven.org/#artifactdetails|org.mockito|mockito-all|1.10.19|jar))
287
+
-`synapticloop:templar:1.4.2`: (It may be available on one of: [bintray](https://bintray.com/synapticloop/maven/templar/1.4.2/view#files/synapticloop/templar/1.4.2)[mvn central](http://search.maven.org/#artifactdetails|synapticloop|templar|1.4.2|jar))
288
+
289
+
**NOTE:** You may need to download any dependencies of the above dependencies in turn (i.e. the transitive dependencies)
290
+
291
+
# License
292
+
293
+
```
294
+
295
+
296
+
The MIT License (MIT)
297
+
298
+
Copyright (c) 2017 synapticloop
299
+
300
+
Permission is hereby granted, free of charge, to any person obtaining a copy
301
+
of this software and associated documentation files (the "Software"), to deal
302
+
in the Software without restriction, including without limitation the rights
303
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
304
+
copies of the Software, and to permit persons to whom the Software is
305
+
furnished to do so, subject to the following conditions:
306
+
307
+
The above copyright notice and this permission notice shall be included in all
308
+
copies or substantial portions of the Software.
309
+
310
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
311
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
312
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
313
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
314
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
315
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
0 commit comments