brooklyn-client.git
3 years agoupdated LICENSE and NOTICE, using new procedure 69/head
Alex Heneveld [Tue, 26 Jun 2018 12:46:00 +0000 (13:46 +0100)] 
updated LICENSE and NOTICE, using new procedure

4 years agoCloses #68
Geoff Macartney [Fri, 23 Mar 2018 13:50:16 +0000 (13:50 +0000)] 
Closes #68

Temporarily use fork of NodePrime repo

See https://lists.apache.org/thread.html/10a74756dbeb1243928eb87c379b01ba58357a6204149d98676fa025@%3Cdev.brooklyn.apache.org%3E

Until this is resolved we can use John's fork

4 years agoAdd vendor file and remove glide from build/readme 68/head
Geoff Macartney [Fri, 23 Mar 2018 12:59:45 +0000 (12:59 +0000)] 
Add vendor file and remove glide from build/readme

4 years agoTemporarily use fork of NodePrime repo
Geoff Macartney [Fri, 23 Mar 2018 12:40:43 +0000 (12:40 +0000)] 
Temporarily use fork of NodePrime repo

See https://lists.apache.org/thread.html/10a74756dbeb1243928eb87c379b01ba58357a6204149d98676fa025@%3Cdev.brooklyn.apache.org%3E

Until this is resolved we can use John's fork

4 years agoCloses #67
Geoff Macartney [Fri, 2 Feb 2018 19:00:31 +0000 (19:00 +0000)] 
Closes #67

Invoke effector: support timeout

Passes the timeout arg (if supplied) when making the REST api call to Brooklyn. The response from this is written to stdout.

If it times out, the REST api still gives back a 202 response code with a json payload describing the executing task. The `br` tool simply writes that to stdout. For example:

