diff --git a/.gitignore b/.gitignore index 765aad8..1f82548 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,8 @@ .idea/ *.iml */target/ -target/ +target/ + +dnscache.map +jdnsproxy.custom*.properties +*.diff diff --git a/jDnsProxy/pom.xml b/jDnsProxy/pom.xml new file mode 100644 index 0000000..e776915 --- /dev/null +++ b/jDnsProxy/pom.xml @@ -0,0 +1,45 @@ + + + + com.moparisthebest.dns + jDnsProxy-parent + 1.0-SNAPSHOT + + 4.0.0 + com.moparisthebest.dns + jDnsProxy + jar + 1.0-SNAPSHOT + ${project.artifactId} + + + eu.geekplace.javapinning + java-pinning-java7 + 1.1.0 + + + + ${project.artifactId} + + + maven-shade-plugin + + + package + + shade + + + + + com.moparisthebest.dns.DnsProxy + + + + + + + + + diff --git a/src/main/java/com/moparisthebest/dns/DnsProxy.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/DnsProxy.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/DnsProxy.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/DnsProxy.java diff --git a/src/main/java/com/moparisthebest/dns/Util.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/Util.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/Util.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/Util.java diff --git a/src/main/java/com/moparisthebest/dns/dto/AbstractBufferWindow.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/dto/AbstractBufferWindow.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/dto/AbstractBufferWindow.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/dto/AbstractBufferWindow.java diff --git a/src/main/java/com/moparisthebest/dns/dto/BufferWindow.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/dto/BufferWindow.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/dto/BufferWindow.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/dto/BufferWindow.java diff --git a/src/main/java/com/moparisthebest/dns/dto/Name.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/dto/Name.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/dto/Name.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/dto/Name.java diff --git a/src/main/java/com/moparisthebest/dns/dto/Opt.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/dto/Opt.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/dto/Opt.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/dto/Opt.java diff --git a/src/main/java/com/moparisthebest/dns/dto/OptData.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/dto/OptData.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/dto/OptData.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/dto/OptData.java diff --git a/src/main/java/com/moparisthebest/dns/dto/Packet.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/dto/Packet.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/dto/Packet.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/dto/Packet.java diff --git a/src/main/java/com/moparisthebest/dns/dto/Question.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/dto/Question.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/dto/Question.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/dto/Question.java diff --git a/src/main/java/com/moparisthebest/dns/dto/ResourceRecord.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/dto/ResourceRecord.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/dto/ResourceRecord.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/dto/ResourceRecord.java diff --git a/src/main/java/com/moparisthebest/dns/listen/Listener.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/listen/Listener.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/listen/Listener.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/listen/Listener.java diff --git a/src/main/java/com/moparisthebest/dns/listen/TcpAsync.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/listen/TcpAsync.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/listen/TcpAsync.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/listen/TcpAsync.java diff --git a/src/main/java/com/moparisthebest/dns/listen/UdpSync.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/listen/UdpSync.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/listen/UdpSync.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/listen/UdpSync.java diff --git a/src/main/java/com/moparisthebest/dns/net/BufChan.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/net/BufChan.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/net/BufChan.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/net/BufChan.java diff --git a/src/main/java/com/moparisthebest/dns/net/FullBufChanCompletionHandler.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/net/FullBufChanCompletionHandler.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/net/FullBufChanCompletionHandler.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/net/FullBufChanCompletionHandler.java diff --git a/src/main/java/com/moparisthebest/dns/net/FullReadCompletionHandler.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/net/FullReadCompletionHandler.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/net/FullReadCompletionHandler.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/net/FullReadCompletionHandler.java diff --git a/src/main/java/com/moparisthebest/dns/net/FullWriteCompletionHandler.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/net/FullWriteCompletionHandler.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/net/FullWriteCompletionHandler.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/net/FullWriteCompletionHandler.java diff --git a/src/main/java/com/moparisthebest/dns/net/FunctionalCompletionHandler.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/net/FunctionalCompletionHandler.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/net/FunctionalCompletionHandler.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/net/FunctionalCompletionHandler.java diff --git a/src/main/java/com/moparisthebest/dns/net/ParsedUrl.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/net/ParsedUrl.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/net/ParsedUrl.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/net/ParsedUrl.java diff --git a/src/main/java/com/moparisthebest/dns/net/UdpRequestResponse.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/net/UdpRequestResponse.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/net/UdpRequestResponse.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/net/UdpRequestResponse.java diff --git a/src/main/java/com/moparisthebest/dns/resolve/AbstractQueueProcessingResolver.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/resolve/AbstractQueueProcessingResolver.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/resolve/AbstractQueueProcessingResolver.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/resolve/AbstractQueueProcessingResolver.java diff --git a/src/main/java/com/moparisthebest/dns/resolve/BaseRequestResponse.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/resolve/BaseRequestResponse.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/resolve/BaseRequestResponse.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/resolve/BaseRequestResponse.java diff --git a/src/main/java/com/moparisthebest/dns/resolve/CacheResolver.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/resolve/CacheResolver.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/resolve/CacheResolver.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/resolve/CacheResolver.java diff --git a/src/main/java/com/moparisthebest/dns/resolve/HttpResolver.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/resolve/HttpResolver.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/resolve/HttpResolver.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/resolve/HttpResolver.java diff --git a/src/main/java/com/moparisthebest/dns/resolve/QueueProcessingResolver.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/resolve/QueueProcessingResolver.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/resolve/QueueProcessingResolver.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/resolve/QueueProcessingResolver.java diff --git a/src/main/java/com/moparisthebest/dns/resolve/RequestResponse.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/resolve/RequestResponse.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/resolve/RequestResponse.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/resolve/RequestResponse.java diff --git a/src/main/java/com/moparisthebest/dns/resolve/Resolver.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/resolve/Resolver.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/resolve/Resolver.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/resolve/Resolver.java diff --git a/src/main/java/com/moparisthebest/dns/resolve/SocketResolver.java b/jDnsProxy/src/main/java/com/moparisthebest/dns/resolve/SocketResolver.java similarity index 100% rename from src/main/java/com/moparisthebest/dns/resolve/SocketResolver.java rename to jDnsProxy/src/main/java/com/moparisthebest/dns/resolve/SocketResolver.java diff --git a/pom.xml b/pom.xml index af86618..eee3c5a 100644 --- a/pom.xml +++ b/pom.xml @@ -7,8 +7,8 @@ 4.0.0 com.moparisthebest.dns - jDnsProxy - jar + jDnsProxy-parent + pom 1.0-SNAPSHOT ${project.artifactId} @@ -44,13 +44,9 @@ false true - - - eu.geekplace.javapinning - java-pinning-java7 - 1.1.0 - - + + jDnsProxy + ${project.artifactId} @@ -96,12 +92,6 @@ - - - com.moparisthebest.dns.DnsProxy - - @@ -131,4 +121,4 @@ - \ No newline at end of file +