Skip to content

devon4j creating a project

Helmke edited this page Oct 2, 2019 · 12 revisions

Introduction

In this chapter you will learn to create a workspace and create a projekt using the CLI or the GUI. When using devon, each project has its own workspace and can be edited by different instances of the IDE, e.g. eclipse.

Command Line Interface

  • Goto your Devon-dist. folder. Open console.bat

  • Execute: cd workspaces

  • Execute: devon workspace create -workspace MyWS

  • If the job is finished, use ctrl+c to and answer y to the question

  • Execute: cd MyWS

  • Execute: devon devon4j create –p and insert the following entries.

    • Serverpath: hit Enter. (So it will be the current directory).

    • Servername: myServer (or any name you like).

    • Packagename: com.capgemini.myServer

    • Groupid: com.capgemini

    • Version: 1.0

    • Dbtype: h2

devcon create backend
  • Execute: update-all-workspaces.bat from your devon-dist. folder.

  • Execute: cd MyServer

  • Execute: mvn install (installs the Maven project).

  • Execute: devon devon4j run –port 8081

Note

The two commands devon and devcon can be used synonymously. With the -h option you will allways get help, e.g. devon -h or devon workspaces -h.

We see later, how to access these server. For now just use ctr+c to stop it from running.

Graphical User Interface

  • Open: console.bat

  • Goto your workspaces directory.

  • Execute : devcon -g

  • The GUI should open. Open "workspaces" select "create".

devcon gui workspace
  • Insert: MyProject. Click "Start".

devcon gui ws02
  • Click "back".

  • Open "devon4j". Select "create".

    • Serverpath: ../MyProject/Servers

    • Servername: mp

    • Packagename: com.devonfw.application.mp

    • Groupid: com.devonfw.mp

    • Version: v4

    • Dbtype: h2

devcon gui project
  • Press: "Start"

  • From you devon-dist. folder execute : update-all-workspaces.bat

  • From your devon-dist. folder execute: eclipse-jumpthequeue.bat

  • Eclipse instance should open.

Now you know how to create a project with devon/devcon.

Note

You can also create new projects:


Next chapter: Jump The Queue Design