Skip to content

Commit

Permalink
Update repository
Browse files Browse the repository at this point in the history
  • Loading branch information
SerCeMan committed Jun 21, 2015
1 parent 491228d commit 4ad79a0
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 6 deletions.
34 changes: 32 additions & 2 deletions README.md
@@ -1,6 +1,6 @@
jnr-fuse
==
[![Build Status](https://travis-ci.org/SerCeMan/jnr-fuse.svg?branch=master)](https://travis-ci.org/SerCeMan/jnr-fuse) [![Dependency Status](https://www.versioneye.com/user/projects/55798fad666636001e000005/badge.svg?style=flat)](https://www.versioneye.com/user/projects/55798fad666636001e000005)
[![Build Status](https://travis-ci.org/SerCeMan/jnr-fuse.svg?branch=master)](https://travis-ci.org/SerCeMan/jnr-fuse) [ ![Download](https://api.bintray.com/packages/serce/maven/jnr-fuse/images/download.svg) ](https://bintray.com/serce/maven/jnr-fuse/_latestVersion) [![Dependency Status](https://www.versioneye.com/user/projects/55798fad666636001e000005/badge.svg?style=flat)](https://www.versioneye.com/user/projects/55798fad666636001e000005)

jnr-fuse is FUSE implementation in java using Java Native Runtime (JNR).

Expand All @@ -12,7 +12,37 @@ Main goal of the project is to provide easy way to create high-performance files

[Java Native Runtime](https://github.com/jnr/jnr-ffi) (JNR) is high-performance Java API for binding native libraries and native memory.

## How To
## Get it
### Gradle
```groovy
repositories {
jcenter()
}
dependencies {
compile 'com.github.serceman:jnr-fuse:0.1'
}
````
### Maven
```xml
<repositories>
<repository>
<id>central</id>
<name>bintray</name>
<url>http://jcenter.bintray.com</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>com.github.serceman</groupId>
<artifactId>jnr-fuse</artifactId>
<version>0.1</version>
</dependency>
</dependencies>
```

## How to use
For implementing your own filesystem you need just extend FuseStubFS class and implement methods you need.

See [some examples](https://github.com/SerCeMan/jnr-fuse/tree/master/src/main/java/ru/serce/jnrfuse/examples).
Expand Down
4 changes: 1 addition & 3 deletions bench/read.ini
@@ -1,12 +1,10 @@
[readtest]
blocksize=4k
#filename=/tmp/mnt/
directory=/tmp/mnt/
rw=randread
direct=1
buffered=0
ioengine=libaio
#iodepth=32
time_based=60
size=64M
size=16M
runtime=60
42 changes: 41 additions & 1 deletion build.gradle
Expand Up @@ -2,10 +2,12 @@ plugins {
id 'java'
id 'idea'
id 'com.github.johnrengelman.shadow' version '1.2.1'
id "com.jfrog.bintray" version "1.1"
id 'maven'
}

repositories {
mavenCentral()
jcenter()
}

idea {
Expand All @@ -24,6 +26,29 @@ version = '0.1'
group = 'com.github.serceman'


if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
archives sourcesJar
archives javadocJar
}


dependencies {
compile 'com.github.jnr:jnr-ffi:2.0.3'
Expand All @@ -32,3 +57,18 @@ dependencies {

testCompile group: 'junit', name: 'junit', version: '4.12'
}

bintray {
user = 'serce'
key =
configurations = ['archives']
dryRun = false
publish = true
pkg {
repo = 'maven'
name = 'jnr-fuse'
version {
name = '0.1'
}
}
}

0 comments on commit 4ad79a0

Please sign in to comment.