Skip to content

Commit

Permalink
changing groupId to fit better the homepage of dokany and comply to t…
Browse files Browse the repository at this point in the history
…he maven central requirements
  • Loading branch information
infeo committed Jan 11, 2019
1 parent 6bb5159 commit 99bcbda
Show file tree
Hide file tree
Showing 58 changed files with 180 additions and 168 deletions.
12 changes: 11 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ plugins {
id 'com.jfrog.bintray' version '1.8.4'
}


dependencies {
implementation (group:'com.google.guava', name:'guava', version:guavaVersion)
implementation (group:'net.java.dev.jna', name:'jna', version:jnaVersion)
Expand Down Expand Up @@ -92,13 +93,21 @@ task showBintrayInfo() {
}
}

task showProjectInfo(){
doLast() {
println project.name
println project.version
println project.description
}
}

tasks {
jar {
manifest {
attributes(
'Implementation-Title': project.name,
'Implementation-Version': project.version,
'Specification-Title': 'Java Wrapper for Dokany',
'Specification-Title': project.description,
'Specification-Version': project.version,
)
}
Expand Down Expand Up @@ -133,6 +142,7 @@ publishing {
release(MavenPublication) {
from components.java
groupId group
artifactId artifact
artifact sourcesJar
artifact javadocJar
pom.withXml {
Expand Down
2 changes: 1 addition & 1 deletion dokan-java.iml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id="dokan-java" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="com.dokan" external.system.module.version="1.1.0-SNAPSHOT" type="JAVA_MODULE" version="4">
<module external.linked.project.id="dokan-java" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="dev.dokan" external.system.module.version="1.1.0-SNAPSHOT" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
Expand Down
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name=dokan-java
version=1.1.0-SNAPSHOT
group=com.dokan
group=dev.dokan
artifact=dokan_java
description=A Java wrapper for Dokany (https://dokan-dev.github.io/)

scmUrl=https://github.com/dokan-dev/dokan-java
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.dokan.java;
package dev.dokan.dokan_java;

import com.dokan.java.constants.dokany.MountError;
import com.dokan.java.constants.dokany.MountOption;
import com.dokan.java.structure.DokanOptions;
import com.dokan.java.structure.EnumIntegerSet;
import dev.dokan.dokan_java.constants.dokany.MountError;
import dev.dokan.dokan_java.constants.dokany.MountOption;
import dev.dokan.dokan_java.structure.DokanOptions;
import dev.dokan.dokan_java.structure.EnumIntegerSet;
import com.sun.jna.WString;
import com.sun.jna.ptr.IntByReference;
import org.slf4j.Logger;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dokan.java;
package dev.dokan.dokan_java;

/**
* A byteable object can be converted into an array of Bytes.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dokan.java;
package dev.dokan.dokan_java;

public final class DokanyException extends RuntimeException {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.dokan.java;
package dev.dokan.dokan_java;

import com.dokan.java.constants.dokany.MountOption;
import com.dokan.java.constants.microsoft.CreationDisposition;
import com.dokan.java.constants.microsoft.FileSystemFlag;
import com.dokan.java.constants.microsoft.NtStatuses;
import com.dokan.java.structure.ByHandleFileInformation;
import com.dokan.java.structure.DokanFileInfo;
import com.dokan.java.structure.DokanOptions;
import dev.dokan.dokan_java.constants.dokany.MountOption;
import dev.dokan.dokan_java.constants.microsoft.CreationDisposition;
import dev.dokan.dokan_java.constants.microsoft.FileSystemFlag;
import dev.dokan.dokan_java.constants.microsoft.NtStatuses;
import dev.dokan.dokan_java.structure.ByHandleFileInformation;
import dev.dokan.dokan_java.structure.DokanFileInfo;
import dev.dokan.dokan_java.structure.DokanOptions;
import com.sun.jna.Pointer;
import com.sun.jna.WString;
import com.sun.jna.platform.win32.WinBase;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.dokan.java;
package dev.dokan.dokan_java;

import com.dokan.java.structure.ByHandleFileInformation;
import com.dokan.java.structure.DokanFileInfo;
import dev.dokan.dokan_java.structure.ByHandleFileInformation;
import dev.dokan.dokan_java.structure.DokanFileInfo;
import com.sun.jna.Pointer;
import com.sun.jna.WString;
import com.sun.jna.platform.win32.WinBase;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package com.dokan.java;
package dev.dokan.dokan_java;

import java.util.Arrays;
import java.util.List;

import com.dokan.java.constants.dokany.MountOption;
import com.dokan.java.constants.microsoft.NtStatuses;
import com.dokan.java.constants.microsoft.FileSystemFlag;
import com.dokan.java.structure.ByHandleFileInformation;
import com.dokan.java.structure.DokanFileInfo;
import com.dokan.java.structure.DokanOptions;
import dev.dokan.dokan_java.constants.dokany.MountOption;
import dev.dokan.dokan_java.constants.microsoft.NtStatuses;
import dev.dokan.dokan_java.constants.microsoft.FileSystemFlag;
import dev.dokan.dokan_java.structure.ByHandleFileInformation;
import dev.dokan.dokan_java.structure.DokanFileInfo;
import dev.dokan.dokan_java.structure.DokanOptions;
import com.sun.jna.Callback;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.dokan.java;
package dev.dokan.dokan_java;

import com.dokan.java.structure.ByHandleFileInformation;
import dev.dokan.dokan_java.structure.ByHandleFileInformation;
import com.sun.jna.WString;
import com.sun.jna.platform.win32.WinBase;
import com.sun.jna.platform.win32.WinBase.WIN32_FIND_DATA;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.dokan.java;
package dev.dokan.dokan_java;

import com.dokan.java.constants.microsoft.FileSystemFlag;
import com.dokan.java.structure.EnumIntegerSet;
import dev.dokan.dokan_java.constants.microsoft.FileSystemFlag;
import dev.dokan.dokan_java.structure.EnumIntegerSet;

/**
* Supplementary class to bundle information of the filesystem.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dokan.java;
package dev.dokan.dokan_java;

public class LibraryNotFoundException extends RuntimeException{

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.dokan.java;
package dev.dokan.dokan_java;

import com.dokan.java.constants.dokany.MountOption;
import com.dokan.java.structure.EnumIntegerSet;
import dev.dokan.dokan_java.constants.dokany.MountOption;
import dev.dokan.dokan_java.structure.EnumIntegerSet;

import java.nio.file.Path;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.dokan.java;
package dev.dokan.dokan_java;

import com.dokan.java.constants.dokany.MountError;
import com.dokan.java.structure.DokanOptions;
import com.dokan.java.structure.DokanFileInfo;
import dev.dokan.dokan_java.constants.dokany.MountError;
import dev.dokan.dokan_java.structure.DokanOptions;
import dev.dokan.dokan_java.structure.DokanFileInfo;
import com.sun.jna.Native;
import com.sun.jna.WString;
import com.sun.jna.ptr.IntByReference;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dokan.java;
package dev.dokan.dokan_java;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dokan.java;
package dev.dokan.dokan_java;

import java.util.Arrays;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dokan.java.constants;
package dev.dokan.dokan_java.constants;

/**
* An EnumInteger is an object that is represented by an 32bit integer value. TODO: Maybe make this an abstract class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.dokan.java.constants.dokany;
package dev.dokan.dokan_java.constants.dokany;

import com.dokan.java.constants.EnumInteger;
import dev.dokan.dokan_java.constants.EnumInteger;

/**
* Return values of com.dokan.java.NativeMethods#DokanMain(DokanOptions, DokanyOperations)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.dokan.java.constants.dokany;
package dev.dokan.dokan_java.constants.dokany;

import com.dokan.java.constants.EnumInteger;
import com.dokan.java.structure.EnumIntegerSet;
import com.dokan.java.structure.DokanOptions;
import dev.dokan.dokan_java.constants.EnumInteger;
import dev.dokan.dokan_java.structure.EnumIntegerSet;
import dev.dokan.dokan_java.structure.DokanOptions;

/**
* Enumeration of features that can be enabled for a mount. Part of {@link DokanOptions}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.dokan.java.constants.microsoft;
package dev.dokan.dokan_java.constants.microsoft;

import com.dokan.java.constants.EnumInteger;
import dev.dokan.dokan_java.constants.EnumInteger;
import com.sun.jna.platform.win32.WinNT;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package com.dokan.java.constants.microsoft;
package dev.dokan.dokan_java.constants.microsoft;

import com.dokan.java.DokanyOperations;
import com.dokan.java.constants.EnumInteger;
import dev.dokan.dokan_java.DokanyOperations;
import dev.dokan.dokan_java.constants.EnumInteger;
import com.sun.jna.ptr.IntByReference;

/**
* Enum of possible actions to perform on a file when the function {@link DokanyOperations#ZwCreateFile} is called.
*
* <p>
* <b> Attention!</b>
* The members of this enum are the kernel flags, not to be confused with the user flags in {@link CreationDisposition}. To convert them, use {@link com.dokan.java.NativeMethods#DokanMapKernelToUserCreateFileFlags(long, long, long, long, IntByReference, IntByReference, IntByReference)}. The relation between this two is also
* The members of this enum are the kernel flags, not to be confused with the user flags in {@link CreationDisposition}. To convert them, use {@link dev.dokan.dokan_java.NativeMethods#DokanMapKernelToUserCreateFileFlags(long, long, long, long, IntByReference, IntByReference, IntByReference)}. The relation between this two is also
* descriped under this <a href="https://stackoverflow.com/questions/22552697/correspondence-between-procmon-and-createfile-disposition-options#22553544">link</a>.
* </p>
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dokan.java.constants.microsoft;
package dev.dokan.dokan_java.constants.microsoft;

public final class CreateDispositions {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.dokan.java.constants.microsoft;
package dev.dokan.dokan_java.constants.microsoft;

import com.dokan.java.constants.EnumInteger;
import com.dokan.java.structure.EnumIntegerSet;
import dev.dokan.dokan_java.constants.EnumInteger;
import dev.dokan.dokan_java.structure.EnumIntegerSet;

/**
* Enum of flags specifying the options to apply when the driver creates or opens the file.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dokan.java.constants.microsoft;
package dev.dokan.dokan_java.constants.microsoft;

public final class CreateOptions {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.dokan.java.constants.microsoft;
package dev.dokan.dokan_java.constants.microsoft;

import com.dokan.java.constants.EnumInteger;
import dev.dokan.dokan_java.constants.EnumInteger;
import com.sun.jna.platform.win32.WinNT;
import com.sun.jna.ptr.IntByReference;

/**
* Enum of actions to take on a not-necessarily existing file or device.
* <p>These values are the userspace equivalent of {@link CreateDisposition}.
* For a given CreateDisposition value the corresponding CreationDisposition value can be computed via the {@link com.dokan.java.NativeMethods#DokanMapKernelToUserCreateFileFlags(long, long, long, long,
* For a given CreateDisposition value the corresponding CreationDisposition value can be computed via the {@link dev.dokan.dokan_java.NativeMethods#DokanMapKernelToUserCreateFileFlags(long, long, long, long,
* IntByReference, IntByReference, IntByReference)}
* </p>
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.dokan.java.constants.microsoft;
package dev.dokan.dokan_java.constants.microsoft;

import com.dokan.java.constants.EnumInteger;
import dev.dokan.dokan_java.constants.EnumInteger;
import com.sun.jna.platform.win32.WinNT;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.dokan.java.constants.microsoft;
package dev.dokan.dokan_java.constants.microsoft;

import com.dokan.java.constants.EnumInteger;
import dev.dokan.dokan_java.constants.EnumInteger;
import com.sun.jna.platform.win32.WinNT;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.dokan.java.constants.microsoft;
package dev.dokan.dokan_java.constants.microsoft;

import com.dokan.java.constants.EnumInteger;
import com.dokan.java.structure.EnumIntegerSet;
import dev.dokan.dokan_java.constants.EnumInteger;
import dev.dokan.dokan_java.structure.EnumIntegerSet;
import com.sun.jna.platform.win32.WinNT;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.dokan.java.constants.microsoft;
package dev.dokan.dokan_java.constants.microsoft;

import com.dokan.java.DokanyOperations;
import com.dokan.java.constants.EnumInteger;
import com.dokan.java.structure.EnumIntegerSet;
import dev.dokan.dokan_java.DokanyOperations;
import dev.dokan.dokan_java.constants.EnumInteger;
import dev.dokan.dokan_java.structure.EnumIntegerSet;
import com.sun.jna.platform.win32.WinNT;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.dokan.java.constants.microsoft;
package dev.dokan.dokan_java.constants.microsoft;


import com.dokan.java.constants.EnumInteger;
import dev.dokan.dokan_java.constants.EnumInteger;

/**
* NTSTATUS values are status codes indicating the success or reason of failure of called methods.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dokan.java.constants.microsoft;
package dev.dokan.dokan_java.constants.microsoft;


public final class NtStatuses {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package com.dokan.java.constants.microsoft;
package dev.dokan.dokan_java.constants.microsoft;


import com.dokan.java.FileSystemInformation;
import dev.dokan.dokan_java.AbstractDokanyFileSystem;
import dev.dokan.dokan_java.FileSystemInformation;

/**
* Win32 Error Codes
* <p>
* These should be returned instead of {@link NtStatuses} values when in the {@link com.dokan.java.AbstractDokanyFileSystem#AbstractDokanyFileSystem(FileSystemInformation, boolean)} the `useKernelFlagsAndCodes` is set to
* These should be returned instead of {@link NtStatuses} values when in the {@link AbstractDokanyFileSystem#AbstractDokanyFileSystem(FileSystemInformation, boolean)} the `useKernelFlagsAndCodes` is set to
* false.
* </p>
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.dokan.java.constants.microsoft.filesecurity;
package dev.dokan.dokan_java.constants.microsoft.filesecurity;

import com.dokan.java.constants.EnumInteger;
import dev.dokan.dokan_java.constants.EnumInteger;

/**
* Enumeration of the different ACE control flags.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.dokan.java.constants.microsoft.filesecurity;
package dev.dokan.dokan_java.constants.microsoft.filesecurity;

import com.dokan.java.Byteable;
import dev.dokan.dokan_java.Byteable;

/**
* Enumeration of possible ACE-Types. See also in the <a href="https://msdn.microsoft.com/en-us/library/cc230296.aspx">Microsoft documentation.</a>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.dokan.java.constants.microsoft.filesecurity;
package dev.dokan.dokan_java.constants.microsoft.filesecurity;

import com.dokan.java.constants.EnumInteger;
import dev.dokan.dokan_java.constants.EnumInteger;

/**
* Enumeration of the different control flags that can be set in the header of a security descriptor
Expand Down
Loading

0 comments on commit 99bcbda

Please sign in to comment.