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
Copy file name to clipboardExpand all lines: README.md
+22-11Lines changed: 22 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,31 +37,42 @@ $ mvn package
37
37
## Development and Debugging (ability to use Eclipse IDE)
38
38
**For deployment to a device (e.g. Raspberry Pi) the Maven build must be run from the command line (to create a correctly configured JAR)**
39
39
40
-
For development and debugging - an `Eclipse project` has been created. Using a dedicated Java IDE like Eclipse can provide significant benefits during development (and especially debugging). The Eclipse project is configured to function as a Maven Project/Build. This means you can edit, build, and debug directly from Eclipse. Remote debugging is also possible. The Maven build is configured with debug information, so if you run the client on the Raspberry Pi in debug mode you can connect to it from Eclipse and debug interactively.
40
+
# Instructions for Eclipse
41
+
These instructions are for Eclipse, but those of you that use other IDE's can probably adapt to these instuctions.
41
42
42
-
An example command to run the client in remote debug mode is:
In Eclipse, simply configure a 'Debug Configuration' that specifies the IP address and port of the target and the main class: `Driver`
43
+
For development and debugging - an `Eclipse project` has been created. Find it as `.project` in the main folder.
45
44
46
-
The `start` directory contains startup scripts for both debug and non-debug modes.
45
+
Using a dedicated Java IDE like Eclipse can provide significant benefits during development (and especially debugging). The Eclipse project is configured to function as a Maven Project/Build. This means you can edit, build, and debug directly from Eclipse. Remote debugging is also possible. The Maven build is configured with debug information, so if you run the client on the Raspberry Pi in debug mode you can connect to it from Eclipse and debug interactively.
47
46
48
-
If you are setting this up for the first time, it means you will need to create an Eclipse Workspace or use an existing Workspace. Import the Eclipse project from this directory into the Workspace.
47
+
Create a new workspace and import the project (as an existing Eclipse project).
49
48
50
-
To Run/Debug directly from Eclipse (on the local machine) you will need to set up a local Run/Debug configuration. The main requirement for this is that you will need to indicate that the working directory is the `target/` directory and make sure that it includes a properly configured `configure.properties` file (the Eclipse build does not put one there, so if a 'clean' build is performed there will not be a `configure.properties` file in the directory. If the `configure.properties` file doesn't exist the client should announce that to you (a good test really...).
49
+
You can run and debug the client within Eclipse - just set up a 'Run/Debug' configuration with the main class of 'Driver'.
50
+
51
+
To debug remotely on the Raspberry Pi:
52
+
An example command to run the client in remote debug mode is:
In Eclipse, simply configure a 'Debug Configuration' that specifies the IP address and port of the target and the main class: `Driver`
55
+
56
+
The `start` directory contains startup scripts for both debug and non-debug modes. These scripts can be copied to the `watson` directory on the device.
57
+
58
+
To Run/Debug directly from Eclipse (on the local machine) you will need to set up a local Run/Debug configuration. The main requirement for this is that you will need to indicate that the working directory is the `target/` directory and make sure that the config directory includes a properly configured `configure.properties` file (the Eclipse build does not put one there, so if a 'clean' build is performed there will not be a `configure.properties` file in the directory. If the `configure.properties` file doesn't exist in the `config` directory the client should announce that to you (a good test really...).
51
59
52
60
*(as we find and resolve problems with the Eclipse project, we will add to this section - for example, a 'clean' build will delete 'target', so we probably want a build step to copy a `configure.properties` in at the end of the build.)*
53
61
54
62
55
63
## Deploy
56
-
Copy the jar (created using the `maven package` command) from the `target/` directory to the device, e.g.
64
+
Our standard deployment to a device is into the ~/watson directory.
65
+
66
+
Copy the jar (created using the `maven package` command) from the `target/` directory on your local system to the device `~/watson` directory, e.g.
Copy `configure.properties.example` to `configure.properties` and copy it to the device `~/watson`. Provide configuration and credential information and options by editing the following properties:
73
+
Copy `configure.properties.example` to `configure.properties` into the the `~/watson/config` directory of the device. Provide configuration and credential information and options by editing the following properties:
74
+
75
+
The `start` directory contains startup scripts for both debug and non-debug modes. These scripts can be copied to the `watson` directory on the device.
65
76
66
77
### Required Connection Information
67
78
*`host` The URL of the Audio Gateway server (should NOT include the protocol prefix such as "https://")
0 commit comments