```
cli/target/bin/darwin.amd64/br app rbfvau9i75 effector stop invoke --timeout 1ms

{"id":"kpML04c1","displayName":"stop","description":"Invoking effector stop on server @ localhost with parameters {}","entityId":"rbfvau9i75","entityDisplayName":"server @ localhost","tags":["EFFECTOR",{"entityId":"rbfvau9i75","effectorName":"stop"},{"entitlementContext":{"user":"<snip>","sourceIp":"0:0:0:0:0:0:0:1","requestUri":"/v1/applications/rbfvau9i75/entities/rbfvau9i75/effectors/stop","requestUniqueIdentifier":"rjuSuB"}},{"type":"org.apache.brooklyn.api.mgmt.ManagementContext"},{"wrappingType":"targetEntity","entity":{"type":"org.apache.brooklyn.api.entity.Entity","id":"rbfvau9i75"}},{"entitlementContext":{"user":"<snip>","sourceIp":"0:0:0:0:0:0:0:1","requestUri":"/v1/applications/rbfvau9i75/entities/rbfvau9i75/effectors/stop","requestUniqueIdentifier":"rjuSuB"}},{"wrappingType":"contextEntity","entity":{"type":"org.apache.brooklyn.api.entity.Entity","id":"rbfvau9i75"}}],"submitTimeUtc":1517490162402,"startTimeUtc":1517490162402,"endTimeUtc":null,"currentStatus":"In progress","result":null,"isError":false,"isCancelled":false,"children":[{"link":"/v1/activities/X9j8xcJ1","metadata":{"id":"X9j8xcJ1","taskName":"invoking stop[] on 1 node","entityId":"rbfvau9i75","entityDisplayName":"server @ localhost"}}],"submittedByTask":null,"blockingTask":{"link":"/v1/activities/X9j8xcJ1","metadata":{"id":"X9j8xcJ1","taskName":"invoking stop[] on 1 node","entityId":"rbfvau9i75","entityDisplayName":"server @ localhost"}},"detailedStatus":"Waiting on Task[invoking stop[] on 1 node]@X9j8xcJ1\n\nTask[stop]@kpML04c1\nChildren:\n  Task[invoking stop[] on 1 node]@X9j8xcJ1: Executing 1 child task\n\nIn progress, thread waiting (notify) on java.util.concurrent.FutureTask@61fe3136\nAt: com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:63)\n    org.apache.brooklyn.util.core.task.BasicTask.get(BasicTask.java:384)\n    org.apache.brooklyn.util.core.task.BasicTask.getUnchecked(BasicTask.java:393)\n    org.apache.brooklyn.util.core.task.DynamicTasks$TaskQueueingResult.andWaitForSuccess(DynamicTasks.java:195)\n    org.apache.brooklyn.util.core.task.DynamicTasks.get(DynamicTasks.java:363)\n    org.apache.brooklyn.core.entity.trait.StartableMethods.stop(StartableMethods.java:58)\n    org.apache.brooklyn.core.entity.AbstractApplication.doStop(AbstractApplication.java:271)\n    org.apache.brooklyn.core.entity.AbstractApplication.stop(AbstractApplication.java:246)\n    org.apache.brooklyn.util.javalang.Reflections.invokeMethodFromArgs(Reflections.java:984)\n    org.apache.brooklyn.util.javalang.Reflections.invokeMethodFromArgs(Reflections.java:871)\n    org.apache.brooklyn.util.javalang.Reflections.invokeMethodFromArgs(Reflections.java:857)\n    org.apache.brooklyn.util.javalang.Reflections.invokeMethodFromArgs(Reflections.java:852)\n    org.apache.brooklyn.core.mgmt.internal.AbstractManagementContext.invokeEffectorMethodLocal(AbstractManagementContext.java:327)\n    org.apache.brooklyn.core.mgmt.internal.AbstractManagementContext.invokeEffectorMethodSync(AbstractManagementContext.java:366)\n    org.apache.brooklyn.core.mgmt.internal.EffectorUtils.invokeMethodEffector(EffectorUtils.java:274)\n    org.apache.brooklyn.core.effector.MethodEffector.call(MethodEffector.java:153)\n    org.apache.brooklyn.core.entity.trait.Startable$StopEffectorBody.call(Startable.java:68)\n    org.apache.brooklyn.core.entity.trait.Startable$StopEffectorBody.call(Startable.java:60)\n    org.apache.brooklyn.core.effector.EffectorTasks$EffectorBodyTaskFactory$1.call(EffectorTasks.java:82)\n    org.apache.brooklyn.util.core.task.DynamicSequentialTask$DstJob.call(DynamicSequentialTask.java:364)\n    org.apache.brooklyn.util.core.task.BasicExecutionManager$SubmissionCallable.call(BasicExecutionManager.java:565)","streams":{},"links":{"self":"/v1/activities/kpML04c1","children":"/v1/activities/kpML04c1/children","entity":"/v1/applications/rbfvau9i75/entities/rbfvau9i75"}}
```

4 years agoInvoke effector: support timeout 67/head
Aled Sage [Fri, 2 Feb 2018 08:56:49 +0000 (08:56 +0000)] 
Invoke effector: support timeout

4 years agoThis closes #66
Duncan Godwin [Thu, 11 Jan 2018 14:02:15 +0000 (14:02 +0000)] 
This closes #66

4 years ago`br` on Windows generates incorrect ZIP archives 66/head
Richard Downer [Thu, 11 Jan 2018 11:11:08 +0000 (11:11 +0000)] 
`br` on Windows generates incorrect ZIP archives

The ZIP archive should use / internally but when on Windows `br` used
\ instead. This affects the `br catalog add` command when given a
directory.

4 years agobr catalog add: Fix path parsing errors on Windows
Richard Downer [Thu, 11 Jan 2018 11:36:24 +0000 (11:36 +0000)] 
br catalog add: Fix path parsing errors on Windows

br has trouble working with files on Windows due to its attempt to
coerce filenames to file: URLs, which are ill-defined and unreliable
when it comes to backslashes and drive letters. Code revised to handle
files as files instead of URLs to avoid a number of issues.

