]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/thrift/lib/delphi/test/server.dpr
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / jaegertracing / thrift / lib / delphi / test / server.dpr
1 (*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 *)
19
20 program server;
21
22 {$APPTYPE CONSOLE}
23
24 uses
25 SysUtils,
26 TestServer in 'TestServer.pas',
27 TestServerEvents in 'TestServerEvents.pas',
28 Thrift.Test, // in gen-delphi folder
29 Thrift in '..\src\Thrift.pas',
30 Thrift.Exception in '..\src\Thrift.Exception.pas',
31 Thrift.Transport in '..\src\Thrift.Transport.pas',
32 Thrift.Socket in '..\src\Thrift.Socket.pas',
33 Thrift.Transport.Pipes in '..\src\Thrift.Transport.Pipes.pas',
34 Thrift.Protocol in '..\src\Thrift.Protocol.pas',
35 Thrift.Protocol.JSON in '..\src\Thrift.Protocol.JSON.pas',
36 Thrift.Protocol.Compact in '..\src\Thrift.Protocol.Compact.pas',
37 Thrift.Protocol.Multiplex in '..\src\Thrift.Protocol.Multiplex.pas',
38 Thrift.Processor.Multiplex in '..\src\Thrift.Processor.Multiplex.pas',
39 Thrift.Collections in '..\src\Thrift.Collections.pas',
40 Thrift.Server in '..\src\Thrift.Server.pas',
41 Thrift.TypeRegistry in '..\src\Thrift.TypeRegistry.pas',
42 Thrift.Utils in '..\src\Thrift.Utils.pas',
43 Thrift.WinHTTP in '..\src\Thrift.WinHTTP.pas',
44 Thrift.Stream in '..\src\Thrift.Stream.pas';
45
46 var
47 nParamCount : Integer;
48 args : array of string;
49 i : Integer;
50 arg : string;
51
52 begin
53 try
54 Writeln( 'Delphi TestServer '+Thrift.Version);
55 nParamCount := ParamCount;
56 SetLength( args, nParamCount);
57 for i := 1 to nParamCount do begin
58 arg := ParamStr( i );
59 args[i-1] := arg;
60 end;
61
62 TTestServer.Execute( args );
63
64 except
65 on E: EAbort do begin
66 ExitCode := $FF;
67 end;
68 on E: Exception do begin
69 Writeln(E.ClassName, ': ', E.Message);
70 ExitCode := $FF;
71 end;
72 end;
73 end.
74