http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/fc7b26c8/avatica/site/fonts/fontawesome-webfont.woff ---------------------------------------------------------------------- diff --git a/avatica/site/fonts/fontawesome-webfont.woff b/avatica/site/fonts/fontawesome-webfont.woff deleted file mode 100755 index 628b6a5..0000000 Binary files a/avatica/site/fonts/fontawesome-webfont.woff and /dev/null differ
http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/fc7b26c8/avatica/site/img/feather.png ---------------------------------------------------------------------- diff --git a/avatica/site/img/feather.png b/avatica/site/img/feather.png deleted file mode 100644 index a2da98a..0000000 Binary files a/avatica/site/img/feather.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/fc7b26c8/avatica/site/img/logo.png ---------------------------------------------------------------------- diff --git a/avatica/site/img/logo.png b/avatica/site/img/logo.png deleted file mode 100644 index 22b983e..0000000 Binary files a/avatica/site/img/logo.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/fc7b26c8/avatica/site/index.html ---------------------------------------------------------------------- diff --git a/avatica/site/index.html b/avatica/site/index.html deleted file mode 100644 index d347e33..0000000 --- a/avatica/site/index.html +++ /dev/null @@ -1,66 +0,0 @@ ---- -layout: default -title: Apache Calcite • Dynamic data management framework -overview: true ---- -{% comment %} -Licensed to the Apache Software Foundation (ASF) under one or more -contributor license agreements. See the NOTICE file distributed with -this work for additional information regarding copyright ownership. -The ASF licenses this file to you under the Apache License, Version 2.0 -(the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -{% endcomment %} - -<section class="intro"> - <div class="grid"> - <div class="unit whole center-on-mobiles"> - <p class="first">Avatica is a framework for building database drivers.</p> - </div> - </div> -</section> -<section class="features"> - <div class="grid"> - <div class="unit whole center-on-mobiles"> - <p>Avatica is defined by a wire API between a client and a server. The Avatica server is - an HTTP server, the Avatica client is a JDBC driver, and the wire API is defined by - JSON or Protobuf Buffers. The flexibility of the wire API and HTTP transport allows - other Avatica clients to be built in any language, implementing any client specification.</p> - <p>Avatica is a sub-project of the <a href="{{ site.baseurl }}/..">Apache Calcite project</a>. - Please refer to Calcite for information about the project as a whole.</p> - </div> - </div> -</section> -<section class="resources"> - <div class="grid"> - <div class="unit one-third"> - <summary> - <h3>Resources</h3> - <ul> - <li><a href="{{ site.baseurl }}/downloads">Downloads</a></li> - <li><a href="{{ site.baseurl }}/docs/history.html">History</a></li> - <li><a href="http://www.apache.org/security">Security</a></li> - </ul> - </summary> - </div> - <div class="unit one-third"> - <summary> - <h3>Apache</h3> - <ul> - <li><a href="http://www.apache.org/licenses">License</a></li> - <li><a href="http://www.apache.org/foundation/sponsorship.html">Donate</a></li> - <li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li> - <li><a href="http://www.apache.org">Website</a></li> - </ul> - </summary> - </div> - </div> -</section> http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/fc7b26c8/avatica/site/js/html5shiv.min.js ---------------------------------------------------------------------- diff --git a/avatica/site/js/html5shiv.min.js b/avatica/site/js/html5shiv.min.js deleted file mode 100644 index d4c731a..0000000 --- a/avatica/site/js/html5shiv.min.js +++ /dev/null @@ -1,4 +0,0 @@ -/** -* @preserve HTML5 Shiv 3.7.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed -*/ -!function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=t.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=t.elements;"string"!=typeof c&&(c=c.join(" ")),"string"!=typeof a&&(a=a.join(" ")),t.elements=c+" "+a,j(b)}function f(a){var b=s[a[q]];return b||(b={},r++,a[q]=r,s[r]=b),b}function g(a,c,d){if(c||(c=b),l)return c.createElement(a);d||(d=f(c));var e;return e=d.cache[a]?d.cache[a].cloneNode():p.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!e.canHaveChildren||o.test(a)||e.tagUrn?e:d.frag.appendChild(e)}function h(a,c){if(a||(a=b),l)return a.createDocumentFragment();c=c||f(a);for(var e=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)e.createElement(h[g]);return e}function i(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag ()),a.createElement=function(c){return t.shivMethods?g(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(t,b.frag)}function j(a){a||(a=b);var d=f(a);return!t.shivCSS||k||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),l||i(a,d),a}var k,l,m="3.7.2",n=a.html5||{},o=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,q="_html5shiv",r=0,s={};!function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",k="hidden"in a,l=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined" ==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){k=!0,l=!0}}();var t={elements:n.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:m,shivCSS:n.shivCSS!==!1,supportsUnknownElements:l,shivMethods:n.shivMethods!==!1,type:"default",shivDocument:j,createElement:g,createDocumentFragment:h,addElements:e};a.html5=t,j(b)}(this,document); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/fc7b26c8/avatica/site/js/respond.min.js ---------------------------------------------------------------------- diff --git a/avatica/site/js/respond.min.js b/avatica/site/js/respond.min.js deleted file mode 100644 index 80a7b69..0000000 --- a/avatica/site/js/respond.min.js +++ /dev/null @@ -1,5 +0,0 @@ -/*! Respond.js v1.4.2: min/max-width media query polyfill * Copyright 2013 Scott Jehl - * Licensed under https://github.com/scottjehl/Respond/blob/master/LICENSE-MIT - * */ - -!function(a){"use strict";a.matchMedia=a.matchMedia||function(a){var b,c=a.documentElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.createElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHTML='­<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}}(a.document)}(this),function(a){"use strict";function b(){u(!0)}var c={};a.respond=c,c.update=function(){};var d=[],e=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}(),f=function(a,b){var c=e();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))};if(c.ajax=f,c.queue=d,c.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?: o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},c.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var g,h,i,j=a.document,k=j.documentElement,l=[],m=[],n=[],o={},p=30,q=j.getElementsByTagName("head")[0]||k,r=j.getElementsByTagName("base")[0],s=q.getElementsByTagName("link"),t=function(){var a,b=j.createElement("div"),c=j.body,d=k.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=j.createElement("body"),c.style.background="none"),k.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&k.insertBefore(c,k.firstChild),a=b.offsetWidth,f?k.removeChild(c):c.removeC hild(b),k.style.fontSize=d,e&&(c.style.fontSize=e),a=i=parseFloat(a)},u=function(b){var c="clientWidth",d=k[c],e="CSS1Compat"===j.compatMode&&d||j.body[c]||d,f={},o=s[s.length-1],r=(new Date).getTime();if(b&&g&&p>r-g)return a.clearTimeout(h),h=a.setTimeout(u,p),void 0;g=r;for(var v in l)if(l.hasOwnProperty(v)){var w=l[v],x=w.minw,y=w.maxw,z=null===x,A=null===y,B="em";x&&(x=parseFloat(x)*(x.indexOf(B)>-1?i||t():1)),y&&(y=parseFloat(y)*(y.indexOf(B)>-1?i||t():1)),w.hasquery&&(z&&A||!(z||e>=x)||!(A||y>=e))||(f[w.media]||(f[w.media]=[]),f[w.media].push(m[w.rules]))}for(var C in n)n.hasOwnProperty(C)&&n[C]&&n[C].parentNode===q&&q.removeChild(n[C]);n.length=0;for(var D in f)if(f.hasOwnProperty(D)){var E=j.createElement("style"),F=f[D].join("\n");E.type="text/css",E.media=D,q.insertBefore(E,o.nextSibling),E.styleSheet?E.styleSheet.cssText=F:E.appendChild(j.createTextNode(F)),n.push(E)}},v=function(a,b,d){var e=a.replace(c.regex.keyframes,"").match(c.regex.media),f=e&&e.length||0;b=b.substr ing(0,b.lastIndexOf("/"));var g=function(a){return a.replace(c.regex.urls,"$1"+b+"$2$3")},h=!f&&d;b.length&&(b+="/"),h&&(f=1);for(var i=0;f>i;i++){var j,k,n,o;h?(j=d,m.push(g(a))):(j=e[i].match(c.regex.findStyles)&&RegExp.$1,m.push(RegExp.$2&&g(RegExp.$2))),n=j.split(","),o=n.length;for(var p=0;o>p;p++)k=n[p],l.push({media:k.split("(")[0].match(c.regex.only)&&RegExp.$2||"all",rules:m.length-1,hasquery:k.indexOf("(")>-1,minw:k.match(c.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:k.match(c.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}u()},w=function(){if(d.length){var b=d.shift();f(b.href,function(c){v(c,b.href,b.media),o[b.href]=!0,a.setTimeout(function(){w()},0)})}},x=function(){for(var b=0;b<s.length;b++){var c=s[b],e=c.href,f=c.media,g=c.rel&&"stylesheet"===c.rel.toLowerCase();e&&g&&!o[e]&&(c.styleSheet&&c.styleSheet.rawCssText?(v(c.styleSheet.rawCssText,e,f),o[e]=!0):(!/^([a-zA-Z:]*\/\/)/.test(e)&&!r||e.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&(" //"===e.substring(0,2)&&(e=a.location.protocol+e),d.push({href:e,media:f})))}w()};x(),c.update=x,c.getEmValue=t,a.addEventListener?a.addEventListener("resize",b,!1):a.attachEvent&&a.attachEvent("onresize",b)}}(this); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/fc7b26c8/avatica/site/news/index.html ---------------------------------------------------------------------- diff --git a/avatica/site/news/index.html b/avatica/site/news/index.html deleted file mode 100644 index 66d4dcd..0000000 --- a/avatica/site/news/index.html +++ /dev/null @@ -1,35 +0,0 @@ ---- -layout: news -title: News -permalink: /news/ -author: all ---- -{% comment %} -Licensed to the Apache Software Foundation (ASF) under one or more -contributor license agreements. See the NOTICE file distributed with -this work for additional information regarding copyright ownership. -The ASF licenses this file to you under the Apache License, Version 2.0 -(the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -{% endcomment %} - -{% for post in site.posts %} - {% include news_item.html %} -{% endfor %} - -<p></p> - -<h2>Calcite Twitter</h2> - -<p>The official <a href="https://twitter.com/ApacheCalcite">@ApacheCalcite</a> -Twitter account pushes announcements about Calcite. If you give a talk about -Calcite, let us know and we'll tweet it out and add it to the news section -of the website.</p> http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/fc7b26c8/avatica/site/news/releases/index.html ---------------------------------------------------------------------- diff --git a/avatica/site/news/releases/index.html b/avatica/site/news/releases/index.html deleted file mode 100644 index c6c9fa6..0000000 --- a/avatica/site/news/releases/index.html +++ /dev/null @@ -1,26 +0,0 @@ ---- -layout: news -title: Releases -permalink: /news/releases/ -author: all ---- -{% comment %} -Licensed to the Apache Software Foundation (ASF) under one or more -contributor license agreements. See the NOTICE file distributed with -this work for additional information regarding copyright ownership. -The ASF licenses this file to you under the Apache License, Version 2.0 -(the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -{% endcomment %} - -{% for post in site.categories.release %} - {% include news_item.html %} -{% endfor %} http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/fc7b26c8/avatica/src/main/config/assemblies/source-assembly.xml ---------------------------------------------------------------------- diff --git a/avatica/src/main/config/assemblies/source-assembly.xml b/avatica/src/main/config/assemblies/source-assembly.xml deleted file mode 100644 index 2b1f930..0000000 --- a/avatica/src/main/config/assemblies/source-assembly.xml +++ /dev/null @@ -1,103 +0,0 @@ -<?xml version='1.0' encoding='UTF-8'?> -<!-- -Licensed to the Apache Software Foundation (ASF) under one or more -contributor license agreements. See the NOTICE file distributed with -this work for additional information regarding copyright ownership. -The ASF licenses this file to you under the Apache License, Version 2.0 -(the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. ---> -<assembly> - <id>source-release</id> - <formats> - <format>zip</format> - <format>tar.gz</format> - </formats> - <fileSets> - <!-- main project directory structure --> - <fileSet> - <directory>.</directory> - <outputDirectory>/</outputDirectory> - <useDefaultExcludes>true</useDefaultExcludes> - <excludes> - <!-- build output --> - <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/).*${project.build.directory}.*] - </exclude> - - <!-- NOTE: Most of the following excludes should not be required - if the standard release process is followed. This is because the release - plugin checks out project sources into a location like target/checkout, then - runs the build from there. The result is a source-release archive that comes - from a pretty clean directory structure. HOWEVER, if the release plugin is - configured to run extra goals or generate a project website, it's definitely - possible that some of these files will be present. So, it's safer to exclude - them. --> - - <!-- IDEs --> - <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?maven-eclipse\.xml] - </exclude> - <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.project] - </exclude> - <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.classpath] - </exclude> - <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?[^/]*\.iws] - </exclude> - <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.idea(/.*)?] - </exclude> - <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?out(/.*)?] - </exclude> - <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?[^/]*\.ipr] - </exclude> - <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?[^/]*\.iml] - </exclude> - <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.settings(/.*)?] - </exclude> - <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.externalToolBuilders(/.*)?] - </exclude> - <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.deployables(/.*)?] - </exclude> - <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.wtpmodules(/.*)?] - </exclude> - - - <!-- scm --> - <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.gitignore(/.*)?] - </exclude> - - <exclude>**/.buildpath</exclude> - <exclude>**/sandbox/**</exclude> - - <!-- misc --> - <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?cobertura\.ser] - </exclude> - - <!-- release-plugin temp files --> - <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?pom\.xml\.releaseBackup] - </exclude> - <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?release\.properties] - </exclude> - </excludes> - </fileSet> - <!-- LICENSE, NOTICE, DEPENDENCIES, git.properties, etc. calculated at build time --> - <fileSet> - <directory>${project.build.directory}/maven-shared-archive-resources/META-INF - </directory> - <outputDirectory>/</outputDirectory> - </fileSet> - <fileSet> - <directory>${project.build.directory}</directory> - <includes> - <include>git.properties</include> - </includes> - <outputDirectory>/</outputDirectory> - </fileSet> - </fileSets> -</assembly> http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/fc7b26c8/avatica/src/main/config/checkstyle/checker.xml ---------------------------------------------------------------------- diff --git a/avatica/src/main/config/checkstyle/checker.xml b/avatica/src/main/config/checkstyle/checker.xml deleted file mode 100644 index 167511b..0000000 --- a/avatica/src/main/config/checkstyle/checker.xml +++ /dev/null @@ -1,279 +0,0 @@ -<?xml version="1.0"?> -<!-- -Licensed to the Apache Software Foundation (ASF) under one or more -contributor license agreements. See the NOTICE file distributed with -this work for additional information regarding copyright ownership. -The ASF licenses this file to you under the Apache License, Version 2.0 -(the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. ---> - -<!-- - This version of checkstyle is based on the Apache Giraph checkstyle - configuration, which in turn is based on Hadoop and common-math - configurations. - - The documentation for checkstyle is available at - - http://checkstyle.sourceforge.net ---> - -<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.1//EN" "http://www.puppycrawl.com/dtds/configuration_1_1.dtd"> - -<!-- Calcite customization of default Checkstyle behavior --> -<module name="Checker"> - <property name="localeLanguage" value="en"/> - - <!-- Checks for headers --> - <!-- See http://checkstyle.sf.net/config_header.html --> - <!-- Verify that EVERY source file has the appropriate license --> - <module name="Header"> - <property name="headerFile" value="${checkstyle.header.file}"/> - </module> - - <!-- Checks for Javadoc comments (checker). --> - <!-- See http://checkstyle.sf.net/config_javadoc.html --> - <!-- Require package javadoc --> - <module name="JavadocPackage"/> - - <!-- Miscellaneous other checks (checker). --> - <!-- See http://checkstyle.sf.net/config_misc.html --> - <!-- Require files to end with newline characters --> - <module name="NewlineAtEndOfFile"> - <property name="lineSeparator" value="lf"/> - </module> - - <!-- Checks for whitespace (tree walker) --> - <!-- See http://checkstyle.sf.net/config_whitespace.html --> - <!-- No tabs allowed! --> - <module name="FileTabCharacter"/> - - <module name="TreeWalker"> - <property name="cacheFile" value="target/checkstyle-cachefile"/> - - <!-- Checks for blocks. You know, those {}'s --> - <!-- See http://checkstyle.sf.net/config_blocks.html --> - <!-- No empty blocks (i.e. catch); must contain at least a comment --> - <module name="EmptyBlock"> - <property name="option" value="text"/> - </module> - <module name="AvoidNestedBlocks"> - <property name="allowInSwitchCase" value="true"/> - </module> - <module name="LeftCurly"/> - <!-- No if/else/do/for/while without braces --> - <module name="NeedBraces"/> - <module name="RightCurly"/> - - <!-- Checks for class design --> - <!-- See http://checkstyle.sf.net/config_design.html --> - <!-- Utility class should not be instantiated, they must have a - private constructor --> - <module name="HideUtilityClassConstructor"/> - - <!-- Checks for common coding problems --> - <!-- See http://checkstyle.sf.net/config_coding.html --> - <module name="EmptyStatement"/> - <!-- Require hash code override when equals is --> - <module name="EqualsHashCode"/> - <!-- Disallow unnecessary instantiation of Boolean, String --> - <module name="IllegalInstantiation"> - <property name="classes" value="java.lang.Boolean, java.lang.String"/> - </module> - <!-- Switch statements should be complete and with independent cases --> - <module name="FallThrough"/> - <module name="SimplifyBooleanExpression"/> - <module name="SimplifyBooleanReturn"/> - <!-- Only one statement per line allowed --> - <module name="OneStatementPerLine"/> - <!-- Don't add up parentheses when they are not required --> - <module name="UnnecessaryParentheses" /> - <!-- Don't use = or != for string comparisons --> - <module name="StringLiteralEquality" /> - <!-- Don't declare multiple variables in the same statement --> - <module name="MultipleVariableDeclarations" /> - <!-- String literals more than one character long should not be - repeated several times --> - <!-- the "unchecked" string is also accepted to allow - @SuppressWarnings("unchecked") --> - <!-- Disabling for now until we have a better ignoreStringsRegexp --> - <!-- - <module name="MultipleStringLiterals" > - <property name="ignoreStringsRegexp" value='^(("")|(".")|("unchecked"))$'/> - </module> - --> - - <!-- Checks for imports --> - <!-- See http://checkstyle.sf.net/config_import.html --> - <module name="RedundantImport"/> - <!-- Import should be explicit, and only from pure java packages. - But we allow imports that are only used in javadoc. --> - <module name="UnusedImports"> - <property name="processJavadoc" value="true"/> - </module> - <module name="IllegalImport" /> - <module name="AvoidStarImport" /> - <module name="ImportOrder"> - <property name="groups" value="org.apache.calcite,org.apache,au.com.,com.,io.,mondrian.,net.,org.,scala.,/^javax?\./"/> - <property name="ordered" value="true"/> - <property name="separated" value="true"/> - <property name="option" value="bottom"/> - </module> - - <!-- Checks for Javadoc comments (tree walker). --> - <!-- See http://checkstyle.sf.net/config_javadoc.html --> - <!-- Javadoc must be formatted correctly --> - <module name="JavadocStyle"> - <property name="checkFirstSentence" value="false"/> - </module> - <!-- Must have class / interface header comments --> - <module name="JavadocType"/> - - <!-- Miscellaneous other checks (tree walker). --> - <!-- See http://checkstyle.sf.net/config_misc.html --> - <!-- Java style arrays --> - <module name="ArrayTypeStyle"/> - <!-- Indentation --> - <module name="Indentation"> - <property name="caseIndent" value="0"/> - <property name="basicOffset" value="2"/> - <property name="braceAdjustment" value="0"/> - </module> - <!-- Turn this on to see what needs to be done - <module name="TodoComment"/> - --> - <module name="UpperEll"/> - - <module name="OperatorWrap"/> - - <!-- Modifier Checks --> - <!-- See http://checkstyle.sf.net/config_modifiers.html --> - <!-- Use a consistent way to put modifiers --> - <module name="ModifierOrder"/> - <module name="RedundantModifier"/> - - <!-- Checks for Naming Conventions. --> - <!-- See http://checkstyle.sf.net/config_naming.html --> - <!-- Constant names should obey the traditional all uppercase - naming convention --> - <module name="ConstantName"/> - <module name="LocalFinalVariableName"> - <!-- Allow '_' except first. --> - <property name="format" value="^[a-z][a-zA-Z0-9_]*$"/> - </module> - <module name="LocalVariableName"> - <!-- Allow '_' except first. --> - <property name="format" value="^[a-z][a-zA-Z0-9_]*$"/> - </module> - <module name="MemberName"/> - <module name="MethodName"> - <!-- Allow trailing '_', signifying private methods. - Also allow '_' prefix, indicating disabled method or junit test. --> - <property name="format" value="^_?[a-z][a-zA-Z0-9]*_?$"/> - </module> - <module name="PackageName"/> - <module name="ParameterName"> - <!-- Allow trailing '_'. --> - <property name="format" value="^[a-z][a-zA-Z0-9]*_?$"/> - </module> - <module name="StaticVariableName"/> - <module name="TypeName"/> - - <!-- Checks for regexp expressions. --> - <!-- See http://checkstyle.sf.net/config_regexp.html --> - - <!-- No trailing whitespace --> - <module name="Regexp"> - <property name="format" value="[ \t]+$"/> - <property name="illegalPattern" value="true"/> - <property name="message" value="Trailing whitespace"/> - </module> - - <!-- Authors should be in pom.xml file --> - <module name="Regexp"> - <property name="format" value="@author"/> - <property name="illegalPattern" value="true"/> - <property name="message" value="developers names should be in pom file"/> - </module> - - <!-- No multi-line C-style comments except at start of line. --> - <module name="Regexp"> - <property name="format" value="^ +/\*[^*][^/]$"/> - <property name="illegalPattern" value="true"/> - <property name="message" value="C-style comment"/> - </module> - - <module name="Regexp"> - <property name="format" value="^ +/\*$"/> - <property name="illegalPattern" value="true"/> - <property name="message" value="C-style comment"/> - </module> - - <!-- Checks for Size Violations. --> - <!-- See http://checkstyle.sf.net/config_sizes.html --> - <!-- Lines cannot exceed 80 chars, except if they are hyperlinks - or strings (possibly preceded by '+' and followed by say '),'. --> - <module name="LineLength"> - <property name="max" value="100"/> - <property name="ignorePattern" value="^import|@see|@link|@BaseMessage|href|^[ +]*".*"[);,]*$"/> - </module> - <!-- Over time, we will revise this down --> - <module name="MethodLength"> - <property name="max" value="390"/> - </module> - - <!-- Checks for whitespace (tree walker) --> - <!-- See http://checkstyle.sf.net/config_whitespace.html --> - <module name="EmptyForIteratorPad"/> - <!-- Spacing around methods --> - <module name="MethodParamPad"> - <property name="option" value="nospace"/> - <property name="allowLineBreaks" value="true"/> - </module> - <!-- No whitespace before a token --> - <module name="NoWhitespaceBefore"/> - <!-- Whitespace after tokens is required --> - <module name="WhitespaceAfter"/> - <!-- Whitespace around tokens is required --> - <module name="WhitespaceAround"> - <property name="allowEmptyConstructors" value="true"/> - <property name="allowEmptyMethods" value="true"/> - </module> - <module name="ParenPad"/> - <module name="TypecastParenPad"/> - <!-- No extra whitespace around types --> - <module name="GenericWhitespace"/> - - <!-- Required for SuppressionCommentFilter below --> - <module name="FileContentsHolder"/> - </module> - - <!-- Setup special comments to suppress specific checks from source files --> - <module name="SuppressionCommentFilter"> - <property name="offCommentFormat" value="CHECKSTYLE\: stop ([\w\|]+)"/> - <property name="onCommentFormat" value="CHECKSTYLE\: resume ([\w\|]+)"/> - <property name="checkFormat" value="$1"/> - </module> - - <!-- Turn off all checks between OFF and ON --> - <module name="SuppressionCommentFilter"> - <property name="offCommentFormat" value="CHECKSTYLE\: OFF"/> - <property name="onCommentFormat" value="CHECKSTYLE\: ON"/> - </module> - - <!-- Turn off checks for the next N lines. --> - <module name="SuppressWithNearbyCommentFilter"> - <property name="commentFormat" value="CHECKSTYLE: +IGNORE (\d+)"/> - <property name="influenceFormat" value="$1"/> - </module> - - <module name="net.hydromatic.toolbox.checkstyle.HydromaticFileSetCheck"/> -</module> http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/fc7b26c8/avatica/src/main/config/checkstyle/header.txt ---------------------------------------------------------------------- diff --git a/avatica/src/main/config/checkstyle/header.txt b/avatica/src/main/config/checkstyle/header.txt deleted file mode 100644 index 2a42971..0000000 --- a/avatica/src/main/config/checkstyle/header.txt +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to you under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/fc7b26c8/avatica/src/main/config/checkstyle/suppressions.xml ---------------------------------------------------------------------- diff --git a/avatica/src/main/config/checkstyle/suppressions.xml b/avatica/src/main/config/checkstyle/suppressions.xml deleted file mode 100644 index 9c31837..0000000 --- a/avatica/src/main/config/checkstyle/suppressions.xml +++ /dev/null @@ -1,49 +0,0 @@ -<?xml version="1.0"?> -<!DOCTYPE suppressions PUBLIC - "-//Puppy Crawl//DTD Suppressions 1.1//EN" - "http://www.puppycrawl.com/dtds/suppressions_1_1.dtd"> -<!-- -Licensed to the Apache Software Foundation (ASF) under one or more -contributor license agreements. See the NOTICE file distributed with -this work for additional information regarding copyright ownership. -The ASF licenses this file to you under the Apache License, Version 2.0 -(the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. ---> -<suppressions> - <!-- Suppress checks on generated files. --> - <suppress checks="Header" files="CalciteResource.properties"/> - <suppress checks=".*" files="org-apache-calcite-jdbc.properties"/> - <suppress checks=".*" files="Foo.java"/> - <suppress checks=".*" files=".*[/\\]target[/\\]maven-archiver[/\\]pom.properties"/> - <suppress checks=".*" files="git.properties"/> - <suppress checks=".*" files="trace.properties"/> - <suppress checks=".*" files="release.properties"/> - <suppress checks=".*" files="core[/\\]src[/\\]main[/\\]java[/\\]org[/\\]apache[/\\]calcite[/\\]avatica[/\\]proto"/> - <suppress checks=".*" files="log4j.properties"/> - <suppress checks=".*" files="auth-users.properties"/> - - <!-- This file triggers https://github.com/checkstyle/checkstyle/issues/92, - through no fault of its own. --> - <suppress checks=".*" files="SqlSimpleParser.java"/> - - <!-- Don't complain about field names such as cust_id --> - <suppress checks=".*Name" files="JdbcExample.java"/> - - <!-- Suppress JavadocPackage in the test packages --> - <suppress checks="JavadocPackage" files="src[/\\]test[/\\]java[/\\]"/> - - <!-- And likewise in ubenchmark --> - <suppress checks="JavadocPackage" files="StatementTest.java"/> - - <!-- Method names in Resource can have underscores --> - <suppress checks="MethodName" files="CalciteResource.java"/> -</suppressions> http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/fc7b26c8/avatica/src/main/config/forbidden-apis/signatures.txt ---------------------------------------------------------------------- diff --git a/avatica/src/main/config/forbidden-apis/signatures.txt b/avatica/src/main/config/forbidden-apis/signatures.txt deleted file mode 100644 index 588837d..0000000 --- a/avatica/src/main/config/forbidden-apis/signatures.txt +++ /dev/null @@ -1,39 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to you under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Signatures of APIs to avoid. -# Cribbed from Elasticsearch - -java.lang.Character#codePointBefore(char[],int) @ Implicit start offset is error-prone when the char[] is a buffer and the first chars are random chars -java.lang.Character#codePointAt(char[],int) @ Implicit end offset is error-prone when the char[] is a buffer and the last chars are random chars - -@defaultMessage Only use wait / notify when really needed try to use concurrency primitives, latches or callbacks instead. -java.lang.Object#wait() -java.lang.Object#wait(long) -java.lang.Object#wait(long,int) -java.lang.Object#notify() -java.lang.Object#notifyAll() - -@defaultMessage Please do not try to stop the world -java.lang.System#gc() - -@defaultMessage Please do not try to kill the world -java.lang.System#exit(int) -java.lang.Runtime#exit(int) - -@defaultMessage Don't interrupt threads; use FutureUtils#cancel(Future<T>) instead -java.util.concurrent.Future#cancel(boolean) - -# End signatures.txt http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/fc7b26c8/avatica/standalone-server/.gitignore ---------------------------------------------------------------------- diff --git a/avatica/standalone-server/.gitignore b/avatica/standalone-server/.gitignore deleted file mode 100644 index b83d222..0000000 --- a/avatica/standalone-server/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/target/ http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/fc7b26c8/avatica/standalone-server/pom.xml ---------------------------------------------------------------------- diff --git a/avatica/standalone-server/pom.xml b/avatica/standalone-server/pom.xml deleted file mode 100644 index 88bfd3b..0000000 --- a/avatica/standalone-server/pom.xml +++ /dev/null @@ -1,217 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -Licensed to the Apache Software Foundation (ASF) under one or more -contributor license agreements. See the NOTICE file distributed with -this work for additional information regarding copyright ownership. -The ASF licenses this file to you under the Apache License, Version 2.0 -(the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. ---> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>org.apache.calcite.avatica</groupId> - <artifactId>avatica-parent</artifactId> - <version>1.10.0-SNAPSHOT</version> - </parent> - <artifactId>avatica-standalone-server</artifactId> - <name>Avatica Standalone Server</name> - <description>A Stadnalone Avatica Server Implementation</description> - - <properties> - <top.dir>${project.basedir}/..</top.dir> - <shaded.pkg>org.apache.calcite.avatica.standalone.shaded</shaded.pkg> - </properties> - - <dependencies> - <!-- Sorted by groupId, artifactId; calcite dependencies first. Put versions - in dependencyManagement in the root POM, not here. --> - <dependency> - <groupId>org.apache.calcite.avatica</groupId> - <artifactId>avatica-core</artifactId> - </dependency> - <dependency> - <groupId>org.apache.calcite.avatica</groupId> - <artifactId>avatica-server</artifactId> - </dependency> - <dependency> - <groupId>com.beust</groupId> - <artifactId>jcommander</artifactId> - </dependency> - <dependency> - <groupId>org.slf4j</groupId> - <artifactId>slf4j-api</artifactId> - </dependency> - <dependency> - <groupId>org.slf4j</groupId> - <artifactId>slf4j-log4j12</artifactId> - </dependency> - </dependencies> - - <build> - <pluginManagement> - <plugins> - <plugin> - <groupId>org.eclipse.m2e</groupId> - <artifactId>lifecycle-mapping</artifactId> - <version>1.0.0</version> - <configuration> - <lifecycleMappingMetadata> - <pluginExecutions> - <pluginExecution> - <pluginExecutionFilter> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-checkstyle-plugin</artifactId> - <versionRange>[2.12.1,)</versionRange> - <goals> - <goal>check</goal> - </goals> - </pluginExecutionFilter> - <action> - <ignore /> - </action> - </pluginExecution> - </pluginExecutions> - </lifecycleMappingMetadata> - </configuration> - </plugin> - </plugins> - </pluginManagement> - <plugins> - <!-- Parent module has the same plugin and does the work of - generating -sources.jar for each project. But without the - plugin declared here, IDEs don't know the sources are - available. --> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-source-plugin</artifactId> - <executions> - <execution> - <id>attach-sources</id> - <phase>verify</phase> - <goals> - <goal>jar-no-fork</goal> - <goal>test-jar-no-fork</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <artifactId>maven-dependency-plugin</artifactId> - <version>${maven-dependency-plugin.version}</version> - <executions> - <execution> - <id>analyze</id> - <goals> - <goal>analyze-only</goal> - </goals> - <configuration> - <failOnWarning>true</failOnWarning> - <!-- ignore "unused but declared" warnings --> - <ignoredUnusedDeclaredDependencies> - <ignoredUnusedDeclaredDependency>org.slf4j:slf4j-log4j12</ignoredUnusedDeclaredDependency> - <ignoredUnusedDeclaredDependency>org.slf4j:slf4j-api</ignoredUnusedDeclaredDependency> - </ignoredUnusedDeclaredDependencies> - </configuration> - </execution> - </executions> - </plugin> - <plugin> - <!-- Create a standalone JAR capable of running the server --> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-shade-plugin</artifactId> - <executions> - <execution> - <phase>package</phase> - <goals> - <goal>shade</goal> - </goals> - <configuration> - <createDependencyReducedPom>false</createDependencyReducedPom> - <relocations> - <relocation> - <pattern>com.beust</pattern> - <shadedPattern>${shaded.pkg}.com.beust</shadedPattern> - </relocation> - <relocation> - <pattern>com.fasterxml</pattern> - <shadedPattern>${shaded.pkg}.com.fasterxml</shadedPattern> - </relocation> - <relocation> - <pattern>com.google.common</pattern> - <shadedPattern>${shaded.pkg}.com.google.common</shadedPattern> - </relocation> - <relocation> - <pattern>com.google.protobuf</pattern> - <shadedPattern>${shaded.pkg}.com.google.protobuf</shadedPattern> - </relocation> - <relocation> - <pattern>javax.servlet</pattern> - <shadedPattern>${shaded.pkg}.javax.servlet</shadedPattern> - </relocation> - <relocation> - <pattern>org.apache.log4j</pattern> - <shadedPattern>${shaded.pkg}.org.apache.log4j</shadedPattern> - </relocation> - <relocation> - <pattern>org.eclipse.jetty</pattern> - <shadedPattern>${shaded.pkg}.org.eclipse.jetty</shadedPattern> - </relocation> - <relocation> - <pattern>org.slf4j</pattern> - <shadedPattern>${shaded.pkg}.org.slf4j</shadedPattern> - </relocation> - <relocation> - <pattern>org.apache.http</pattern> - <shadedPattern>${shaded.pkg}.org.apache.http</shadedPattern> - </relocation> - <relocation> - <pattern>org.apache.commons</pattern> - <shadedPattern>${shaded.pkg}.org.apache.commons</shadedPattern> - </relocation> - </relocations> - <shadedArtifactAttached>true</shadedArtifactAttached> - <transformers> - <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer"> - <addHeader>false</addHeader> - </transformer> - <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer"> - <resources> - <resource>LICENSE.txt</resource> - <!-- Prevent the default LICENSE from conflicting with our custom LICENSE --> - <resource>LICENSE</resource> - </resources> - </transformer> - <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> - <mainClass>org.apache.calcite.avatica.server.StandaloneServer</mainClass> - </transformer> - <!-- Use a custom LICENSE file --> - <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer"> - <resource>META-INF/LICENSE</resource> - <file>src/main/shaded-resources/LICENSE</file> - </transformer> - </transformers> - </configuration> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.rat</groupId> - <artifactId>apache-rat-plugin</artifactId> - <configuration> - <excludes> - <exclude>src/main/resources/META-INF/services/java.sql.Driver</exclude> - </excludes> - </configuration> - </plugin> - </plugins> - </build> -</project> http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/fc7b26c8/avatica/standalone-server/src/main/java/org/apache/calcite/avatica/standalone/StandaloneServer.java ---------------------------------------------------------------------- diff --git a/avatica/standalone-server/src/main/java/org/apache/calcite/avatica/standalone/StandaloneServer.java b/avatica/standalone-server/src/main/java/org/apache/calcite/avatica/standalone/StandaloneServer.java deleted file mode 100644 index f658f5e..0000000 --- a/avatica/standalone-server/src/main/java/org/apache/calcite/avatica/standalone/StandaloneServer.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to you under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.calcite.avatica.standalone; - -import org.apache.calcite.avatica.jdbc.JdbcMeta; -import org.apache.calcite.avatica.remote.Driver.Serialization; -import org.apache.calcite.avatica.remote.LocalService; -import org.apache.calcite.avatica.server.HttpServer; -import org.apache.calcite.avatica.util.Unsafe; - -import com.beust.jcommander.IStringConverter; -import com.beust.jcommander.JCommander; -import com.beust.jcommander.Parameter; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import java.util.Locale; - -/** - * An Avatica server for arbitrary JDBC drivers. - */ -public class StandaloneServer { - private static final Logger LOG = LoggerFactory.getLogger(StandaloneServer.class); - - @Parameter(names = { "-u", "--url" }, required = true, - description = "JDBC driver url for the server") - private String url; - - @Parameter(names = { "-p", "--port" }, required = false, - description = "Port the server should bind") - private int port = 0; - - @Parameter(names = { "-s", "--serialization" }, required = false, - description = "Serialization method to use", converter = SerializationConverter.class) - private Serialization serialization = Serialization.PROTOBUF; - - private HttpServer server; - - public void start() { - if (null != server) { - LOG.error("The server was already started"); - Unsafe.systemExit(ExitCodes.ALREADY_STARTED.ordinal()); - return; - } - - try { - JdbcMeta meta = new JdbcMeta(url); - LocalService service = new LocalService(meta); - - // Construct the server - this.server = new HttpServer.Builder() - .withHandler(service, serialization) - .withPort(port) - .build(); - - // Then start it - server.start(); - - LOG.info("Started Avatica server on port {} with serialization {}", server.getPort(), - serialization); - } catch (Exception e) { - LOG.error("Failed to start Avatica server", e); - Unsafe.systemExit(ExitCodes.START_FAILED.ordinal()); - } - } - - public void stop() { - if (null != server) { - server.stop(); - server = null; - } - } - - public void join() throws InterruptedException { - server.join(); - } - - public static void main(String[] args) { - final StandaloneServer server = new StandaloneServer(); - new JCommander(server, args); - - server.start(); - - // Try to clean up when the server is stopped. - Runtime.getRuntime().addShutdownHook( - new Thread(new Runnable() { - @Override public void run() { - LOG.info("Stopping server"); - server.stop(); - LOG.info("Server stopped"); - } - })); - - try { - server.join(); - } catch (InterruptedException e) { - // Reset interruption - Thread.currentThread().interrupt(); - // And exit now. - return; - } - } - - /** - * Converter from String to Serialization. Must be public for JCommander. - */ - public static class SerializationConverter implements IStringConverter<Serialization> { - @Override public Serialization convert(String value) { - return Serialization.valueOf(value.toUpperCase(Locale.ROOT)); - } - } - - /** - * Codes for exit conditions - */ - private enum ExitCodes { - NORMAL, - ALREADY_STARTED, // 1 - START_FAILED; // 2 - } -} - -// End StandaloneServer.java http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/fc7b26c8/avatica/standalone-server/src/main/java/org/apache/calcite/avatica/standalone/package-info.java ---------------------------------------------------------------------- diff --git a/avatica/standalone-server/src/main/java/org/apache/calcite/avatica/standalone/package-info.java b/avatica/standalone-server/src/main/java/org/apache/calcite/avatica/standalone/package-info.java deleted file mode 100644 index 1adb260..0000000 --- a/avatica/standalone-server/src/main/java/org/apache/calcite/avatica/standalone/package-info.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to you under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Avatica Server without any authentication for any JDBC driver. - */ -@PackageMarker -package org.apache.calcite.avatica.standalone; - -import org.apache.calcite.avatica.util.PackageMarker; - -// End package-info.java http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/fc7b26c8/avatica/standalone-server/src/main/resources/log4j.properties ---------------------------------------------------------------------- diff --git a/avatica/standalone-server/src/main/resources/log4j.properties b/avatica/standalone-server/src/main/resources/log4j.properties deleted file mode 100644 index 3a661ab..0000000 --- a/avatica/standalone-server/src/main/resources/log4j.properties +++ /dev/null @@ -1,24 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to you under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Root logger is configured at INFO and is sent to A1 -log4j.rootLogger=INFO, A1 - -# A1 goes to the console -log4j.appender.A1=org.apache.calcite.avatica.standalone.shaded.org.apache.log4j.ConsoleAppender - -# Set the pattern for each log message -log4j.appender.A1.layout=org.apache.calcite.avatica.standalone.shaded.org.apache.log4j.PatternLayout -log4j.appender.A1.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c{2} - %m%n http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/fc7b26c8/avatica/standalone-server/src/main/shaded-resources/LICENSE ---------------------------------------------------------------------- diff --git a/avatica/standalone-server/src/main/shaded-resources/LICENSE b/avatica/standalone-server/src/main/shaded-resources/LICENSE deleted file mode 100644 index 877a48a..0000000 --- a/avatica/standalone-server/src/main/shaded-resources/LICENSE +++ /dev/null @@ -1,251 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - - - - ------------------------------------------------------------------------ - -APACHE CALCITE AVATICA SUBCOMPONENTS: - -The Apache Calcite Avatica project contains subcomponents with separate copyright -notices and license terms. Your use of the source code for the these -subcomponents is subject to the terms and conditions of the following -licenses. - ------------------------------------------------------------------------ - 3-clause BSD license ------------------------------------------------------------------------ - -The Apache Calcite Avatica project bundles HSQLDB, which is available -under the following "3-clause BSD" license: - - Copyright (c) 2001-2016, The HSQL Development Group - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - Neither the name of the HSQL Development Group nor the names of its - contributors may be used to endorse or promote products derived from this - software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL HSQL DEVELOPMENT GROUP, HSQLDB.ORG, - OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/fc7b26c8/avatica/tck/.gitignore ---------------------------------------------------------------------- diff --git a/avatica/tck/.gitignore b/avatica/tck/.gitignore deleted file mode 100644 index b83d222..0000000 --- a/avatica/tck/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/target/ http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/fc7b26c8/avatica/tck/README.md ---------------------------------------------------------------------- diff --git a/avatica/tck/README.md b/avatica/tck/README.md deleted file mode 100644 index d8025ef..0000000 --- a/avatica/tck/README.md +++ /dev/null @@ -1,80 +0,0 @@ -<!-- -Licensed to the Apache Software Foundation (ASF) under one or more -contributor license agreements. See the NOTICE file distributed with -this work for additional information regarding copyright ownership. -The ASF licenses this file to you under the Apache License, Version 2.0 -(the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. ---> - -# Apache Calcite Avatica Technology Compatibility Kit (TCK) - -The Avatica TCK is a framework to test the compatibilty between -various versions of Avatica clients and servers. - -The TCK is configured by a YAML file which specifies a TCK framework -jar and a list of Avatica client and server versions. Each version -must specify the path to a client jar, the URL of the server for -that version, and a template for the JDBC url. - -An example YAML configuration file is provided ([example_config.yml][example-config-yml]) -which can be used as a starting point for users to fill out. Most elements are -straightforward to understand; however, it does require that you provide a URL -to a running Avatica server for each version to be tested. - -## Running a standalone Avatica server - -To make it easy to run a standalone Avatica server, an instance of the Avatica -server running against an in-memory SQL database (HSQLDB) is provided starting -in version 1.8.0. The `avatica-hsqldb-server-1.8.0-SNAPSHOT-shaded.jar` artifact -can be used to start an Avatica server on a random port (printed to the console). - - `java -jar avatica-hsqldb-server-1.8.0-SNAPSHOT-shaded.jar` - -For convenience in testing against earlier versions of Avatica, the following -repository can be used to simplify building the same instance of a standalone -HSQLDB-backed Avatica server https://github.com/joshelser/legacy-avatica-hsqldb-server - -Follow the instructions in the [README][legacy-readme] to build a standalone jar -against a specific version of Calcite/Avatica which can be used as specified above. - -## Running the TCK - -A ruby script, [test_runner.rb][test-runner-script] is provided which consumes the modified YAML configuration -file. This script will first run each provided version against itself as a sanity -check for the tests itself (as the scope of what is implemented in Avatica does -change over time), and then enumerate all possible combinations of client and server -version. - - `./test_runner.rb my_tck_config.yml` - -For example, if versions 1.6.0, 1.7.1 and 1.8.0-SNAPSHOT are defined in the YAML configuration -file, the following identity tests will be run from client to server: - -* 1.6.0 to 1.6.0 -* 1.7.1 to 1.7.1 -* 1.8.0-SNAPSHOT to 1.8.0-SNAPSHOT - -while the following tests will be run for cross-version compatibility: - -* 1.6.0 to 1.7.1 -* 1.6.0 to 1.8.0-SNAPSHOT -* 1.7.1 to 1.6.0 -* 1.7.1 to 1.8.0-SNAPSHOT -* 1.8.0-SNAPSHOT to 1.6.0 -* 1.8.0-SNAPSHOT to 1.7.1 - -Any errors encountered will be printed to the terminal. The final output of the script -will be a summary of both the identity tests and the cross-version tests for easy consumption. - -[example-config-yml]: https://github.com/apache/calcite/tree/master/avatica/tck/src/main/resources/example_config.yml -[legacy-readme]: https://github.com/joshelser/legacy-avatica-hsqldb-server/blob/master/README.md -[test-runner-script]: https://github.com/apache/calcite/tree/master/avatica/tck/src/main/ruby/test_runner.rb http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/fc7b26c8/avatica/tck/pom.xml ---------------------------------------------------------------------- diff --git a/avatica/tck/pom.xml b/avatica/tck/pom.xml deleted file mode 100644 index a863a6d..0000000 --- a/avatica/tck/pom.xml +++ /dev/null @@ -1,224 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -Licensed to the Apache Software Foundation (ASF) under one or more -contributor license agreements. See the NOTICE file distributed with -this work for additional information regarding copyright ownership. -The ASF licenses this file to you under the Apache License, Version 2.0 -(the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. ---> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>org.apache.calcite.avatica</groupId> - <artifactId>avatica-parent</artifactId> - <version>1.10.0-SNAPSHOT</version> - </parent> - - <artifactId>avatica-tck</artifactId> - <packaging>jar</packaging> - <name>Apache Calcite Avatica Compatibility Kit</name> - <description>Library for testing compatibility of Avatica across versions.</description> - - <properties> - <top.dir>${project.basedir}/..</top.dir> - </properties> - - <dependencies> - <!-- Sorted by groupId, artifactId; calcite dependencies first. Put versions - in dependencyManagement in the root POM, not here. --> - <dependency> - <groupId>com.beust</groupId> - <artifactId>jcommander</artifactId> - </dependency> - <dependency> - <groupId>com.google.guava</groupId> - <artifactId>guava</artifactId> - </dependency> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - </dependency> - <dependency> - <groupId>org.hamcrest</groupId> - <artifactId>hamcrest-core</artifactId> - </dependency> - <dependency> - <groupId>org.hsqldb</groupId> - <artifactId>hsqldb</artifactId> - </dependency> - <!-- As long as we want to run compatibility checks again 1.6.0, we have to include these because - they weren't yet provided by the avatica client jar --> - <dependency> - <groupId>org.slf4j</groupId> - <artifactId>slf4j-api</artifactId> - </dependency> - <dependency> - <groupId>org.slf4j</groupId> - <artifactId>slf4j-log4j12</artifactId> - </dependency> - </dependencies> - - <build> - <pluginManagement> - <plugins> - <plugin> - <groupId>org.eclipse.m2e</groupId> - <artifactId>lifecycle-mapping</artifactId> - <version>1.0.0</version> - <configuration> - <lifecycleMappingMetadata> - <pluginExecutions> - <pluginExecution> - <pluginExecutionFilter> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-checkstyle-plugin</artifactId> - <versionRange>[2.12.1,)</versionRange> - <goals> - <goal>check</goal> - </goals> - </pluginExecutionFilter> - <action> - <ignore /> - </action> - </pluginExecution> - </pluginExecutions> - </lifecycleMappingMetadata> - </configuration> - </plugin> - </plugins> - </pluginManagement> - <plugins> - <!-- Parent module has the same plugin and does the work of - generating -sources.jar for each project. But without the - plugin declared here, IDEs don't know the sources are - available. --> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-source-plugin</artifactId> - <executions> - <execution> - <id>attach-sources</id> - <phase>verify</phase> - <goals> - <goal>jar-no-fork</goal> - <goal>test-jar-no-fork</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <!-- Create a standalone JAR capable of running the server --> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-shade-plugin</artifactId> - <executions> - <execution> - <phase>package</phase> - <goals> - <goal>shade</goal> - </goals> - <configuration> - <artifactSet> - <excludes> - <exclude>com.google.protobuf:protobuf-java</exclude> - <exclude>org.apache.httpcomponents:*</exclude> - <exclude>commons-codec:commons-codec</exclude> - </excludes> - </artifactSet> - <createDependencyReducedPom>false</createDependencyReducedPom> - <relocations> - <relocation> - <pattern>com.beust</pattern> - <shadedPattern>org.apache.calcite.avatica.tck.shaded.com.beust</shadedPattern> - </relocation> - <relocation> - <pattern>com.fasterxml</pattern> - <shadedPattern>org.apache.calcite.avatica.tck.shaded.com.fasterxml</shadedPattern> - </relocation> - <relocation> - <pattern>com.google.common</pattern> - <shadedPattern>org.apache.calcite.avatica.tck.shaded.com.google.common</shadedPattern> - </relocation> - <relocation> - <pattern>javax.servlet</pattern> - <shadedPattern>org.apache.calcite.avatica.tck.shaded.javax.servlet</shadedPattern> - </relocation> - <relocation> - <pattern>junit</pattern> - <shadedPattern>org.apache.calcite.avatica.tck.shaded.junit</shadedPattern> - </relocation> - <relocation> - <pattern>net.hydromatic</pattern> - <shadedPattern>org.apache.calcite.avatica.tck.shaded.net.hydromatic</shadedPattern> - </relocation> - <!-- We bundle a log4j.properties file which will be looking in this relocated location --> - <relocation> - <pattern>org.apache.log4j</pattern> - <shadedPattern>org.apache.calcite.avatica.tck.shaded.org.apache.log4j</shadedPattern> - </relocation> - <relocation> - <pattern>org.eclipse.jetty</pattern> - <shadedPattern>org.apache.calcite.avatica.tck.shaded.org.eclipse.jetty</shadedPattern> - </relocation> - <relocation> - <pattern>org.hamcrest</pattern> - <shadedPattern>org.apache.calcite.avatica.tck.shaded.org.hamcrest</shadedPattern> - </relocation> - <relocation> - <pattern>org.hsqldb</pattern> - <shadedPattern>org.apache.calcite.avatica.tck.shaded.org.hsqldb</shadedPattern> - </relocation> - <relocation> - <pattern>org.junit</pattern> - <shadedPattern>org.apache.calcite.avatica.tck.shaded.org.junit</shadedPattern> - </relocation> - <!-- Intentionally not shading slf4j as it would break --> - </relocations> - <shadedArtifactAttached>true</shadedArtifactAttached> - <transformers> - <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer"> - <addHeader>false</addHeader> - </transformer> - <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer"> - <resources> - <resource>LICENSE.txt</resource> - </resources> - </transformer> - </transformers> - </configuration> - </execution> - </executions> - </plugin> - <plugin> - <artifactId>maven-dependency-plugin</artifactId> - <version>${maven-dependency-plugin.version}</version> - <executions> - <execution> - <id>analyze</id> - <goals> - <goal>analyze-only</goal> - </goals> - <configuration> - <failOnWarning>true</failOnWarning> - <!-- ignore "unused but declared" warnings --> - <ignoredUnusedDeclaredDependencies> - <ignoredUnusedDeclaredDependency>org.hamcrest:hamcrest-core</ignoredUnusedDeclaredDependency> - <ignoredUnusedDeclaredDependency>org.hsqldb:hsqldb</ignoredUnusedDeclaredDependency> - <ignoredUnusedDeclaredDependency>org.slf4j:slf4j-log4j12</ignoredUnusedDeclaredDependency> - <ignoredUnusedDeclaredDependency>org.slf4j:slf4j-api</ignoredUnusedDeclaredDependency> - </ignoredUnusedDeclaredDependencies> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> -</project> http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/fc7b26c8/avatica/tck/src/main/java/org/apache/calcite/avatica/tck/PackageMarker.java ---------------------------------------------------------------------- diff --git a/avatica/tck/src/main/java/org/apache/calcite/avatica/tck/PackageMarker.java b/avatica/tck/src/main/java/org/apache/calcite/avatica/tck/PackageMarker.java deleted file mode 100644 index cb64e93..0000000 --- a/avatica/tck/src/main/java/org/apache/calcite/avatica/tck/PackageMarker.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to you under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.calcite.avatica.tck; - -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; - -/** - * This is a dummy annotation that forces javac to produce output for - * otherwise empty package-info.java. - * - * <p>The result is maven-compiler-plugin can properly identify the scope of - * changed files - * - * <p>See more details in - * <a href="https://jira.codehaus.org/browse/MCOMPILER-205"> - * maven-compiler-plugin: incremental compilation broken</a> - */ -@Retention(RetentionPolicy.SOURCE) -public @interface PackageMarker { -} - -// End PackageMarker.java