4 years agoThis closes #65
Duncan Godwin [Tue, 21 Nov 2017 11:46:39 +0000 (11:46 +0000)] 
This closes #65

4 years agoAdd dockerfile for CI build 65/head
Thomas Bouron [Wed, 18 Oct 2017 08:30:28 +0000 (09:30 +0100)] 
Add dockerfile for CI build

4 years agoThis closes #64
Thomas Bouron [Fri, 10 Nov 2017 09:29:32 +0000 (09:29 +0000)] 
This closes #64

4 years agoDefault login port to 80/443 if not supplied 64/head
Geoff Macartney [Thu, 9 Nov 2017 22:15:01 +0000 (22:15 +0000)] 
Default login port to 80/443 if not supplied

4 years agoCloses #63
Geoff Macartney [Thu, 9 Nov 2017 10:22:42 +0000 (10:22 +0000)] 
Closes #63

Fixes index out of range issue

Wasn't handling calls where there were only flag params e.g.
br -v

4 years agoFixes index out of range issue 63/head
Duncan Grant [Wed, 8 Nov 2017 21:49:08 +0000 (21:49 +0000)] 
Fixes index out of range issue

Wasn't handling calls where there were only flag params e.g.
br -v

4 years agoThis closes #61
Thomas Bouron [Wed, 18 Oct 2017 08:30:28 +0000 (09:30 +0100)] 
This closes #61

4 years agoDelete old deprecated code 61/head
Aled Sage [Tue, 10 Oct 2017 08:08:19 +0000 (09:08 +0100)] 
Delete old deprecated code

4 years agoChange version to 1.0.0-SNAPSHOT
Duncan Godwin [Fri, 6 Oct 2017 13:21:50 +0000 (13:21 +0000)] 
Change version to 1.0.0-SNAPSHOT

4 years agoThis closes #60
Duncan Godwin [Mon, 2 Oct 2017 15:28:26 +0000 (16:28 +0100)] 
This closes #60

4 years agoFix tests tearDown (to always stop management context) 60/head
Aled Sage [Thu, 21 Sep 2017 08:19:18 +0000 (09:19 +0100)] 
Fix tests tearDown (to always stop management context)

4 years agoChange version to 0.13.0-SNAPSHOT
Duncan Godwin [Mon, 18 Sep 2017 15:13:19 +0000 (15:13 +0000)] 
Change version to 0.13.0-SNAPSHOT

4 years agoCloses #59
Geoff Macartney [Fri, 28 Jul 2017 14:41:16 +0000 (15:41 +0100)] 
Closes #59

Move Resteasy dependency management to java module pom

4 years agoCloses #58
Geoff Macartney [Fri, 28 Jul 2017 14:30:10 +0000 (15:30 +0100)] 
Closes #58

Fix handling of global flags in scope definition

Previously the presence of global flags in a command like `br --flag app a ent b sensor c` caused the CLI to run the command for app, not sensor.

4 years agoCloses #57
Geoff Macartney [Fri, 28 Jul 2017 14:18:17 +0000 (15:18 +0100)] 
Closes #57

Add flags for verbose output of HTTP request data

New global flags `--verbose` and `--vverbose` (very verbose) configure the network library to write data about API requests to stderr. (I would have used `-v` and `-vv` but the former is already taken as shorthand for `--version`.)

The intention is to make it easier to debug both the working of the CLI and unexpected responses from Brooklyn servers.

Example:
```
$ ./bin/br --verbose deploy ./bp.yaml
POST /v1/applications HTTP/1.1
Host: localhost:8081
User-Agent: Go-http-client/1.1
Content-Length: 0
Authorization: ******
Content-Type: application/json
Accept-Encoding: gzip

HTTP/1.1 201 Created
Transfer-Encoding: chunked
Cache-Control: no-cache, no-store
Content-Type: application/json
Date: Thu, 27 Jul 2017 14:12:56 GMT
Expires: 0
Location: http://localhost:8081/v1/applications/sr9uw9bdbu
Pragma: no-cache
Server: Jetty(9.2.13.v20150730)
Vary: Accept-Encoding

Id:       | sr9uw9bdbu
Name:     | Application (sr9uw9bdbu)
Status:   | In progress
```

