tree: cb15b20f04c8f9d21a73152a1f4e9660183a6fd4 [path history] [tgz]
  1. src/
  2. app-run.sh
  3. mvnw
  4. mvnw.cmd
  5. pom.xml
  6. README.md
template/README.md

An Edgent Application template project.

Clone this template project to start your Edgent application project.

The project's pom supports

  • building for java8, java7 or android execution environments
  • building a standard jar and uber jar

Edit the pom for your application. Adjust it for your application's maven coordinates. The pom has potential Edgent dependenacies present and commented out. Include the Edgent Providers, Analytics, Utils, and Connectors used by your application.

Read ../README.md for general information about Edgent Application development.

Building the project

./mvnw clean install  # add -Pplatform-java7 or -Pplatform-android as needed

Running the application

You can copy app-run.sh and the generated target/*-uber.jar to the edge device

./app-run.sh

Using package-app.sh with the project

Adjust the main class name and application jar path below for your application.

PLATFORM=  # add "--platform java7"  or  "--platform android" as appropriate
../package-app.sh $PLATFORM --mainClass com.mycompany.app.TemplateApp --appjar target/my-app-1.0-SNAPSHOT.jar