Skip to content

Manual Setup Instructions

Steve Hannah edited this page Jul 29, 2016 · 1 revision

The recommended setup process is to use the Yeoman generator as described here. If you prefer not use Yeoman, and want to set up a project yourself (you'll still need ANT), you can use these manual instructions:

  1. Check out from GitHub

      $ git clone https://github.com/shannah/codenameone-spring-template.git
      $ cd codenameone-spring-template
    
  2. Copy the config.properties.sample file to config.properties, then edit it with your application details:

At the start the file will look like:

    base.package.name=com.example
    artifact.prefix=com-example-app
    base.package.path=com/example

Suppose you want your app's package namespace to be under com.yourdomain instead of com.example. Then you would change it to:

    base.package.name=com.yourdomain
    artifact.prefix=com-yourdomain-app
    base.package.path=com/yourdomain
  1. Now run the setup task.

     $ ant setup
    

This will change all of the default files in the template to use your custom base names. 4. Install the shared dependencies into the client and server projects.

    $ ant install-shared