```
$ ./bin/br --vverbose application vhkhp6nbbl entity
GET /v1/applications/vhkhp6nbbl/entities HTTP/1.1
Host: localhost:8081
User-Agent: Go-http-client/1.1
Accept: application/json, text/plain
Authorization: ******
Accept-Encoding: gzip

HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: no-cache, no-store
Content-Type: application/json
Date: Thu, 27 Jul 2017 14:16:43 GMT
Expires: 0
Pragma: no-cache
Server: Jetty(9.2.13.v20150730)
Vary: Accept-Encoding

503
[{"id":"tqj1a2g883","name":"Tomcat 7 Server","type":"org.apache.brooklyn.entity.webapp.tomcat.TomcatServer","catalogItemId":"org.apache.brooklyn.entity.webapp.tomcat.TomcatServer:0.12.0-SNAPSHOT","links":{"self":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883","parent":"/v1/applications/vhkhp6nbbl/entities/vhkhp6nbbl","application":"/v1/applications/vhkhp6nbbl","children":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883/children","config":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883/config","sensors":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883/sensors","effectors":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883/effectors","policies":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883/policies","activities":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883/activities","locations":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883/locations","tags":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883/tags","expunge":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883/expunge","rename":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883/name","spec":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883/spec","iconUrl":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883/icon","catalog":"/v1/catalog/entities/org.apache.brooklyn.entity.webapp.tomcat.TomcatServer/0.12.0-SNAPSHOT"}}]
0

Id           | Name              | Type
tqj1a2g883   | Tomcat 7 Server   | org.apache.brooklyn.entity.webapp.tomcat.TomcatServer
```

The Authorization header is redacted.

4 years agoMove Resteasy dependency management to java module pom 59/head
Sam Corbett [Fri, 28 Jul 2017 11:53:17 +0000 (12:53 +0100)] 
Move Resteasy dependency management to java module pom

4 years agoAdd flags for verbose output of HTTP request data 57/head
Sam Corbett [Fri, 28 Jul 2017 09:45:27 +0000 (10:45 +0100)] 
Add flags for verbose output of HTTP request data

4 years agoCloses #56
Geoff Macartney [Thu, 27 Jul 2017 17:15:03 +0000 (18:15 +0100)] 
Closes #56

Set ContentType header when adding .yaml and .bom files to the catalog

Using application/x-yaml saves the Brooklyn server the hassle of guessing. At the moment it's too smart for its own good and gives useless errors about zipfiles when there are errors in yaml files, e.g. when trying to add yaml containing an undefined alias.

Before:
```
$ br catalog add mybp.bom
Server error (400): Bundle BasicManagedBundle{symbolicName=null, version=null, url=n
ull} failed preparation: Unable to read /tmp/brooklyn-bundle-transient-null-86366849
75390229868.zip when looking for manifest: ZipException: error in opening zip file
```
After:
```
$ br catalog add mybp.bom
Server error (400): ComposerException: found undefined alias doesntexist
 in 'reader', line 23, column 15:
            name: *doesntexist
```
I'll look to improve the feedback from Brooklyn's guessing endpoint too.

4 years agoFix handling of global flags in scope definition 58/head
Sam Corbett [Thu, 27 Jul 2017 13:58:11 +0000 (14:58 +0100)] 
Fix handling of global flags in scope definition

Previously the presence of global flags in a command like
"br --flag app a ent b sensor c" caused the CLI to run the command for
app, not sensor.

4 years agoSet ContentType when adding .yaml and .bom files to the catalog 56/head
Sam Corbett [Wed, 19 Jul 2017 15:11:14 +0000 (16:11 +0100)] 
Set ContentType when adding .yaml and .bom files to the catalog

Using application/x-yaml saves the Brooklyn server the hassle of
guessing. At the moment it's too smart for its own good and gives
useless errors about zipfiles when there are errors in yaml files.

