Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/exoad/exoad4j
General folder that all of my projects use to store user data
https://github.com/exoad/exoad4j
java
Last synced: about 7 hours ago
JSON representation
General folder that all of my projects use to store user data
- Host: GitHub
- URL: https://github.com/exoad/exoad4j
- Owner: exoad
- License: bsd-4-clause
- Created: 2023-11-09T23:22:41.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2023-11-22T21:33:49.000Z (12 months ago)
- Last Synced: 2023-11-22T22:29:47.536Z (12 months ago)
- Topics: java
- Language: Java
- Homepage:
- Size: 85.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# exoad4j
[![Gradle build](https://github.com/exoad/exoad4j/actions/workflows/gradle.yml/badge.svg)](https://github.com/exoad/exoad4j/actions/workflows/gradle.yml)> exoad4j is a library for me to unify all the save locations for my projects
Copyright (C) Jack Meng (exoad) 2023
> [!CAUTION]
> **I highly suggest you do not use this tool directly! Modify it in someway so you do not clash with my projects unless it is for a plugin!**## Motive
**This project was primarily designed for managing multiple personal projects.**
Developing desktop applications often involves the need to save data. However, managing data becomes challenging when dealing with multiple projects, each requiring its own set of saved data. This library aims to address this issue.
The solution involves creating a centralized folder and establishing subfolders to represent individual projects. This approach streamlines the data-saving process for each project, reducing complexity.
## Usage
**Check on GitHub Packages:** https://github.com/exoad/exoad4j/packages/
### Gradle
```groovy
repositories {
mavenCentral()
}
dependencies {
implementation("pkg.exoad:exoad4j:1.1.2")
}
```### Maven
```xml
pkg.exoad
exoad4j
1.1.2
```## Example
**Creating a registry for a new application**
```java
import pkg.exoad.distrib.DistribFolder;
import pkg.exoad.distrib.Exoad;public class MyNewApplication
{
public static void main(String... args)
{
Exoad.arm();
Exoad.putRegistry(
"MyNewApplication",
Exoad.registerProgram(new DistribFolder("astralascent"))
);
}
}
```**Writing to a file under that registry**
```java
Exoad.getRegistry("MyNewApplication").writeToFile("Hello World!", "test.txt");
```