-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
76 changed files
with
2,501 additions
and
1,470 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,61 @@ | ||
Dokany-Java | ||
Dokan-Java | ||
====== | ||
|
||
# Important Notice | ||
This project has switched to a new architecture. The _old_ dokan-java can be found under the deprecated branch and will be deleted after 6 months. | ||
|
||
## Introduction | ||
Dokany-Java is a Java wrapper for [Dokany 1.x release](https://github.com/dokan-dev/dokany/releases) and above. | ||
Dokan-Java is a Java wrapper for [Dokany 1.x releases](https://github.com/dokan-dev/dokany/releases) and above. Using this project you are able to implement your own filesystem on Windows... in Java! | ||
|
||
[Dokany](https://github.com/dokan-dev/dokany) is a device driver providing an interface to develop and run your own filesystem on Windows (similar to [FUSE](https://github.com/libfuse/libfuse)). Its native bindings are written in C/C++, this library provides via JNA a Java interface to its API with additional convenience methods. | ||
|
||
## Runtime Dependencies | ||
- [Java JRE 11](https://jdk.java.net/11/) | ||
|
||
All dependencies can be seen [here](build.gradle). | ||
All dependencies can be seen in the dependecies section of [the build file](build.gradle). The following are the primary dependencies: | ||
|
||
- [JNA](https://github.com/java-native-access/jna) - provides access to [native Dokany functions](https://dokan-dev.github.io/dokany-doc/html/struct_d_o_k_a_n___o_p_e_r_a_t_i_o_n_s.html) | ||
- [Commons IO](https://commons.apache.org/proper/commons-io/) | ||
- [SLF4J](https://www.slf4j.org/) | ||
- [Guava](https://github.com/google/guava) | ||
- [JUnit 5](https://junit.org/junit5/) | ||
|
||
## How to Use | ||
There are 2 ways to directly use dokan-java: | ||
1. Use a pre-built version | ||
2. Build it yourself | ||
|
||
### Pre-Built Version | ||
The first stable release can be found here: https://bintray.com/infeo/maven/dokan-java | ||
|
||
To use dokan-java in maven or gradle projects, you have to add jcenter as a repository and then find it under the following coordinates: | ||
* Maven | ||
```xml | ||
<dependency> | ||
<groupId>dev.dokan</groupId> | ||
<artifactId>dokan_java</artifactId> | ||
<version>1.1.0</version> | ||
</dependency> | ||
``` | ||
* Gradle | ||
```groovy | ||
dependencies { | ||
implementation (group:'dev.dokan', name:'dokan_java', version:'1.1.0') | ||
} | ||
``` | ||
|
||
A publication to [MavenCentral](https://repo.maven.apache.org/maven2/) is in progress. | ||
|
||
## How to Build | ||
TODO | ||
### Build Instructions | ||
Prerequisite: [JDK 11](https://jdk.java.net/11/) | ||
|
||
Building a jar using [Gradle](https://gradle.org/): | ||
1. Open Terminal | ||
2. Navigate to the root folder of the project | ||
3. Execute `./gradlew.bat jar` | ||
|
||
To publish to a local Maven repository, execute as the third step `./gradlew.bat publishToMavenLocal` | ||
|
||
## Examples | ||
Example user filesystems using this library, see the examples package [dev.dokan.dokan_java.examples](https://github.com/dokan-dev/dokan-java/tree/develop/src/main/java/dev/dokan/dokan_java/examples). | ||
|
||
## Contributing | ||
You're encouraged to contribute. Fork the code and then submit a pull request. | ||
|
||
## Development Examples | ||
For an example on how to develop using this library, see the examples package [com.dokan.java.examples](https://github.com/dokan-dev/dokan-java/tree/develop/src/main/java/com/dokan/java/examples). | ||
## License | ||
This library is licensed under [GNU LGPLv3](LICENSE). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.