4 years agoThis closes #42
Sam Corbett [Mon, 17 Jul 2017 12:03:05 +0000 (13:03 +0100)] 
This closes #42

Improve login handling.

4 years agoEnsure logout does not prevent help being displayed 42/head
Geoff Macartney [Thu, 13 Jul 2017 16:07:32 +0000 (17:07 +0100)] 
Ensure logout does not prevent help being displayed

4 years agoAdd licence header to config_test.go
Geoff Macartney [Tue, 4 Jul 2017 15:08:35 +0000 (16:08 +0100)] 
Add licence header to config_test.go

4 years agoAllow login without user/password if target already in config
Geoff Macartney [Tue, 4 Jul 2017 15:01:46 +0000 (16:01 +0100)] 
Allow login without user/password if target already in config

4 years agoRevert to keeping multiple credentials in the config file
Geoff Macartney [Tue, 4 Jul 2017 13:20:46 +0000 (14:20 +0100)] 
Revert to keeping multiple credentials in the config file

per https://github.com/apache/brooklyn-client/pull/42#issuecomment-303995483

4 years agoIgnore invalid config during login and remove config upon failure
Geoff Macartney [Wed, 24 May 2017 19:43:08 +0000 (20:43 +0100)] 
Ignore invalid config during login and remove config upon failure

4 years agoImprove error message when not logged in.
Geoff Macartney [Wed, 24 May 2017 15:13:42 +0000 (16:13 +0100)] 
Improve error message when not logged in.

4 years agoAdd a br server command.
Geoff Macartney [Wed, 24 May 2017 14:15:25 +0000 (15:15 +0100)] 
Add a br server command.

Displays the URL of the connected Brooklyn.

4 years agoSimply the format even more: encode username and password
Geoff Macartney [Wed, 24 May 2017 13:19:10 +0000 (14:19 +0100)] 
Simply the format even more: encode username and password

4 years agoRename method to private
Geoff Macartney [Wed, 24 May 2017 11:51:46 +0000 (12:51 +0100)] 
Rename method to private

4 years agobase64 encode passwords and simplify .brooklyn_cli structure
Geoff Macartney [Wed, 24 May 2017 11:49:56 +0000 (12:49 +0100)] 
base64 encode passwords and simplify .brooklyn_cli structure

Includes support for old style .brooklyn_cli format such that it will
read credentials from the old style and use them, but overwrite with
the new style on next login.

New style looks like:
{
  "credentials": {
    "password": "cGFzc3dvcmQ=",
    "username": "geoff"
  },
  "skipSslChecks": false,
  "target": "http://geoffs-macbook-pro.local:8081"
}

4 years agoAdd logout command
Geoff Macartney [Tue, 23 May 2017 18:34:23 +0000 (19:34 +0100)] 
Add logout command

4 years agoDon't store all old logins in .brooklyn_cli
Geoff Macartney [Tue, 23 May 2017 16:42:16 +0000 (17:42 +0100)] 
Don't store all old logins in .brooklyn_cli

4 years agoDon't use resp if there was an error
Geoff Macartney [Tue, 23 May 2017 16:08:45 +0000 (17:08 +0100)] 
Don't use resp if there was an error

4 years agoHandle newline/spaces in prompt for username
Geoff Macartney [Tue, 23 May 2017 16:08:15 +0000 (17:08 +0100)] 
Handle newline/spaces in prompt for username

4 years agoDon't panic on failure to connect to host
Geoff Macartney [Tue, 23 May 2017 15:48:35 +0000 (16:48 +0100)] 
Don't panic on failure to connect to host

4 years agoDon't trim password.
Geoff Macartney [Tue, 4 Apr 2017 14:26:31 +0000 (15:26 +0100)] 
Don't trim password.

4 years agoImprove login handling.
Geoff Macartney [Tue, 4 Apr 2017 13:08:18 +0000 (14:08 +0100)] 
Improve login handling.

See https://issues.apache.org/jira/browse/BROOKLYN-463.

