-
Notifications
You must be signed in to change notification settings - Fork 128
Building Vis From Source
Just import VisParent project via Maven integration in your IDE (pom.xml in root repository directory). Your IDE should automatically import dependent project: (VisUI, VisRuntime, VisEditor etc.) If that won't happen just import projects one by one.
Intellij IDEA is recommend IDE for Vis development. This section will explain how to setup Vis development environment.
- Clone repository
- Select
File -> Open...
then navigate to directory where you cloned repository. - Select
pom.xml
in root directory and click OK. IDEA will open project and automatically import all dependent projects.
- Create new
Application
launch configuration. - Set main class to
com.kotcrab.vis.editor.ui.EditorFrame
. - Set VM options to
-Dfile.encoding=UTF-8
. - In field
Use classpath of module
selectvis-editor
- Save configuration and launch, use this configuration for future launches.
Plugin development requires to put plugins jars in root/Editor/target/plugins
before launching editor. Maven can be used to automatize this process for built-in plugins.
Side note: If you are creating custom plugin you can create Maven task that will copy plugin jar to target location and execute it before launch in similar way as described here. Instead of Maven you can use Ant, Gradle or whatever other build system you prefer.
- Clone normal VisEditor launch configuration.
- Find
Before launch
section click green plus icon, selectRun Maven Goal
. - Set
Working directory
to repository root (very important!) - Set goal to
package -Dmaven.test.skip=true -Peditor-plugin-jar
- Save configuration and launch, use this configuration for future launches.
- Create new
Application
launch configuration. - Set main class to
com.kotcrab.vis.ui.test.manual.TestLauncher
. - In field
Use classpath of module
selectvis-ui
- Save configuration and launch, use this configuration for future launches.
- Create new
Application
launch configuration. - Set main class to
com.kotcrab.vis.launcher.Main
. - In field
Use classpath of module
selectvis-launcher
- Save configuration and launch, use this configuration for future launches.
VisEditor uses Maven for its build system. If you want to run editor without IDE you will need Maven. Command mvn
must be available from command line.
Start by cloning repository or by downloading zip file.
Launching first time:
E:\SomeFolder\VisEditor> mvn package -Peditor-plugin-jar
E:\SomeFolder\VisEditor> cd Editor
E:\SomeFolder\VisEditor\Editor> mvn exec:java
First launch will take more time, Maven will have to download all required dependencies.
Launching if nothing outside editor folder was modified: (editor source can be modified between launches but if you change something in runtime, ui or plugins you will have to execute same commands as during first launch)
E:\SomeFolder\VisEditor\Editor> mvn exec:java
See README for VisUI introduction.