public class LimeProject extends Object
GenerateProjectXmlMojo
.
To define your project configuration, add a <limeProject>
parameter
to the <configuration>
section for lime-openfl-maven-plugin
in your Maven pom.xml file.
<build>
<plugins>
<plugin>
<groupId>com.feathersui.maven.plugins</groupId>
<artifactId>lime-openfl-maven-plugin</artifactId>
<version>1.0.0</version>
<extensions>true</extensions>
<configuration>
<limeProject>
<app>
<main>com.example.MyApp</main>
<file>myapp</file>
</app>
<window>
<fps>60</fps>
<allowHighDpi>true</allowHighDpi>
</window>
<haxelibs>
<haxelib>openfl</haxelib>
<haxelib>actuate</haxelib>
</haxelib>
<icons>
<icon>assets/myapp-icon.svg</icon>
</icons>
</limeProject>
</configuration>
</plugin>
</plugins>
</build>
Warning: While the Lime project.xml file and the Maven pom.xml file are both forms of XML, and they both represent the same data, they don't have the exact same format, so you cannot simply copy/paste between the two. See the examples in this documentation to learn how to define a Lime project in your Maven pom.xml file. Links to the Lime project.xml format are for reference purposes only.
Modifier and Type | Field and Description |
---|---|
App |
app
Represents the
<app> element of the Lime project.xml format. |
Architecture[] |
architectures
Represents the
<architecture> element of the Lime
project.xml format. |
Assets[] |
assets
Represents the
<assets> element of the Lime project.xml
format. |
Certificate[] |
certificates
Represents the
<certificate> element of the Lime project.xml
format. |
Dependency[] |
dependencies
Represents the
<dependency> element of the Lime project.xml
format. |
HaxeDef[] |
haxedefs
Represents the
<haxedef> element of the Lime project.xml
format. |
HaxeFlag[] |
haxeflags
Represents the
<haxeflag> element of the Lime project.xml
format. |
Haxelib[] |
haxelibs
Represents the
<haxelib> element of the Lime project.xml
format. |
Icon[] |
icons
Represents the
<icon> element of the Lime project.xml
format. |
Include[] |
includes
Represents the
<include> element of the Lime project.xml
format. |
Java[] |
java
Represents the
<java> element of the Lime project.xml
format. |
Language[] |
languages
Represents the
<language> element of the Lime project.xml
format. |
LaunchImage |
launchImage
Represents the
<launchImage> element of the Lime project.xml
format. |
Library[] |
libraries
Represents the
<library> element of the Lime project.xml
format. |
Meta |
meta
Represents the
<meta> element of the Lime project.xml
format. |
Ndll[] |
ndlls
Represents the
<ndll> element of the Lime project.xml
format. |
SystemPath[] |
paths
Represents the
<path> element of the Lime project.xml
format. |
PostBuild[] |
postbuilds
Represents the
<postbuild> element of the Lime project.xml
format. |
PreBuild[] |
prebuilds
Represents the
<prebuild> element of the Lime project.xml
format. |
Sample[] |
samples
Represents the
<sample> element of the Lime project.xml
format. |
Section[] |
sections
Represents the
<section> element of the Lime project.xml
format. |
SetEnv[] |
setenvs
Represents the
<setenv> element of the Lime project.xml
format. |
Source[] |
sources
Represents the
<source> element of the Lime project.xml
format. |
Template[] |
templates
Represents the
<template> element of the Lime project.xml
format. |
Window |
window
Represents the
<window> element of the Lime project.xml
format. |
Constructor and Description |
---|
LimeProject() |
public App app
<app>
element of the Lime project.xml format.
The following example sets the App.main
and App.file
fields.
<limeProject>
<app>
<main>com.example.MyApp</main>
<file>myapp</file>
</app>
</limeProject>
App
,
Lime
project.xml format: <app>public Meta meta
<meta>
element of the Lime project.xml
format.
The following example sets the Meta.title
and
Meta.description
fields.
<limeProject>
<meta>
<title>My Cool Application</title>
<description>Get more stuff done with My Cool App</description>
</meta>
</limeProject>
Meta
,
Lime
project.xml format: <meta>public Window window
<window>
element of the Lime project.xml
format.
The following example sets the Window.fps
and
Window.allowHighDpi
fields.
<limeProject>
<window>
<fps>60</fps>
<allowHighDpi>true</allowHighDpi>
</window>
</limeProject>
Window
,
Lime
project.xml format: <window>public Source[] sources
<source>
element of the Lime project.xml
format.
Hint: If the
<sources>
element is not defined, src/main/haxe is added by default.
The following example sets a custom <sources>
element.
<limeProject>
<sources>
<source>src/main/haxe</source>
<source>foo/bar/baz</source>
</sources>
</limeProject>
Source
,
Lime
project.xml format: <source>public Haxelib[] haxelibs
<haxelib>
element of the Lime project.xml
format.
Hint: If the
<haxelibs>
element is not defined, or if lime or openfl is not included, lime is added by default.
The following example sets a custom <haxelibs>
element.
<limeProject>
<haxelibs>
<haxelib>
<name>openfl</name>
<version>9.2.0</version>
</haxelib>
<haxelib>actuate</haxelib>
<haxelib>feathersui</haxelib>
</haxelibs>
</limeProject>
Haxelib
,
Lime
project.xml format: <haxelib>public HaxeDef[] haxedefs
<haxedef>
element of the Lime project.xml
format.HaxeDef
,
Lime
project.xml format: <haxedef>public HaxeFlag[] haxeflags
<haxeflag>
element of the Lime project.xml
format.HaxeFlag
,
Lime
project.xml format: <haxeflag>public Language[] languages
<language>
element of the Lime project.xml
format.Language
,
Lime
project.xml format: <language>public Dependency[] dependencies
<dependency>
element of the Lime project.xml
format.Dependency
,
Lime
project.xml format: <dependency>public Template[] templates
<template>
element of the Lime project.xml
format.Template
,
Lime
project.xml format: <template>public Include[] includes
<include>
element of the Lime project.xml
format.Include
,
Lime
project.xml format: <include>public Icon[] icons
<icon>
element of the Lime project.xml
format.Icon
,
Lime
project.xml format: <icon>public Assets[] assets
<assets>
element of the Lime project.xml
format.Assets
,
Lime
project.xml format: <assets>public Library[] libraries
<library>
element of the Lime project.xml
format.Library
,
Lime
project.xml format: <library>public Java[] java
<java>
element of the Lime project.xml
format.Java
,
Lime
project.xml format: <java>public LaunchImage launchImage
<launchImage>
element of the Lime project.xml
format.public Certificate[] certificates
<certificate>
element of the Lime project.xml
format.public Ndll[] ndlls
<ndll>
element of the Lime project.xml
format.Ndll
,
Lime
project.xml format: <ndll>public SystemPath[] paths
<path>
element of the Lime project.xml
format.SystemPath
,
Lime
project.xml format: <path>public Sample[] samples
<sample>
element of the Lime project.xml
format.Sample
,
Lime
project.xml format: <sample>public SetEnv[] setenvs
<setenv>
element of the Lime project.xml
format.SetEnv
,
Lime
project.xml format: <setenv>public Architecture[] architectures
<architecture>
element of the Lime
project.xml format.public PreBuild[] prebuilds
<prebuild>
element of the Lime project.xml
format.PreBuild
,
Lime
project.xml format: <prebuild>public PostBuild[] postbuilds
<postbuild>
element of the Lime project.xml
format.PostBuild
,
Lime
project.xml format: <postbuild>public Section[] sections
<section>
element of the Lime project.xml
format.Section
,
Lime
project.xml format: <section>Copyright © 2023. All rights reserved.