Prompt for user name if not supplied.
Check for 401 Unauthorized and give tidier output.

5 years agoThis closes #55
Mark McKenna [Fri, 23 Jun 2017 13:38:29 +0000 (14:38 +0100)] 
This closes #55

5 years agoAllow catalog item (YAML or bundle) to be force-updated via query string flag on... 55/head
Thomas Bouron [Fri, 23 Jun 2017 10:48:30 +0000 (11:48 +0100)] 
Allow catalog item (YAML or bundle) to be force-updated via query string flag on the REST API

5 years agoThis closes #53
Alex Heneveld [Tue, 6 Jun 2017 15:55:16 +0000 (16:55 +0100)] 
This closes #53

5 years agoshow bundle info and message when doing `catalog add` 53/head
Alex Heneveld [Mon, 5 Jun 2017 12:35:02 +0000 (13:35 +0100)] 
show bundle info and message when doing `catalog add`

also supports backwards compatibility as only some API methods support the detail

5 years agoCloses #52
Geoff Macartney [Tue, 23 May 2017 14:51:44 +0000 (15:51 +0100)] 
Closes #52

Delete requrest now only fail is an unsuccessful code is returned

5 years agoDelete requrest now only fail is an unsuccessful code is returned 52/head
graeme.miller [Tue, 23 May 2017 14:47:17 +0000 (15:47 +0100)] 
Delete requrest now only fail is an unsuccessful code is returned

5 years agoThis closes #51
Duncan Godwin [Fri, 19 May 2017 13:10:09 +0000 (14:10 +0100)] 
This closes #51

5 years agoMove to Java 8, remove MaxPermSize options 51/head
Svetoslav Neykov [Fri, 19 May 2017 12:55:29 +0000 (15:55 +0300)] 
Move to Java 8, remove MaxPermSize options

5 years agoThis closes #40
Alex Heneveld [Tue, 9 May 2017 13:27:01 +0000 (14:27 +0100)] 
This closes #40

5 years agoupdate javadoc following PR review 40/head
Alex Heneveld [Tue, 9 May 2017 13:26:19 +0000 (14:26 +0100)] 
update javadoc following PR review

5 years agofix misleading string description in test, following PR review
Alex Heneveld [Tue, 9 May 2017 13:22:41 +0000 (14:22 +0100)] 
fix misleading string description in test, following PR review

5 years agoMerge branch 'master' into brooklyn-api-convenience-better-error-propagation
Alex Heneveld [Tue, 9 May 2017 08:10:48 +0000 (09:10 +0100)] 
Merge branch 'master' into brooklyn-api-convenience-better-error-propagation

imports conflict

5 years agoThis closes #50
Duncan Godwin [Mon, 8 May 2017 11:58:24 +0000 (12:58 +0100)] 
This closes #50

5 years agoDelete catalog.xml support (including /v1/catalog/reset) 50/head
Aled Sage [Wed, 3 May 2017 10:19:39 +0000 (11:19 +0100)] 
Delete catalog.xml support (including /v1/catalog/reset)

5 years agoCloses #49
Geoff Macartney [Thu, 27 Apr 2017 13:01:26 +0000 (14:01 +0100)] 
Closes #49

Add check that path is not empty.

This avoids a panic in a case like br catalog add file://test.zip,
if you forget to add the path to the file, file:///some/path/test.zip.

5 years agoAdd check that path is not empty. 49/head
Geoff Macartney [Thu, 27 Apr 2017 09:45:41 +0000 (10:45 +0100)] 
Add check that path is not empty.

This avoids a panic in a case like br catalog add file://test.zip,
if you forget to add the path to the file, file:///some/path/test.zip.

5 years agoCloses #48
Geoff Macartney [Thu, 27 Apr 2017 09:44:38 +0000 (10:44 +0100)] 
Closes #48

Catalog add tweaks

Fixes items noted in #44

5 years agoCloses #47
Geoff Macartney [Tue, 25 Apr 2017 08:10:14 +0000 (09:10 +0100)] 
Closes #47

