Modified: websites/staging/thrift/trunk/content/lib/java.html ============================================================================== --- websites/staging/thrift/trunk/content/lib/java.html (original) +++ websites/staging/thrift/trunk/content/lib/java.html Tue Jan 1 11:21:16 2019 @@ -84,34 +84,139 @@ visibility: hidden; } h2:hover > .headerlink, h3:hover > .headerlink, h1:hover > .headerlink, h6:hover > .headerlink, h4:hover > .headerlink, h5:hover > .headerlink, dt:hover > .elementid-permalink { visibility: visible }</style> -<h1 id="using-thrift-with-java">Using Thrift with Java<a class="headerlink" href="#using-thrift-with-java" title="Permanent link">¶</a></h1> +<h1 id="building-and-installing-from-source">Building and installing from source<a class="headerlink" href="#building-and-installing-from-source" title="Permanent link">¶</a></h1> +<p>When using a CMake build from the source distribution on Linux the +easiest way to build and install is this simple command line:</p> +<div class="codehilite"><pre><span class="n">make</span> <span class="n">all</span> <span class="o">&&</span> <span class="n">sudo</span> <span class="n">make</span> <span class="n">install</span><span class="o">/</span><span class="n">fast</span> +</pre></div> + + +<p>It is important to use the install/fast option to eliminate +the automatic rebuild by dependency that causes issues because +the build tooling is designed to work with cached files in the +user home directory during the build process. Instead this builds +the code in the expected local build tree and then uses CMake +install code to copy to the target destination.</p> +<h1 id="building-thrift-with-gradle-without-cmakeautoconf">Building Thrift with Gradle without CMake/Autoconf<a class="headerlink" href="#building-thrift-with-gradle-without-cmakeautoconf" title="Permanent link">¶</a></h1> <p>The Thrift Java source is not build using the GNU tools, but rather uses -the Apache Ant build system, which tends to be predominant amongst Java +the Gradle build system, which tends to be predominant amongst Java developers.</p> <p>To compile the Java Thrift libraries, simply do the following:</p> -<div class="codehilite"><pre><span class="n">ant</span> +<div class="codehilite"><pre><span class="o">./</span><span class="n">gradlew</span> +</pre></div> + + +<p>Yep, that's easy. Look for libthrift-<version>.jar in the build/libs directory.</p> +<p>The default build will run the unit tests which expect a usable +Thrift compiler to exist on the system. You have two choices for +that.</p> +<ul> +<li>Build the Thrift executable from source at the default + location in the source tree. The project is configured + to look for it there.</li> +<li> +<p>Install the published binary distribution to have Thrift + executable in a known location and add the path to the + ~/.gradle/gradle.properties file using the property name + "thrift.compiler". For example this would set the path in + a Windows box if Thrift was installed under C:\Thrift</p> +<p>thrift.compiler=C:/Thrift/thrift.exe</p> +</li> +</ul> +<p>To just build the library without running unit tests you simply do this.</p> +<div class="codehilite"><pre><span class="o">./</span><span class="n">gradlew</span> <span class="n">assemble</span> +</pre></div> + + +<p>To install the library in the local Maven repository location +where other Maven or Gradle builds can reference it simply do this.</p> +<div class="codehilite"><pre><span class="o">./</span><span class="n">gradlew</span> <span class="n">install</span> </pre></div> -<p>Yep, that's easy. Look for libthrift.jar in the base directory.</p> +<p>The library will be placed in your home directory under .m2/repository</p> <p>To include Thrift in your applications simply add libthrift.jar to your classpath, or install if in your default system classpath of choice.</p> <p>Build Thrift behind a proxy:</p> -<div class="codehilite"><pre><span class="n">ant</span> <span class="o">-</span><span class="n">Dproxy</span><span class="p">.</span><span class="n">enabled</span><span class="p">=</span>1 <span class="o">-</span><span class="n">Dproxy</span><span class="p">.</span><span class="n">host</span><span class="p">=</span><span class="n">myproxyhost</span> <span class="o">-</span><span class="n">Dproxy</span><span class="p">.</span><span class="n">user</span><span class="p">=</span><span class="n">thriftuser</span> <span class="o">-</span><span class="n">Dproxy</span><span class="p">.</span><span class="n">pass</span><span class="p">=</span><span class="n">topsecret</span> +<div class="codehilite"><pre><span class="o">./</span><span class="n">gradlew</span> <span class="o">-</span><span class="n">Dhttp</span><span class="p">.</span><span class="n">proxyHost</span><span class="p">=</span><span class="n">myproxyhost</span> <span class="o">-</span><span class="n">Dhttp</span><span class="p">.</span><span class="n">proxyPort</span><span class="p">=</span>8080 <span class="o">-</span><span class="n">Dhttp</span><span class="p">.</span><span class="n">proxyUser</span><span class="p">=</span><span class="n">thriftuser</span> <span class="o">-</span><span class="n">Dhttp</span><span class="p">.</span><span class="n">proxyPassword</span><span class="p">=</span><span class="n">topsecret</span> </pre></div> <p>or via</p> -<div class="codehilite"><pre><span class="o">./</span><span class="n">configure</span> <span class="o">--</span><span class="n">with</span><span class="o">-</span><span class="n">java</span> <span class="n">ANT_FLAGS</span><span class="p">=</span><span class="s">'-Dproxy.enabled=1 -Dproxy.host=myproxyhost -Dproxy.user=thriftuser -Dproxy.pass=topsecret'</span> +<div class="codehilite"><pre><span class="o">./</span><span class="n">configure</span> <span class="o">--</span><span class="n">with</span><span class="o">-</span><span class="n">java</span> <span class="n">GRADLE_OPTS</span><span class="p">=</span><span class="s">'-Dhttp.proxyHost=myproxyhost -Dhttp.proxyPort=8080 -Dhttp.proxyUser=thriftuser -Dhttp.proxyPassword=topsecret'</span> +</pre></div> + + +<h1 id="unit-test-html-reports">Unit Test HTML Reports<a class="headerlink" href="#unit-test-html-reports" title="Permanent link">¶</a></h1> +<p>The build will automatically generate an HTML Unit Test report. This can be found +under build/reports/tests/test/index.html. It can be viewed with a browser +directly from that location.</p> +<h1 id="clover-code-coverage-for-thrift">Clover Code Coverage for Thrift<a class="headerlink" href="#clover-code-coverage-for-thrift" title="Permanent link">¶</a></h1> +<p>The build will optionally generate Clover Code coverage if the Gradle property +<code>cloverEnabled=true</code> is set in ~/.gradle/gradle.properties or on the command line +via <code>-PcloverEnabled=true</code>. The generated report can be found under the location +build/reports/clover/html/index.html. It can be viewed with a browser +directly from that location. Additionally, a PDF report is generated and is found +under the location build/reports/clover/clover.pdf.</p> +<p>The following command will build, unit test, and generate Clover reports:</p> +<div class="codehilite"><pre><span class="o">./</span><span class="n">gradlew</span> <span class="o">-</span><span class="n">PcloverEnabled</span><span class="p">=</span><span class="n">true</span> +</pre></div> + + +<h1 id="publishing-maven-artifacts-to-maven-central">Publishing Maven Artifacts to Maven Central<a class="headerlink" href="#publishing-maven-artifacts-to-maven-central" title="Permanent link">¶</a></h1> +<p>The Automake build generates a Makefile that provides the correct parameters +when you run the build provided the configure.ac has been set with the correct +version number. The Gradle build will receive the correct value for the build. +The same applies to the CMake build, the value from the configure.ac file will +be used if you execute these commands:</p> +<div class="codehilite"><pre><span class="n">make</span> <span class="n">maven</span><span class="o">-</span><span class="n">publish</span> <span class="o">--</span> <span class="n">This</span> <span class="n">is</span> <span class="k">for</span> <span class="n">an</span> <span class="n">Automake</span> <span class="n">Linux</span> <span class="n">build</span> +<span class="n">make</span> <span class="n">MavenPublish</span> <span class="o">--</span> <span class="n">This</span> <span class="n">is</span> <span class="k">for</span> <span class="n">a</span> <span class="n">CMake</span> <span class="n">generated</span> <span class="n">build</span> +</pre></div> + + +<p>The uploadArchives task in Gradle is preconfigured with all necessary details +to sign and publish the artifacts from the build to the Apache Maven staging +repository. The task requires the following externally provided properties to +authenticate to the repository and sign the artifacts. The preferred approach +is to create or edit the ~/.gradle/gradle.properties file and add the following +properties to it.</p> +<div class="codehilite"><pre><span class="c"># Signing key information for artifacts PGP signature (values are examples)</span> +<span class="n">signing</span><span class="p">.</span><span class="n">keyId</span><span class="p">=</span>24875<span class="n">D73</span> +<span class="n">signing</span><span class="p">.</span><span class="n">password</span><span class="p">=</span><span class="n">secret</span> +<span class="n">signing</span><span class="p">.</span><span class="n">secretKeyRingFile</span><span class="p">=</span><span class="o">/</span><span class="n">Users</span><span class="o">/</span><span class="n">me</span><span class="o">/</span><span class="p">.</span><span class="n">gnupg</span><span class="o">/</span><span class="n">secring</span><span class="p">.</span><span class="n">gpg</span> + +<span class="c"># Apache Maven staging repository user credentials</span> +<span class="n">mavenUser</span><span class="p">=</span><span class="n">meMyselfAndI</span> +<span class="n">mavenPassword</span><span class="p">=</span><span class="n">MySuperAwesomeSecretPassword</span> +</pre></div> + + +<p>It is also possible to manually publish using the Gradle build directly. +With the key information and credentials in place the following will generate +if needed the build artifacts and proceed to publish the results.</p> +<div class="codehilite"><pre><span class="o">./</span><span class="n">gradlew</span> <span class="o">-</span><span class="n">Prelease</span><span class="p">=</span><span class="n">true</span> <span class="o">-</span><span class="n">Pthrift</span><span class="p">.</span><span class="n">version</span><span class="p">=</span>0<span class="p">.</span>11<span class="p">.</span>0 <span class="n">uploadArchives</span> +</pre></div> + + +<p>It is also possible to override the target repository for the Maven Publication +by using a Gradle property, for example you can publish signed JAR files to your +company internal server if you add this to the command line or in the +~/.gradle/gradle.properties file. The URL below assumes a Nexus Repository.</p> +<div class="codehilite"><pre><span class="n">maven</span><span class="o">-</span><span class="n">repository</span><span class="o">-</span><span class="n">url</span><span class="p">=</span><span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">my</span><span class="p">.</span><span class="n">company</span><span class="p">.</span><span class="n">com</span><span class="o">/</span><span class="n">service</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">staging</span><span class="o">/</span><span class="n">deploy</span><span class="o">/</span><span class="n">maven2</span> +</pre></div> + + +<p>Or the same on the command line:</p> +<div class="codehilite"><pre><span class="o">./</span><span class="n">gradlew</span> <span class="o">-</span><span class="n">Pmaven</span><span class="o">-</span><span class="n">repository</span><span class="o">-</span><span class="n">url</span><span class="p">=</span><span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">my</span><span class="p">.</span><span class="n">company</span><span class="p">.</span><span class="n">com</span><span class="o">/</span><span class="n">service</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">staging</span><span class="o">/</span><span class="n">deploy</span><span class="o">/</span><span class="n">maven2</span> <span class="o">-</span><span class="n">Prelease</span><span class="p">=</span><span class="n">true</span> <span class="o">-</span><span class="n">Pthrift</span><span class="p">.</span><span class="n">version</span><span class="p">=</span>0<span class="p" >.</span>11<span class="p">.</span>0 <span class="n">uploadArchives</span> </pre></div> <h1 id="dependencies">Dependencies<a class="headerlink" href="#dependencies" title="Permanent link">¶</a></h1> -<p>Apache Ant -http://ant.apache.org/ +<p>Gradle +http://gradle.org/ <p class='snippet_footer'> This page was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=lib/java/README.md;hb=HEAD"</a>lib/java/README.md</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=lib/java/README.md;hb=HEAD"</a>lib/java/README.md</a> </p></p> </div> <div class="container">
Modified: websites/staging/thrift/trunk/content/lib/js.html ============================================================================== --- websites/staging/thrift/trunk/content/lib/js.html (original) +++ websites/staging/thrift/trunk/content/lib/js.html Tue Jan 1 11:21:16 2019 @@ -98,18 +98,14 @@ the command:</p> <p>This reads the package.json and pulls in the appropriate sources from the internet. To build the JavaScript branch of Apache Thrift execute the command:</p> -<div class="codehilite"><pre><span class="n">grunt</span> +<div class="codehilite"><pre><span class="n">npx</span> <span class="n">grunt</span> </pre></div> -<p>This runs the grunt build tool, linting all of the source -files, setting up and running the tests, concatenating and -minifying the main libraries and generating the html -documentation.</p> -<p>If grunt is not installed you can install it with npm -like this:</p> -<p>sudo npm install -g grunt-cli - npm install grunt --save-dev</p> +<p>This runs the grunt build tool (from within <code>./node_modules/.bin/</code>), +linting all of the source files, setting up and running the +tests, concatenating and minifying the main libraries and +generating the html documentation.</p> <h2 id="tree">Tree<a class="headerlink" href="#tree" title="Permanent link">¶</a></h2> <p>The following directories are present (some only after the grunt build): @@ -205,7 +201,7 @@ service. </p> <p><p class='snippet_footer'> This page was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=lib/js/README.md;hb=HEAD"</a>lib/js/README.md</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=lib/js/README.md;hb=HEAD"</a>lib/js/README.md</a> </p></p> </div> <div class="container"> Modified: websites/staging/thrift/trunk/content/lib/nodejs.html ============================================================================== --- websites/staging/thrift/trunk/content/lib/nodejs.html (original) +++ websites/staging/thrift/trunk/content/lib/nodejs.html Tue Jan 1 11:21:16 2019 @@ -85,7 +85,7 @@ } h2:hover > .headerlink, h3:hover > .headerlink, h1:hover > .headerlink, h6:hover > .headerlink, h4:hover > .headerlink, h5:hover > .headerlink, dt:hover > .elementid-permalink { visibility: visible }</style> <h2 id="compatibility">Compatibility<a class="headerlink" href="#compatibility" title="Permanent link">¶</a></h2> -<p>node version 4 or later is required</p> +<p>node version 6 or later is required</p> <h2 id="install">Install<a class="headerlink" href="#install" title="Permanent link">¶</a></h2> <div class="codehilite"><pre><span class="n">npm</span> <span class="n">install</span> <span class="n">thrift</span> </pre></div> @@ -99,28 +99,24 @@ h2:hover > .headerlink, h3:hover > .head <h2 id="cassandra-client-example">Cassandra Client Example:<a class="headerlink" href="#cassandra-client-example" title="Permanent link">¶</a></h2> <p>Here is a Cassandra example:</p> -<div class="codehilite"><pre><span class="n">var</span> <span class="n">thrift</span> <span class="p">=</span> <span class="n">require</span><span class="p">(</span><span class="s">'thrift'</span><span class="p">),</span> - <span class="n">Cassandra</span> <span class="p">=</span> <span class="n">require</span><span class="p">(</span><span class="s">'./gen-nodejs/Cassandra'</span><span class="p">)</span> - <span class="n">ttypes</span> <span class="p">=</span> <span class="n">require</span><span class="p">(</span><span class="s">'./gen-nodejs/cassandra_types'</span><span class="p">);</span> - -<span class="n">var</span> <span class="n">connection</span> <span class="p">=</span> <span class="n">thrift</span><span class="p">.</span><span class="n">createConnection</span><span class="p">(</span>"<span class="n">localhost</span>"<span class="p">,</span> 9160<span class="p">),</span> - <span class="n">client</span> <span class="p">=</span> <span class="n">thrift</span><span class="p">.</span><span class="n">createClient</span><span class="p">(</span><span class="n">Cassandra</span><span class="p">,</span> <span class="n">connection</span><span class="p">);</span> - -<span class="n">connection</span><span class="p">.</span><span class="n">on</span><span class="p">(</span><span class="s">'error'</span><span class="p">,</span> <span class="k">function</span><span class="p">(</span><span class="n">err</span><span class="p">)</span> <span class="p">{</span> - <span class="n">console</span><span class="p">.</span><span class="n">error</span><span class="p">(</span><span class="n">err</span><span class="p">);</span> -<span class="p">});</span> - -<span class="n">client</span><span class="p">.</span><span class="n">get_slice</span><span class="p">(</span>"<span class="n">Keyspace</span>"<span class="p">,</span> "<span class="n">key</span>"<span class="p">,</span> <span class="n">new</span> <span class="n">ttypes</span><span class="p">.</span><span class="n">ColumnParent</span><span class="p">({</span><span class="n">column_family</span><span class="p">:</span> "<span class="n">ExampleCF</span>"<span class="p">}),</span> <span class="n">new</span> <span class="n">ttypes</span><span class="p">.</span><span class="n">SlicePredicate</span><span class="p">({</span><span class="n">slice_range</span><span class="p">:</span> <span class="n">new</span> <span class="n">ttypes</span><span class="p">.</span><span class="n">SliceRange</span><span class="p">({</span><span class="n">start</span><span class="p">:</span> <span class="s">''</span><span class="p">,</span> <span class="n">finish</span><span class="p">:</span> <span class="s">''</span><span class="p">})}),</span> <span class="n">ttypes</span><span class="p">.</span><span class="n">ConsistencyLevel</span><span class="p">.</span><span class="n">ONE</span><span class="p">,</span> <span class="k">function</span><span class="p">(</span><span class="n">err</span><span class="p">,</span> <span class="n">data</span><span class="p">)</span> <span class="p">{</span> - <span class="k">if</span> <span class="p">(</span><span class="n">err</span><span class="p">)</span> <span class="p">{</span> - <span class="o">//</span> <span class="n">handle</span> <span class="n">err</span> - <span class="p">}</span> <span class="k">else</span> <span class="p">{</span> - <span class="o">//</span> <span class="n">data</span> <span class="o">==</span> <span class="p">[</span><span class="n">ttypes</span><span class="p">.</span><span class="n">ColumnOrSuperColumn</span><span class="p">,</span> <span class="p">...]</span> - <span class="p">}</span> - <span class="n">connection</span><span class="p">.</span><span class="k">end</span><span class="p">();</span> -<span class="p">});</span> -</pre></div> - - +<p>```js +var thrift = require('thrift'), + Cassandra = require('./gen-nodejs/Cassandra') + ttypes = require('./gen-nodejs/cassandra_types');</p> +<p>var connection = thrift.createConnection("localhost", 9160), + client = thrift.createClient(Cassandra, connection);</p> +<p>connection.on('error', function(err) { + console.error(err); +});</p> +<p>client.get_slice("Keyspace", "key", new ttypes.ColumnParent({column_family: "ExampleCF"}), new ttypes.SlicePredicate({slice_range: new ttypes.SliceRange({start: '', finish: ''})}), ttypes.ConsistencyLevel.ONE, function(err, data) { + if (err) { + // handle err + } else { + // data == [ttypes.ColumnOrSuperColumn, ...] + } + connection.end(); +}); +```</p> <p><a name="int64"></a></p> <h2 id="int64">Int64<a class="headerlink" href="#int64" title="Permanent link">¶</a></h2> <p>Since JavaScript represents all numbers as doubles, int64 values cannot be accurately represented naturally. To solve this, int64 values in responses will be wrapped with Thrift.Int64 objects. The Int64 implementation used is <a href="https://github.com/broofa/node-int64">broofa/node-int64</a>.</p> @@ -128,7 +124,7 @@ h2:hover > .headerlink, h3:hover > .head <p>Several example clients and servers are included in the thrift/lib/nodejs/examples folder and the cross language tutorial thrift/tutorial/nodejs folder. <p class='snippet_footer'> This page was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=lib/nodejs/README.md;hb=HEAD"</a>lib/nodejs/README.md</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=lib/nodejs/README.md;hb=HEAD"</a>lib/nodejs/README.md</a> </p></p> </div> <div class="container"> Modified: websites/staging/thrift/trunk/content/lib/ocaml.html ============================================================================== --- websites/staging/thrift/trunk/content/lib/ocaml.html (original) +++ websites/staging/thrift/trunk/content/lib/ocaml.html Tue Jan 1 11:21:16 2019 @@ -147,7 +147,7 @@ must take option arguments so as to deal does not send all the arguments. <p class='snippet_footer'> This page was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=lib/ocaml/README.md;hb=HEAD"</a>lib/ocaml/README.md</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=lib/ocaml/README.md;hb=HEAD"</a>lib/ocaml/README.md</a> </p></p> </div> <div class="container"> Modified: websites/staging/thrift/trunk/content/lib/perl.html ============================================================================== --- websites/staging/thrift/trunk/content/lib/perl.html (original) +++ websites/staging/thrift/trunk/content/lib/perl.html Tue Jan 1 11:21:16 2019 @@ -166,7 +166,7 @@ you can deal with these changes in a bac Use setTimeout instead. <p class='snippet_footer'> This page was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=lib/perl/README.md;hb=HEAD"</a>lib/perl/README.md</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=lib/perl/README.md;hb=HEAD"</a>lib/perl/README.md</a> </p></p> </div> <div class="container"> Modified: websites/staging/thrift/trunk/content/lib/php.html ============================================================================== --- websites/staging/thrift/trunk/content/lib/php.html (original) +++ websites/staging/thrift/trunk/content/lib/php.html Tue Jan 1 11:21:16 2019 @@ -89,24 +89,42 @@ h2:hover > .headerlink, h3:hover > .head environment as possible while trying to make some more advanced PHP features (i.e. APC cacheing using asbolute path URLs) as simple as possible.</p> <p>To use Thrift in your PHP codebase, take the following steps:</p> -<h1 id="1-copy-all-of-thriftlibphplib-into-your-php-codebase">1) Copy all of thrift/lib/php/lib into your PHP codebase<a class="headerlink" href="#1-copy-all-of-thriftlibphplib-into-your-php-codebase" title="Permanent link">¶</a></h1> -<h1 id="2-configure-symfony-autoloader-or-whatever-you-usually-use">2) Configure Symfony Autoloader (or whatever you usually use)<a class="headerlink" href="#2-configure-symfony-autoloader-or-whatever-you-usually-use" title="Permanent link">¶</a></h1> +<ol> +<li>Copy all of thrift/lib/php/lib into your PHP codebase</li> +<li>Configure Symfony Autoloader (or whatever you usually use)</li> +</ol> <p>After that, you have to manually include the Thrift package created by the compiler:</p> -<p>require_once 'packages/Service/Service.php'; -require_once 'packages/Service/Types.php';</p> +<p><code>require_once 'packages/Service/Service.php'; +require_once 'packages/Service/Types.php';</code></p> <h1 id="dependencies">Dependencies<a class="headerlink" href="#dependencies" title="Permanent link">¶</a></h1> <p>PHP_INT_SIZE</p> -<p>This built-in signals whether your architecture is 32 or 64 bit and is - used by the TBinaryProtocol to properly use pack() and unpack() to - serialize data.</p> +<div class="codehilite"><pre><span class="n">This</span> <span class="n">built</span><span class="o">-</span><span class="n">in</span> <span class="n">signals</span> <span class="n">whether</span> <span class="n">your</span> <span class="n">architecture</span> <span class="n">is</span> 32 <span class="n">or</span> 64 <span class="n">bit</span> <span class="n">and</span> <span class="n">is</span> +<span class="n">used</span> <span class="n">by</span> <span class="n">the</span> <span class="n">TBinaryProtocol</span> <span class="n">to</span> <span class="n">properly</span> <span class="n">use</span> <span class="n">pack</span><span class="p">()</span> <span class="n">and</span> <span class="n">unpack</span><span class="p">()</span> <span class="n">to</span> +<span class="n">serialize</span> <span class="n">data</span><span class="p">.</span> +</pre></div> + + <p>apc_fetch(), apc_store()</p> -<p>APC cache is used by the TSocketPool class. If you do not have APC installed, - Thrift will fill in null stub function definitions. +<div class="codehilite"><pre><span class="n">APC</span> <span class="n">cache</span> <span class="n">is</span> <span class="n">used</span> <span class="n">by</span> <span class="n">the</span> <span class="n">TSocketPool</span> <span class="n">class</span><span class="p">.</span> <span class="n">If</span> <span class="n">you</span> <span class="n">do</span> <span class="n">not</span> <span class="n">have</span> <span class="n">APC</span> <span class="n">installed</span><span class="p">,</span> +<span class="n">Thrift</span> <span class="n">will</span> <span class="n">fill</span> <span class="n">in</span> <span class="n">null</span> <span class="n">stub</span> <span class="k">function</span> <span class="n">definitions</span><span class="p">.</span> +</pre></div> + + +<h1 id="breaking-changes">Breaking Changes<a class="headerlink" href="#breaking-changes" title="Permanent link">¶</a></h1> +<h2 id="0120">0.12.0<a class="headerlink" href="#0120" title="Permanent link">¶</a></h2> +<ol> +<li> +<p><a href="https://www.php-fig.org/psr/psr-4">PSR-4</a> loader is now the default. If you want to use class maps instead, use <code>-gen php:classmap</code>.</p> +</li> +<li> +<p>If using PSR-4, use <code>$thriftClassLoader->registerNamespace('namespace', '<path>')</code> instead of <code>$thriftClassLoader->registerDefinition('namespace', '<path>')</code>. <p class='snippet_footer'> This page was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=lib/php/README.md;hb=HEAD"</a>lib/php/README.md</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=lib/php/README.md;hb=HEAD"</a>lib/php/README.md</a> </p></p> +</li> +</ol> </div> <div class="container"> <hr> Modified: websites/staging/thrift/trunk/content/lib/py.html ============================================================================== --- websites/staging/thrift/trunk/content/lib/py.html (original) +++ websites/staging/thrift/trunk/content/lib/py.html Tue Jan 1 11:21:16 2019 @@ -96,7 +96,7 @@ file, or automatically using the install To use the latter, become superuser and do make install. <p class='snippet_footer'> This page was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=lib/py/README.md;hb=HEAD"</a>lib/py/README.md</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=lib/py/README.md;hb=HEAD"</a>lib/py/README.md</a> </p></p> </div> <div class="container"> Modified: websites/staging/thrift/trunk/content/lib/rb.html ============================================================================== --- websites/staging/thrift/trunk/content/lib/rb.html (original) +++ websites/staging/thrift/trunk/content/lib/rb.html Tue Jan 1 11:21:16 2019 @@ -100,7 +100,7 @@ In the meantime, look at existing code, in the full thrift distribution. <p class='snippet_footer'> This page was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=lib/rb/README.md;hb=HEAD"</a>lib/rb/README.md</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=lib/rb/README.md;hb=HEAD"</a>lib/rb/README.md</a> </p></p> </div> <div class="container"> Modified: websites/staging/thrift/trunk/content/lib/st.html ============================================================================== --- websites/staging/thrift/trunk/content/lib/st.html (original) +++ websites/staging/thrift/trunk/content/lib/st.html Tue Jan 1 11:21:16 2019 @@ -93,7 +93,7 @@ calc addNum1: 10 num2: 15</p> <p>Tested in Squeak 3.7, but should work fine with anything later. <p class='snippet_footer'> This page was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=lib/st/README.md;hb=HEAD"</a>lib/st/README.md</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=lib/st/README.md;hb=HEAD"</a>lib/st/README.md</a> </p></p> </div> <div class="container"> Modified: websites/staging/thrift/trunk/content/test/ThriftTest.html ============================================================================== --- websites/staging/thrift/trunk/content/test/ThriftTest.html (original) +++ websites/staging/thrift/trunk/content/test/ThriftTest.html Tue Jan 1 11:21:16 2019 @@ -545,7 +545,7 @@ namespace delphi Thrift.Test namespace cocoa ThriftTest namespace lua ThriftTest namespace xsd test (uri = 'http://thrift.apache.org/ns/ThriftTest') -namespace netcore ThriftAsync.Test +namespace netcore ThriftTest // Presence of namespaces and sub-namespaces for which there is // no generator should compile with warnings only @@ -922,7 +922,7 @@ struct StructB { <p class='snippet_footer'> This page was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=test/ThriftTest.thrift;hb=HEAD"</a>test/ThriftTest.thrift</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=test/ThriftTest.thrift;hb=HEAD"</a>test/ThriftTest.thrift</a> </p> </div> <div class="container"> Modified: websites/staging/thrift/trunk/content/test/index.html ============================================================================== --- websites/staging/thrift/trunk/content/test/index.html (original) +++ websites/staging/thrift/trunk/content/test/index.html Tue Jan 1 11:21:16 2019 @@ -257,7 +257,7 @@ of both test 2 (TEST_STRUCTS) and test 8 directory <a href="keys">test/keys</a></p> <p class='snippet_footer'> This page was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=test/README.md;hb=HEAD"</a>test/README.md</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=test/README.md;hb=HEAD"</a>test/README.md</a> </p> </div> <div class="container"> Modified: websites/staging/thrift/trunk/content/test/keys.html ============================================================================== --- websites/staging/thrift/trunk/content/test/keys.html (original) +++ websites/staging/thrift/trunk/content/test/keys.html Tue Jan 1 11:21:16 2019 @@ -198,7 +198,7 @@ Primary use are unit test suites and cro <p class='snippet_footer'> This page was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=test/keys/README.md;hb=HEAD"</a>test/keys/README.md</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=test/keys/README.md;hb=HEAD"</a>test/keys/README.md</a> </p> </div> <div class="container"> Modified: websites/staging/thrift/trunk/content/tutorial/as3.html ============================================================================== --- websites/staging/thrift/trunk/content/tutorial/as3.html (original) +++ websites/staging/thrift/trunk/content/tutorial/as3.html Tue Jan 1 11:21:16 2019 @@ -125,7 +125,7 @@ h2:hover > .headerlink, h3:hover > </pre></div> <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/as3/src/CalculatorUI.as;hb=HEAD"</a>tutorial/as3/src/CalculatorUI.as</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/as3/src/CalculatorUI.as;hb=HEAD"</a>tutorial/as3/src/CalculatorUI.as</a> </p></p> <h3 id="server">Server<a class="headerlink" href="#server" title="Permanent link">¶</a></h3> <p>The example client above can be tested against a java tutorial server.</p> @@ -158,7 +158,7 @@ h2:hover > .headerlink, h3:hover > </pre></div> <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/as3/src/CalculatorUI.as;hb=HEAD"</a>tutorial/as3/src/CalculatorUI.as</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/as3/src/CalculatorUI.as;hb=HEAD"</a>tutorial/as3/src/CalculatorUI.as</a> </p></p> <p>Example of crossdomain file, to allow connect to ports 9090 and 9091 from any server:</p> <pre><code> Modified: websites/staging/thrift/trunk/content/tutorial/c_glib.html ============================================================================== --- websites/staging/thrift/trunk/content/tutorial/c_glib.html (original) +++ websites/staging/thrift/trunk/content/tutorial/c_glib.html Tue Jan 1 11:21:16 2019 @@ -289,7 +289,7 @@ h2:hover > .headerlink, h3:hover > .head <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/c_glib/c_glib_client.c;hb=HEAD"</a>tutorial/c_glib/c_glib_client.c</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/c_glib/c_glib_client.c;hb=HEAD"</a>tutorial/c_glib/c_glib_client.c</a> </p> <h3 id="server">Server<a class="headerlink" href="#server" title="Permanent link">¶</a></h3> @@ -817,7 +817,7 @@ h2:hover > .headerlink, h3:hover > .head <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/c_glib/c_glib_server.c;hb=HEAD"</a>tutorial/c_glib/c_glib_server.c</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/c_glib/c_glib_server.c;hb=HEAD"</a>tutorial/c_glib/c_glib_server.c</a> </p> </div> <div class="container"> Modified: websites/staging/thrift/trunk/content/tutorial/cpp.html ============================================================================== --- websites/staging/thrift/trunk/content/tutorial/cpp.html (original) +++ websites/staging/thrift/trunk/content/tutorial/cpp.html Tue Jan 1 11:21:16 2019 @@ -181,7 +181,7 @@ h2:hover > .headerlink, h3:hover > .head <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/cpp/CppClient.cpp;hb=HEAD"</a>tutorial/cpp/CppClient.cpp</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/cpp/CppClient.cpp;hb=HEAD"</a>tutorial/cpp/CppClient.cpp</a> </p> <h3 id="server">Server<a class="headerlink" href="#server" title="Permanent link">¶</a></h3> @@ -334,7 +334,7 @@ h2:hover > .headerlink, h3:hover > .head <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/cpp/CppServer.cpp;hb=HEAD"</a>tutorial/cpp/CppServer.cpp</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/cpp/CppServer.cpp;hb=HEAD"</a>tutorial/cpp/CppServer.cpp</a> </p> <h2 id="additional-information">Additional Information<a class="headerlink" href="#additional-information" title="Permanent link">¶</a></h2> @@ -368,7 +368,7 @@ h2:hover > .headerlink, h3:hover > .head <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/cpp/CppServer.cpp;hb=HEAD"</a>tutorial/cpp/CppServer.cpp</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/cpp/CppServer.cpp;hb=HEAD"</a>tutorial/cpp/CppServer.cpp</a> </p> </div> <div class="container"> Modified: websites/staging/thrift/trunk/content/tutorial/csharp.html ============================================================================== --- websites/staging/thrift/trunk/content/tutorial/csharp.html (original) +++ websites/staging/thrift/trunk/content/tutorial/csharp.html Tue Jan 1 11:21:16 2019 @@ -191,7 +191,7 @@ h2:hover > .headerlink, h3:hover > .head <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/csharp/CsharpClient/CsharpClient.cs;hb=HEAD"</a>tutorial/csharp/CsharpClient/CsharpClient.cs</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/csharp/CsharpClient/CsharpClient.cs;hb=HEAD"</a>tutorial/csharp/CsharpClient/CsharpClient.cs</a> </p> <h3 id="server">Server<a class="headerlink" href="#server" title="Permanent link">¶</a></h3> @@ -321,7 +321,7 @@ h2:hover > .headerlink, h3:hover > .head <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/csharp/CsharpServer/CsharpServer.cs;hb=HEAD"</a>tutorial/csharp/CsharpServer/CsharpServer.cs</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/csharp/CsharpServer/CsharpServer.cs;hb=HEAD"</a>tutorial/csharp/CsharpServer/CsharpServer.cs</a> </p> <h2 id="additional-information">Additional Information<a class="headerlink" href="#additional-information" title="Permanent link">¶</a></h2> Modified: websites/staging/thrift/trunk/content/tutorial/d.html ============================================================================== --- websites/staging/thrift/trunk/content/tutorial/d.html (original) +++ websites/staging/thrift/trunk/content/tutorial/d.html Tue Jan 1 11:21:16 2019 @@ -212,7 +212,7 @@ h2:hover > .headerlink, h3:hover > .head <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/d/server.d;hb=HEAD"</a>tutorial/d/server.d</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/d/server.d;hb=HEAD"</a>tutorial/d/server.d</a> </p> <h3 id="server">Server<a class="headerlink" href="#server" title="Permanent link">¶</a></h3> @@ -278,7 +278,7 @@ h2:hover > .headerlink, h3:hover > .head <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/d/client.d;hb=HEAD"</a>tutorial/d/client.d</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/d/client.d;hb=HEAD"</a>tutorial/d/client.d</a> </p> <h2 id="additional-information">Additional Information<a class="headerlink" href="#additional-information" title="Permanent link">¶</a></h2> Modified: websites/staging/thrift/trunk/content/tutorial/dart.html ============================================================================== --- websites/staging/thrift/trunk/content/tutorial/dart.html (original) +++ websites/staging/thrift/trunk/content/tutorial/dart.html Tue Jan 1 11:21:16 2019 @@ -381,7 +381,7 @@ h2:hover > .headerlink, h3:hover > .head <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/dart/client/web/client.dart;hb=HEAD"</a>tutorial/dart/client/web/client.dart</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/dart/client/web/client.dart;hb=HEAD"</a>tutorial/dart/client/web/client.dart</a> </p> <h3 id="client-web-page">Client web page<a class="headerlink" href="#client-web-page" title="Permanent link">¶</a></h3> @@ -419,7 +419,7 @@ h2:hover > .headerlink, h3:hover > .head <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/dart/client/web/index.html;hb=HEAD"</a>tutorial/dart/client/web/index.html</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/dart/client/web/index.html;hb=HEAD"</a>tutorial/dart/client/web/index.html</a> </p> <h3 id="server">Server<a class="headerlink" href="#server" title="Permanent link">¶</a></h3> @@ -585,7 +585,7 @@ h2:hover > .headerlink, h3:hover > .head <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/dart/server/bin/main.dart;hb=HEAD"</a>tutorial/dart/server/bin/main.dart</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/dart/server/bin/main.dart;hb=HEAD"</a>tutorial/dart/server/bin/main.dart</a> </p> <h2 id="additional-information">Additional Information<a class="headerlink" href="#additional-information" title="Permanent link">¶</a></h2> Modified: websites/staging/thrift/trunk/content/tutorial/delphi.html ============================================================================== --- websites/staging/thrift/trunk/content/tutorial/delphi.html (original) +++ websites/staging/thrift/trunk/content/tutorial/delphi.html Tue Jan 1 11:21:16 2019 @@ -128,7 +128,7 @@ h2:hover > .headerlink, h3:hover > .head <span class="n">Generics</span><span class="o">.</span><span class="n">Collections</span><span class="o">,</span> <span class="n">Thrift</span> <span class="k">in</span> <span class="s">'..\..\..\lib\delphi\src\Thrift.pas'</span><span class="o">,</span> <span class="n">Thrift</span><span class="o">.</span><span class="n">Collections</span> <span class="k">in</span> <span class="s">'..\..\..\lib\delphi\src\Thrift.Collections.pas'</span><span class="o">,</span> - <span class="n">Thrift</span><span class="o">.</span><span class="n">Console</span> <span class="k">in</span> <span class="s">'..\..\..\lib\delphi\src\Thrift.Console.pas'</span><span class="o">,</span> + <span class="n">Thrift</span><span class="o">.</span><span class="n">Exception</span> <span class="k">in</span> <span class="s">'..\..\..\lib\delphi\src\Thrift.Exception.pas'</span><span class="o">,</span> <span class="n">Thrift</span><span class="o">.</span><span class="n">Utils</span> <span class="k">in</span> <span class="s">'..\..\..\lib\delphi\src\Thrift.Utils.pas'</span><span class="o">,</span> <span class="n">Thrift</span><span class="o">.</span><span class="n">Stream</span> <span class="k">in</span> <span class="s">'..\..\..\lib\delphi\src\Thrift.Stream.pas'</span><span class="o">,</span> <span class="n">Thrift</span><span class="o">.</span><span class="n">Protocol</span> <span class="k">in</span> <span class="s">'..\..\..\lib\delphi\src\Thrift.Protocol.pas'</span><span class="o">,</span> @@ -164,10 +164,10 @@ h2:hover > .headerlink, h3:hover > .head <span class="n">transport</span><span class="o">.</span><span class="n">Open</span><span class="o">;</span> <span class="n">client</span><span class="o">.</span><span class="n">ping</span><span class="o">;</span> - <span class="n">Console</span><span class="o">.</span><span class="n">WriteLine</span><span class="p">(</span><span class="s">'ping()'</span><span class="p">)</span><span class="o">;</span> + <span class="nb">WriteLn</span><span class="p">(</span><span class="s">'ping()'</span><span class="p">)</span><span class="o">;</span> <span class="nb">sum</span> <span class="o">:=</span> <span class="n">client</span><span class="o">.</span><span class="n">add</span><span class="p">(</span> <span class="mi">1</span><span class="o">,</span> <span class="mi">1</span><span class="p">)</span><span class="o">;</span> - <span class="n">Console</span><span class="o">.</span><span class="n">WriteLine</span><span class="p">(</span> <span class="nb">Format</span><span class="p">(</span> <span class="s">'1+1=%d'</span><span class="o">,</span> <span class="p">[</span><span class="nb">sum</span><span class="p">]))</span><span class="o">;</span> + <span class="nb">WriteLn</span><span class="p">(</span> <span class="nb">Format</span><span class="p">(</span> <span class="s">'1+1=%d'</span><span class="o">,</span> <span class="p">[</span><span class="nb">sum</span><span class="p">]))</span><span class="o">;</span> <span class="n">work</span> <span class="o">:=</span> <span class="n">TWorkImpl</span><span class="o">.</span><span class="n">Create</span><span class="o">;</span> @@ -176,11 +176,11 @@ h2:hover > .headerlink, h3:hover > .head <span class="n">work</span><span class="o">.</span><span class="n">Num2</span> <span class="o">:=</span> <span class="mi">0</span><span class="o">;</span> <span class="k">try</span> <span class="n">quotient</span> <span class="o">:=</span> <span class="n">client</span><span class="o">.</span><span class="n">calculate</span><span class="p">(</span><span class="mi">1</span><span class="o">,</span> <span class="n">work</span><span class="p">)</span><span class="o">;</span> - <span class="n">Console</span><span class="o">.</span><span class="n">WriteLine</span><span class="p">(</span> <span class="s">'Whoa we can divide by 0'</span><span class="p">)</span><span class="o">;</span> - <span class="n">Console</span><span class="o">.</span><span class="n">WriteLine</span><span class="p">(</span> <span class="nb">Format</span><span class="p">(</span><span class="s">'1/0=%d'</span><span class="o">,</span><span class="p">[</span><span class="n">quotient</span><span class="p">]))</span><span class="o">;</span> + <span class="nb">WriteLn</span><span class="p">(</span> <span class="s">'Whoa we can divide by 0'</span><span class="p">)</span><span class="o">;</span> + <span class="nb">WriteLn</span><span class="p">(</span> <span class="nb">Format</span><span class="p">(</span><span class="s">'1/0=%d'</span><span class="o">,</span><span class="p">[</span><span class="n">quotient</span><span class="p">]))</span><span class="o">;</span> <span class="k">except</span> <span class="k">on</span> <span class="n">io</span><span class="o">:</span> <span class="n">TInvalidOperation</span> - <span class="k">do</span> <span class="n">Console</span><span class="o">.</span><span class="n">WriteLine</span><span class="p">(</span> <span class="s">'Invalid operation: '</span> <span class="o">+</span> <span class="n">io</span><span class="o">.</span><span class="n">Why</span><span class="p">)</span><span class="o">;</span> + <span class="k">do</span> <span class="nb">WriteLn</span><span class="p">(</span> <span class="s">'Invalid operation: '</span> <span class="o">+</span> <span class="n">io</span><span class="o">.</span><span class="n">Why</span><span class="p">)</span><span class="o">;</span> <span class="k">end</span><span class="o">;</span> <span class="n">work</span><span class="o">.</span><span class="n">Op</span> <span class="o">:=</span> <span class="n">TOperation</span><span class="o">.</span><span class="n">SUBTRACT</span><span class="o">;</span> @@ -188,20 +188,20 @@ h2:hover > .headerlink, h3:hover > .head <span class="n">work</span><span class="o">.</span><span class="n">Num2</span> <span class="o">:=</span> <span class="mi">10</span><span class="o">;</span> <span class="k">try</span> <span class="n">diff</span> <span class="o">:=</span> <span class="n">client</span><span class="o">.</span><span class="n">calculate</span><span class="p">(</span> <span class="mi">1</span><span class="o">,</span> <span class="n">work</span><span class="p">)</span><span class="o">;</span> - <span class="n">Console</span><span class="o">.</span><span class="n">WriteLine</span><span class="p">(</span> <span class="nb">Format</span><span class="p">(</span><span class="s">'15-10=%d'</span><span class="o">,</span> <span class="p">[</span><span class="n">diff</span><span class="p">]))</span><span class="o">;</span> + <span class="nb">WriteLn</span><span class="p">(</span> <span class="nb">Format</span><span class="p">(</span><span class="s">'15-10=%d'</span><span class="o">,</span> <span class="p">[</span><span class="n">diff</span><span class="p">]))</span><span class="o">;</span> <span class="k">except</span> <span class="k">on</span> <span class="n">io</span><span class="o">:</span> <span class="n">TInvalidOperation</span> - <span class="k">do</span> <span class="n">Console</span><span class="o">.</span><span class="n">WriteLine</span><span class="p">(</span> <span class="s">'Invalid operation: '</span> <span class="o">+</span> <span class="n">io</span><span class="o">.</span><span class="n">Why</span><span class="p">)</span><span class="o">;</span> + <span class="k">do</span> <span class="nb">WriteLn</span><span class="p">(</span> <span class="s">'Invalid operation: '</span> <span class="o">+</span> <span class="n">io</span><span class="o">.</span><span class="n">Why</span><span class="p">)</span><span class="o">;</span> <span class="k">end</span><span class="o">;</span> <span class="n">log</span> <span class="o">:=</span> <span class="n">client</span><span class="o">.</span><span class="n">getStruct</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span><span class="o">;</span> - <span class="n">Console</span><span class="o">.</span><span class="n">WriteLine</span><span class="p">(</span> <span class="nb">Format</span><span class="p">(</span> <span class="s">'Check log: %s'</span><span class="o">,</span> <span class="p">[</span><span class="n">log</span><span class="o">.</span><span class="n">Value</span><span class="p">]))</span><span class="o">;</span> + <span class="nb">WriteLn</span><span class="p">(</span> <span class="nb">Format</span><span class="p">(</span> <span class="s">'Check log: %s'</span><span class="o">,</span> <span class="p">[</span><span class="n">log</span><span class="o">.</span><span class="n">Value</span><span class="p">]))</span><span class="o">;</span> <span class="n">transport</span><span class="o">.</span><span class="n">Close</span><span class="p">()</span><span class="o">;</span> <span class="k">except</span> <span class="k">on</span> <span class="n">e</span> <span class="o">:</span> <span class="n">Exception</span> - <span class="k">do</span> <span class="n">Console</span><span class="o">.</span><span class="n">WriteLine</span><span class="p">(</span> <span class="n">e</span><span class="o">.</span><span class="n">ClassName</span><span class="o">+</span><span class="s">': '</span><span class="o">+</span><span class="n">e</span><span class="o">.</span><span class="n">Message</span><span class="p">)</span><span class="o">;</span> + <span class="k">do</span> <span class="nb">WriteLn</span><span class="p">(</span> <span class="n">e</span><span class="o">.</span><span class="n">ClassName</span><span class="o">+</span><span class="s">': '</span><span class="o">+</span><span class="n">e</span><span class="o">.</span><span class="n">Message</span><span class="p">)</span><span class="o">;</span> <span class="k">end</span><span class="o">;</span> <span class="k">end</span><span class="o">;</span> @@ -218,7 +218,7 @@ h2:hover > .headerlink, h3:hover > .head <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/delphi/DelphiClient/DelphiClient.dpr;hb=HEAD"</a>tutorial/delphi/DelphiClient/DelphiClient.dpr</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/delphi/DelphiClient/DelphiClient.dpr;hb=HEAD"</a>tutorial/delphi/DelphiClient/DelphiClient.dpr</a> </p> <h3 id="server">Server<a class="headerlink" href="#server" title="Permanent link">¶</a></h3> @@ -246,7 +246,7 @@ h2:hover > .headerlink, h3:hover > .head <span class="n">Generics</span><span class="o">.</span><span class="n">Collections</span><span class="o">,</span> <span class="n">Thrift</span> <span class="k">in</span> <span class="s">'..\..\..\lib\delphi\src\Thrift.pas'</span><span class="o">,</span> <span class="n">Thrift</span><span class="o">.</span><span class="n">Collections</span> <span class="k">in</span> <span class="s">'..\..\..\lib\delphi\src\Thrift.Collections.pas'</span><span class="o">,</span> - <span class="n">Thrift</span><span class="o">.</span><span class="n">Console</span> <span class="k">in</span> <span class="s">'..\..\..\lib\delphi\src\Thrift.Console.pas'</span><span class="o">,</span> + <span class="n">Thrift</span><span class="o">.</span><span class="n">Exception</span> <span class="k">in</span> <span class="s">'..\..\..\lib\delphi\src\Thrift.Exception.pas'</span><span class="o">,</span> <span class="n">Thrift</span><span class="o">.</span><span class="n">Utils</span> <span class="k">in</span> <span class="s">'..\..\..\lib\delphi\src\Thrift.Utils.pas'</span><span class="o">,</span> <span class="n">Thrift</span><span class="o">.</span><span class="n">Stream</span> <span class="k">in</span> <span class="s">'..\..\..\lib\delphi\src\Thrift.Stream.pas'</span><span class="o">,</span> <span class="n">Thrift</span><span class="o">.</span><span class="n">Protocol</span> <span class="k">in</span> <span class="s">'..\..\..\lib\delphi\src\Thrift.Protocol.pas'</span><span class="o">,</span> @@ -304,13 +304,13 @@ h2:hover > .headerlink, h3:hover > .head <span class="k">procedure</span> <span class="nc">TCalculatorHandler</span><span class="o">.</span><span class="nf">ping</span><span class="o">;</span> <span class="k">begin</span> - <span class="n">Console</span><span class="o">.</span><span class="n">WriteLine</span><span class="p">(</span> <span class="s">'ping()'</span><span class="p">)</span><span class="o">;</span> + <span class="nb">WriteLn</span><span class="p">(</span> <span class="s">'ping()'</span><span class="p">)</span><span class="o">;</span> <span class="k">end</span><span class="o">;</span> <span class="k">function</span> <span class="nc">TCalculatorHandler</span><span class="o">.</span><span class="nf">add</span><span class="p">(</span><span class="n">num1</span><span class="o">:</span> <span class="kt">Integer</span><span class="o">;</span> <span class="n">num2</span><span class="o">:</span> <span class="kt">Integer</span><span class="p">)</span><span class="o">:</span> <span class="kt">Integer</span><span class="o">;</span> <span class="k">begin</span> - <span class="n">Console</span><span class="o">.</span><span class="n">WriteLine</span><span class="p">(</span> <span class="nb">Format</span><span class="p">(</span> <span class="s">'add( %d, %d)'</span><span class="o">,</span> <span class="p">[</span><span class="n">num1</span><span class="o">,</span> <span class="n">num2</span><span class="p">]))</span><span class="o">;</span> + <span class="nb">WriteLn</span><span class="p">(</span> <span class="nb">Format</span><span class="p">(</span> <span class="s">'add( %d, %d)'</span><span class="o">,</span> <span class="p">[</span><span class="n">num1</span><span class="o">,</span> <span class="n">num2</span><span class="p">]))</span><span class="o">;</span> <span class="bp">result</span> <span class="o">:=</span> <span class="n">num1</span> <span class="o">+</span> <span class="n">num2</span><span class="o">;</span> <span class="k">end</span><span class="o">;</span> @@ -319,7 +319,7 @@ h2:hover > .headerlink, h3:hover > .head <span class="k">var</span> <span class="n">entry</span> <span class="o">:</span> <span class="n">ISharedStruct</span><span class="o">;</span> <span class="k">begin</span> <span class="k">try</span> - <span class="n">Console</span><span class="o">.</span><span class="n">WriteLine</span><span class="p">(</span> <span class="nb">Format</span><span class="p">(</span><span class="s">'calculate( %d, [%d,%d,%d])'</span><span class="o">,</span> <span class="p">[</span><span class="n">logid</span><span class="o">,</span> <span class="nb">Ord</span><span class="p">(</span><span class="n">w</span><span class="o">.</span><span class="n">Op</span><span class="p">)</span><span class="o">,</span> <span class="n">w</span><span class="o">.</span><span class="n">Num1</span><span class="o">,</span> <span class="n">w</span><span class="o">.</span><span class="n">Num2</span><span class="p">]))</span><span class="o">;</span> + <span class="nb">WriteLn</span><span class="p">(</span> <span class="nb">Format</span><span class="p">(</span><span class="s">'calculate( %d, [%d,%d,%d])'</span><span class="o">,</span> <span class="p">[</span><span class="n">logid</span><span class="o">,</span> <span class="nb">Ord</span><span class="p">(</span><span class="n">w</span><span class="o">.</span><span class="n">Op</span><span class="p">)</span><span class="o">,</span> <span class="n">w</span><span class="o">.</span><span class="n">Num1</span><span class="o">,</span> <span class="n">w</span><span class="o">.</span><span class="n">Num2</span><span class="p">]))</span><span class="o">;</span> <span class="k">case</span> <span class="n">w</span><span class="o">.</span><span class="n">Op</span> <span class="k">of</span> <span class="n">TOperation</span><span class="o">.</span><span class="n">ADD</span> <span class="o">:</span> <span class="bp">result</span> <span class="o">:=</span> <span class="n">w</span><span class="o">.</span><span class="n">Num1</span> <span class="o">+</span> <span class="n">w</span><span class="o">.</span><span class="n">Num2</span><span class="o">;</span> @@ -344,14 +344,14 @@ h2:hover > .headerlink, h3:hover > .head <span class="k">function</span> <span class="nc">TCalculatorHandler</span><span class="o">.</span><span class="nf">getStruct</span><span class="p">(</span><span class="n">key</span><span class="o">:</span> <span class="kt">Integer</span><span class="p">)</span><span class="o">:</span> <span class="n">ISharedStruct</span><span class="o">;</span> <span class="k">begin</span> - <span class="n">Console</span><span class="o">.</span><span class="n">WriteLine</span><span class="p">(</span> <span class="nb">Format</span><span class="p">(</span> <span class="s">'getStruct(%d)'</span><span class="o">,</span> <span class="p">[</span><span class="n">key</span><span class="p">]))</span><span class="o">;</span> + <span class="nb">WriteLn</span><span class="p">(</span> <span class="nb">Format</span><span class="p">(</span> <span class="s">'getStruct(%d)'</span><span class="o">,</span> <span class="p">[</span><span class="n">key</span><span class="p">]))</span><span class="o">;</span> <span class="bp">result</span> <span class="o">:=</span> <span class="n">FLog</span><span class="p">[</span><span class="n">key</span><span class="p">]</span><span class="o">;</span> <span class="k">end</span><span class="o">;</span> <span class="k">procedure</span> <span class="nc">TCalculatorHandler</span><span class="o">.</span><span class="nf">zip</span><span class="o">;</span> <span class="k">begin</span> - <span class="n">Console</span><span class="o">.</span><span class="n">WriteLine</span><span class="p">(</span> <span class="s">'zip()'</span><span class="p">)</span><span class="o">;</span> + <span class="nb">WriteLn</span><span class="p">(</span> <span class="s">'zip()'</span><span class="p">)</span><span class="o">;</span> <span class="k">end</span><span class="o">;</span> @@ -370,14 +370,14 @@ h2:hover > .headerlink, h3:hover > .head <span class="n">transport</span> <span class="o">:=</span> <span class="n">TServerSocketImpl</span><span class="o">.</span><span class="n">Create</span><span class="p">(</span> <span class="mi">9090</span><span class="p">)</span><span class="o">;</span> <span class="n">server</span> <span class="o">:=</span> <span class="n">TSimpleServer</span><span class="o">.</span><span class="n">Create</span><span class="p">(</span> <span class="n">processor</span><span class="o">,</span> <span class="n">transport</span><span class="p">)</span><span class="o">;</span> - <span class="n">Console</span><span class="o">.</span><span class="n">WriteLine</span><span class="p">(</span> <span class="s">'Starting the server...'</span><span class="p">)</span><span class="o">;</span> + <span class="nb">WriteLn</span><span class="p">(</span> <span class="s">'Starting the server...'</span><span class="p">)</span><span class="o">;</span> <span class="n">server</span><span class="o">.</span><span class="n">Serve</span><span class="p">()</span><span class="o">;</span> <span class="k">except</span> - <span class="k">on</span> <span class="n">e</span><span class="o">:</span> <span class="n">Exception</span> <span class="k">do</span> <span class="n">Console</span><span class="o">.</span><span class="n">WriteLine</span><span class="p">(</span> <span class="n">e</span><span class="o">.</span><span class="n">Message</span><span class="p">)</span><span class="o">;</span> + <span class="k">on</span> <span class="n">e</span><span class="o">:</span> <span class="n">Exception</span> <span class="k">do</span> <span class="nb">WriteLn</span><span class="p">(</span> <span class="n">e</span><span class="o">.</span><span class="n">Message</span><span class="p">)</span><span class="o">;</span> <span class="k">end</span><span class="o">;</span> - <span class="n">Console</span><span class="o">.</span><span class="n">WriteLine</span><span class="p">(</span><span class="s">'done.'</span><span class="p">)</span><span class="o">;</span> + <span class="nb">WriteLn</span><span class="p">(</span><span class="s">'done.'</span><span class="p">)</span><span class="o">;</span> <span class="k">end</span><span class="o">;</span> @@ -393,7 +393,7 @@ h2:hover > .headerlink, h3:hover > .head <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/delphi/DelphiServer/DelphiServer.dpr;hb=HEAD"</a>tutorial/delphi/DelphiServer/DelphiServer.dpr</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/delphi/DelphiServer/DelphiServer.dpr;hb=HEAD"</a>tutorial/delphi/DelphiServer/DelphiServer.dpr</a> </p> <h2 id="additional-information">Additional Information<a class="headerlink" href="#additional-information" title="Permanent link">¶</a></h2> Modified: websites/staging/thrift/trunk/content/tutorial/go.html ============================================================================== --- websites/staging/thrift/trunk/content/tutorial/go.html (original) +++ websites/staging/thrift/trunk/content/tutorial/go.html Tue Jan 1 11:21:16 2019 @@ -103,8 +103,10 @@ h2:hover > .headerlink, h3:hover > .head </ol> <h3 id="prerequisites">Prerequisites<a class="headerlink" href="#prerequisites" title="Permanent link">¶</a></h3> <ul> -<li>At least Go 1.1.x is required to run the tutorial code.</li> +<li>At least Go 1.7 is required to run the tutorial code.</li> <li>The GOPATH may need to be adjusted, alternatively manually put the Go Thrift library files into a suitable location.</li> +<li>The Thrift library and compiler must be the same version. Applications might work even with a version mismatch, but this unsupported. +To use a specific version of the library, either clone the repository for that version, or use a package manager like <a href="https://golang.github.io/dep/">dep</a> or <a href="https://github.com/golang/go/wiki/Modules">Go modules</a>.</li> </ul> <h3 id="client">Client<a class="headerlink" href="#client" title="Permanent link">¶</a></h3> <style type="text/css"> @@ -120,13 +122,16 @@ h2:hover > .headerlink, h3:hover > .head h2:hover > .headerlink, h3:hover > .headerlink, h1:hover > .headerlink, h6:hover > .headerlink, h4:hover > .headerlink, h5:hover > .headerlink, dt:hover > .elementid-permalink { visibility: visible }</style> <div class="codehilite"><pre><span class="n">import</span> <span class="p">(</span> + <span class="s">"context"</span> <span class="s">"crypto/tls"</span> <span class="s">"fmt"</span> <span class="s">"tutorial"</span> - <span class="s">"git.apache.org/thrift.git/lib/go/thrift"</span> + <span class="s">"github.com/apache/thrift/lib/go/thrift"</span> <span class="p">)</span> +<span class="n">var</span> <span class="n">defaultCtx</span> <span class="o">=</span> <span class="n">context</span><span class="p">.</span><span class="n">Background</span><span class="p">()</span> + <span class="n">func</span> <span class="n">handleClient</span><span class="p">(</span><span class="n">client</span> <span class="o">*</span><span class="n">tutorial</span><span class="p">.</span><span class="n">CalculatorClient</span><span class="p">)</span> <span class="p">(</span><span class="n">err</span> <span class="n">error</span><span class="p">)</span> <span class="p">{</span> <span class="n">client</span><span class="p">.</span><span class="n">Ping</span><span class="p">(</span><span class="n">defaultCtx</span><span class="p">)</span> <span class="n">fmt</span><span class="p">.</span><span class="n">Println</span><span class="p">(</span><span class="s">"ping()"</span><span class="p">)</span> @@ -194,14 +199,11 @@ h2:hover > .headerlink, h3:hover > .head <span class="n">transport</span><span class="p">,</span> <span class="n">err</span> <span class="o">=</span> <span class="n">transportFactory</span><span class="p">.</span><span class="n">GetTransport</span><span class="p">(</span><span class="n">transport</span><span class="p">)</span> <span class="k">if</span> <span class="n">err</span> <span class="o">!=</span> <span class="n">nil</span> <span class="p">{</span> <span class="k">return</span> <span class="n">err</span> - <span class="p">}</span> - <span class="n">defer</span> <span class="n">transport</span><span class="p">.</span><span class="n">Close</span><span class="p">()</span> - <span class="k">if</span> <span class="n">err</span> <span class="o">:=</span> <span class="n">transport</span><span class="p">.</span><span class="n">Open</span><span class="p">();</span> <span class="n">err</span> <span class="o">!=</span> <span class="n">nil</span> <span class="p">{</span> </pre></div> <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/go/src/client.go;hb=HEAD"</a>tutorial/go/src/client.go</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/go/src/client.go;hb=HEAD"</a>tutorial/go/src/client.go</a> </p> <h3 id="server">Server<a class="headerlink" href="#server" title="Permanent link">¶</a></h3> @@ -220,7 +222,7 @@ h2:hover > .headerlink, h3:hover > .head <div class="codehilite"><pre><span class="n">import</span> <span class="p">(</span> <span class="s">"crypto/tls"</span> <span class="s">"fmt"</span> - <span class="s">"git.apache.org/thrift.git/lib/go/thrift"</span> + <span class="s">"github.com/apache/thrift/lib/go/thrift"</span> <span class="s">"tutorial"</span> <span class="p">)</span> @@ -254,7 +256,7 @@ h2:hover > .headerlink, h3:hover > .head <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/go/src/server.go;hb=HEAD"</a>tutorial/go/src/server.go</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/go/src/server.go;hb=HEAD"</a>tutorial/go/src/server.go</a> </p> <h3 id="server-handler">Server Handler<a class="headerlink" href="#server-handler" title="Permanent link">¶</a></h3> @@ -270,15 +272,12 @@ h2:hover > .headerlink, h3:hover > .head } h2:hover > .headerlink, h3:hover > .headerlink, h1:hover > .headerlink, h6:hover > .headerlink, h4:hover > .headerlink, h5:hover > .headerlink, dt:hover > .elementid-permalink { visibility: visible }</style> -<div class="codehilite"><pre> <span class="err">*/</span> - -<span class="n">import</span> <span class="p">(</span> +<div class="codehilite"><pre><span class="n">import</span> <span class="p">(</span> + <span class="s">"context"</span> <span class="s">"fmt"</span> <span class="s">"shared"</span> <span class="s">"strconv"</span> <span class="s">"tutorial"</span> - - <span class="s">"golang.org/x/net/context"</span> <span class="p">)</span> <span class="n">type</span> <span class="n">CalculatorHandler</span> <span class="k">struct</span> <span class="p">{</span> @@ -358,7 +357,7 @@ h2:hover > .headerlink, h3:hover > .head <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/go/src/handler.go;hb=HEAD"</a>tutorial/go/src/handler.go</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/go/src/handler.go;hb=HEAD"</a>tutorial/go/src/handler.go</a> </p> <h2 id="additional-information">Additional Information<a class="headerlink" href="#additional-information" title="Permanent link">¶</a></h2> Modified: websites/staging/thrift/trunk/content/tutorial/haxe.html ============================================================================== --- websites/staging/thrift/trunk/content/tutorial/haxe.html (original) +++ websites/staging/thrift/trunk/content/tutorial/haxe.html Tue Jan 1 11:21:16 2019 @@ -419,7 +419,7 @@ private static function ServerSetup() : <p><p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/haxe/src/Main.hx;hb=HEAD"</a>tutorial/haxe/src/Main.hx</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/haxe/src/Main.hx;hb=HEAD"</a>tutorial/haxe/src/Main.hx</a> </p></p> <p>Were done with the client, but need some more for the server: A service handler implementaion.</p> <h3 id="server">Server<a class="headerlink" href="#server" title="Permanent link">¶</a></h3> @@ -505,7 +505,7 @@ import shared.</em>;</p> <p>} <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/haxe/src/CalculatorHandler.hx;hb=HEAD"</a>tutorial/haxe/src/CalculatorHandler.hx</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/haxe/src/CalculatorHandler.hx;hb=HEAD"</a>tutorial/haxe/src/CalculatorHandler.hx</a> </p></p> <h3 id="additional-information">Additional Information<a class="headerlink" href="#additional-information" title="Permanent link">¶</a></h3> <p>Similar to Thrift, Haxe supports different compiler targets. Depending on the target, some features Modified: websites/staging/thrift/trunk/content/tutorial/hs.html ============================================================================== --- websites/staging/thrift/trunk/content/tutorial/hs.html (original) +++ websites/staging/thrift/trunk/content/tutorial/hs.html Tue Jan 1 11:21:16 2019 @@ -173,7 +173,7 @@ h2:hover > .headerlink, h3:hover > .head <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/hs/HaskellClient.hs;hb=HEAD"</a>tutorial/hs/HaskellClient.hs</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/hs/HaskellClient.hs;hb=HEAD"</a>tutorial/hs/HaskellClient.hs</a> </p> <h3 id="server">Server<a class="headerlink" href="#server" title="Permanent link">¶</a></h3> @@ -276,7 +276,7 @@ h2:hover > .headerlink, h3:hover > .head <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/hs/HaskellServer.hs;hb=HEAD"</a>tutorial/hs/HaskellServer.hs</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/hs/HaskellServer.hs;hb=HEAD"</a>tutorial/hs/HaskellServer.hs</a> </p> <h2 id="additional-information">Additional Information<a class="headerlink" href="#additional-information" title="Permanent link">¶</a></h2> Modified: websites/staging/thrift/trunk/content/tutorial/java.html ============================================================================== --- websites/staging/thrift/trunk/content/tutorial/java.html (original) +++ websites/staging/thrift/trunk/content/tutorial/java.html Tue Jan 1 11:21:16 2019 @@ -205,7 +205,7 @@ h2:hover > .headerlink, h3:hover > .head <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/java/src/JavaClient.java;hb=HEAD"</a>tutorial/java/src/JavaClient.java</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/java/src/JavaClient.java;hb=HEAD"</a>tutorial/java/src/JavaClient.java</a> </p> <h3 id="server">Server<a class="headerlink" href="#server" title="Permanent link">¶</a></h3> @@ -316,7 +316,7 @@ h2:hover > .headerlink, h3:hover > .head <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/java/src/JavaServer.java;hb=HEAD"</a>tutorial/java/src/JavaServer.java</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/java/src/JavaServer.java;hb=HEAD"</a>tutorial/java/src/JavaServer.java</a> </p> <h2 id="additional-information">Additional Information<a class="headerlink" href="#additional-information" title="Permanent link">¶</a></h2> Modified: websites/staging/thrift/trunk/content/tutorial/nodejs.html ============================================================================== --- websites/staging/thrift/trunk/content/tutorial/nodejs.html (original) +++ websites/staging/thrift/trunk/content/tutorial/nodejs.html Tue Jan 1 11:21:16 2019 @@ -177,7 +177,7 @@ h2:hover > .headerlink, h3:hover > .head <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/nodejs/NodeClient.js;hb=HEAD"</a>tutorial/nodejs/NodeClient.js</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/nodejs/NodeClient.js;hb=HEAD"</a>tutorial/nodejs/NodeClient.js</a> </p> <h3 id="server">Server<a class="headerlink" href="#server" title="Permanent link">¶</a></h3> @@ -263,7 +263,7 @@ h2:hover > .headerlink, h3:hover > .head <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/nodejs/NodeServer.js;hb=HEAD"</a>tutorial/nodejs/NodeServer.js</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/nodejs/NodeServer.js;hb=HEAD"</a>tutorial/nodejs/NodeServer.js</a> </p> <h2 id="additional-information">Additional Information<a class="headerlink" href="#additional-information" title="Permanent link">¶</a></h2> Modified: websites/staging/thrift/trunk/content/tutorial/ocaml.html ============================================================================== --- websites/staging/thrift/trunk/content/tutorial/ocaml.html (original) +++ websites/staging/thrift/trunk/content/tutorial/ocaml.html Tue Jan 1 11:21:16 2019 @@ -174,7 +174,7 @@ h2:hover > .headerlink, h3:hover > .head <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/ocaml/CalcClient.ml;hb=HEAD"</a>tutorial/ocaml/CalcClient.ml</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/ocaml/CalcClient.ml;hb=HEAD"</a>tutorial/ocaml/CalcClient.ml</a> </p> <h3 id="server">Server<a class="headerlink" href="#server" title="Permanent link">¶</a></h3> @@ -264,7 +264,7 @@ h2:hover > .headerlink, h3:hover > .head <p class='snippet_footer'> This snippet was generated by Apache Thrift's <strong>source tree docs</strong>: - <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/ocaml/CalcServer.ml;hb=HEAD"</a>tutorial/ocaml/CalcServer.ml</a> + <a href="http://gitbox.apache.org/repos/asf?p=thrift.git;a=blob;f=tutorial/ocaml/CalcServer.ml;hb=HEAD"</a>tutorial/ocaml/CalcServer.ml</a> </p> <h2 id="additional-information">Additional Information<a class="headerlink" href="#additional-information" title="Permanent link">¶</a></h2>