Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elitemastereric/haxe-shade
A utility library to relocate packages in Haxe projects.
https://github.com/elitemastereric/haxe-shade
Last synced: about 1 month ago
JSON representation
A utility library to relocate packages in Haxe projects.
- Host: GitHub
- URL: https://github.com/elitemastereric/haxe-shade
- Owner: EliteMasterEric
- License: mit
- Created: 2023-11-06T05:35:00.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-06T07:17:45.000Z (about 1 year ago)
- Last Synced: 2023-11-07T07:26:01.766Z (about 1 year ago)
- Language: Haxe
- Size: 13.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Haxe Shade
A utility library to relocate packages in Haxe projects.
It provides macros which relocate packages and modules to prevent overlap and conflicts in languages that do not support them. For example, Java does not allow two imported JARs to each provide the same classpath.
See here for more information: https://medium.com/@akhaku/java-class-shadowing-and-shading-9439b0eacb13
## Installation
Install via Haxelib:
```
haxelib git haxe-shade https://github.com/EliteMasterEric/haxe-shade
```## Usage
Use Haxe Shade as a build macro.
For example, you can put this into your `hxml` file:
```
--macro haxe.shade.Shade.apply("my.package", "another.package")
```In this example, `my.package.Foo` and `my.package.test.Bar` will be moved to `another.package.Foo` and `another.package.test.Bar` in the generated output, respectively.