simpler go CLI project setup and tweaks to instructions for n00bs

5 years agodisplay nice error if argument is omitted 48/head
Alex Heneveld [Mon, 24 Apr 2017 14:11:22 +0000 (15:11 +0100)] 
display nice error if argument is omitted

5 years agoset content type to unknown to use auto-detect when posting to catalog
Alex Heneveld [Mon, 24 Apr 2017 14:06:35 +0000 (15:06 +0100)] 
set content type to unknown to use auto-detect when posting to catalog

(prevent reader error if the item is a zip)

5 years agobetter error message when server returns an error
Alex Heneveld [Mon, 24 Apr 2017 13:38:36 +0000 (14:38 +0100)] 
better error message when server returns an error

we need better error handling; this solves the thing I was wondering, which is where
was the exception coming from.

5 years agocorrectly handle file:// urls
Alex Heneveld [Mon, 24 Apr 2017 13:02:28 +0000 (14:02 +0100)] 
correctly handle file:// urls

5 years agoupdate description
Alex Heneveld [Mon, 24 Apr 2017 13:02:20 +0000 (14:02 +0100)] 
update description

5 years agoThis closes #44
Alex Heneveld [Mon, 24 Apr 2017 14:12:02 +0000 (15:12 +0100)] 
This closes #44

5 years agocode review 47/head
Alex Heneveld [Mon, 24 Apr 2017 12:30:40 +0000 (13:30 +0100)] 
code review

5 years agoimprove README instructions
Alex Heneveld [Mon, 24 Apr 2017 10:53:50 +0000 (11:53 +0100)] 
improve README instructions

- clearer for new users
- the checked-out folder is used (no need for a second copy)
- glide doesn't have to be on the path (it wasn't for me)
- release/build.sh can be used directly

5 years agoset sensible defaults (`.` is not a valid GOPATH)
Alex Heneveld [Mon, 24 Apr 2017 10:42:58 +0000 (11:42 +0100)] 
set sensible defaults (`.` is not a valid GOPATH)

5 years agoCloses #46
Geoff Macartney [Wed, 19 Apr 2017 08:38:56 +0000 (09:38 +0100)] 
Closes #46

Removed unused class

Fixes broken jenkins builds, introduced by #45 and https://github.com/apache/brooklyn-server/pull/637

5 years agoRemove test that was using removed deprecated code 46/head
Thomas Bouron [Wed, 19 Apr 2017 08:25:54 +0000 (09:25 +0100)] 
Remove test that was using removed deprecated code

5 years agoRemoved unused class
Thomas Bouron [Wed, 19 Apr 2017 08:15:08 +0000 (09:15 +0100)] 
Removed unused class

5 years agoCloses #45
Geoff Macartney [Tue, 18 Apr 2017 13:58:51 +0000 (14:58 +0100)] 
Closes #45

Remove deprecated REST API endpoints

This requires https://github.com/apache/brooklyn-server/pull/637

5 years agoFix unit tests and launcher config 45/head
Thomas Bouron [Fri, 14 Apr 2017 12:21:34 +0000 (13:21 +0100)] 
Fix unit tests and launcher config

5 years agoBump version to 0.12.0-SNAPSHOT
Richard Downer [Tue, 11 Apr 2017 15:13:49 +0000 (15:13 +0000)] 
Bump version to 0.12.0-SNAPSHOT

5 years agoAdded the ability to upload a zip via the CLI 44/head
graeme.miller [Wed, 5 Apr 2017 15:12:04 +0000 (16:12 +0100)] 
Added the ability to upload a zip via the CLI

5 years agoCloses #41
Svetoslav Neykov [Mon, 27 Mar 2017 12:39:05 +0000 (15:39 +0300)] 
Closes #41

Use the non-deprecated API method to upload catalog items

This requires https://github.com/apache/brooklyn-server/pull/485 to be merged first

5 years agoUse the non-deprecated API method to upload catalog items 41/head
Thomas Bouron [Fri, 24 Mar 2017 12:34:38 +0000 (12:34 +0000)] 
Use the non-deprecated API method to upload catalog items

