public class Haxelib extends Object
<haxelib>
element of the Lime project.xml
format.
The following example sets a custom <haxelibs>
element.
<limeProject>
<haxelibs>
<haxelib>
<name>openfl</name>
<version>9.2.0</version>
</haxelib>
<haxelib>actuate</haxelib>
</haxelibs>
</limeProject>
Modifier and Type | Field and Description |
---|---|
String |
name
The library's name.
|
Boolean |
optional
Optionally specify if the library is optional.
|
File |
path
Optionally specify a custom path to the library.
|
String |
version
Optionally specify the library's version.
|
Constructor and Description |
---|
Haxelib() |
Modifier and Type | Method and Description |
---|---|
void |
set(String name)
Allows the Haxelib to be created from a simple
String that
represents its name. |
public String name
The following example sets a custom <name>
element explicitly.
<limeProject>
<haxelibs>
<haxelib>
<name>openfl</name>
</haxelib>
<haxelib>
<name>actuate</name>
</haxelib>
</haxelibs>
</limeProject>
The <haxelibs>
element supports using a simple String
value as shorthand, if no version
value needs to be specified.
<limeProject>
<haxelibs>
<haxelib>openfl</haxelib>
<haxelib>actuate</haxelib>
</haxelibs>
</limeProject>
public String version
The following example sets <version>
element.
<limeProject>
<haxelibs>
<haxelib>
<name>openfl</name>
<version>9.2.0</version>
</haxelib>
</haxelibs>
</limeProject>
public Boolean optional
The following example sets <optional>
element.
<limeProject>
<haxelibs>
<haxelib>
<name>openfl</name>
<optional>true</optional>
</haxelib>
</haxelibs>
</limeProject>
public File path
The following example sets <path>
element.
<limeProject>
<haxelibs>
<haxelib>
<name>openfl</name>
<path>/foo/bar/baz</path>
</haxelib>
</haxelibs>
</limeProject>
Copyright © 2023. All rights reserved.