5 years agolets BrooklynApi.getEntity understand some errors, and add better method
Alex Heneveld [Mon, 27 Feb 2017 13:16:29 +0000 (13:16 +0000)] 
lets BrooklynApi.getEntity understand some errors, and add better method

    getEntityOnSuccess which requires a success code from the server.

    triggered by observing downstream usages which use getEntity on results
    without checking them, and thus have an empty TaskSummary following a severe server error
    (the server error is lost and the code typically fails later with no indication of cause)

    also tidy deprecations/warnings, toString

5 years agoremove redundant pom metadata
Alex Heneveld [Mon, 27 Feb 2017 13:16:12 +0000 (13:16 +0000)] 
remove redundant pom metadata

5 years agoThis closes #39
Duncan Godwin [Wed, 15 Feb 2017 09:26:26 +0000 (09:26 +0000)] 
This closes #39

5 years agoadds flag for connecting to servers using self-sign ssl, fixing existing code that... 39/head
Robert Moss [Tue, 14 Feb 2017 15:44:23 +0000 (15:44 +0000)] 
adds flag for connecting to servers using self-sign ssl, fixing existing code that handles flags

5 years agoThis closes #37
Sam Corbett [Mon, 6 Feb 2017 14:58:15 +0000 (14:58 +0000)] 
This closes #37

Add missing @Override annotations and other cleanup

5 years agoAdd missing @Override annotation to method signatures overriding interface methods 37/head
Svetoslav Neykov [Fri, 20 Jan 2017 14:07:33 +0000 (16:07 +0200)] 
Add missing @Override annotation to method signatures overriding interface methods

5 years agoThis closes #38
Aled Sage [Mon, 23 Jan 2017 19:58:09 +0000 (19:58 +0000)] 
This closes #38

5 years agoExclude cli/.glide/* (cache) from rat + git 38/head
Aled Sage [Mon, 23 Jan 2017 18:51:28 +0000 (18:51 +0000)] 
Exclude cli/.glide/* (cache) from rat + git

5 years agoCloses #36
Geoff Macartney [Thu, 5 Jan 2017 09:59:53 +0000 (09:59 +0000)] 
Closes #36

Add NOTICE file to generated client archive

5 years agoAdd NOTICE file to generated client archive 36/head
Svetoslav Neykov [Thu, 15 Dec 2016 13:52:41 +0000 (15:52 +0200)] 
Add NOTICE file to generated client archive

5 years agoChange version to 0.11.0-SNAPSHOT
Svetoslav Neykov [Sun, 4 Dec 2016 16:32:09 +0000 (16:32 +0000)] 
Change version to 0.11.0-SNAPSHOT

5 years agoThis closes #33
Sam Corbett [Fri, 2 Dec 2016 14:04:03 +0000 (14:04 +0000)] 
This closes #33

Set default JVM memory settings for the build

5 years agoThis closes #35
Sam Corbett [Fri, 2 Dec 2016 14:04:00 +0000 (14:04 +0000)] 
This closes #35

Update LICENSE with changes in project dependencies

5 years agoUpdate LICENSE with changes in project dependencies 35/head
Svetoslav Neykov [Fri, 25 Nov 2016 16:02:35 +0000 (18:02 +0200)] 
Update LICENSE with changes in project dependencies

5 years agoThis closes #34
Geoff Macartney [Thu, 24 Nov 2016 13:01:01 +0000 (13:01 +0000)] 
This closes #34

5 years agoRemove unused profile 34/head
Svetoslav Neykov [Thu, 24 Nov 2016 08:40:56 +0000 (10:40 +0200)] 
Remove unused profile

The plugin in the rat-check profile is now activated by default in build/plugins.

5 years agoSet default JVM memory settings for the build 33/head
Svetoslav Neykov [Tue, 15 Nov 2016 07:18:10 +0000 (09:18 +0200)] 
Set default JVM memory settings for the build