Tuxedo WS .NET Wrapper Command Reference

Copyright © 2005 BEA Systems, Inc. All rights reserved.

 

Manual pages for the commands of .NET wrapper for Tuxedo /WS. There are totally three commands in the wrapper package: viewcs/viewcs32, mkfldcs/mkfldcs32 and buildnetclient

 

 

viewcs/viewcs32

Synopsis

viewcs binaryviewfile [binaryviewfile...]

viewcs32 binaryviewfile [binaryviewfile...]

 

Description

viewcs is an utility used to generate C# source files for customer-defined viewfile. It takes the output file of viewcs (binary viewfile with a .VV extension in its file name on DOS/Windows, or a .V extension on other platforms) as input and generate corresponding C# source files which contain classes representing the customer-defined view structures.

 

viewcs32 is used for 32-bit FML.

 

Remarks

Not like viewc and viewc32, viewcs and viewcs32 don¡¯t depend on any environment variables, the only input it needs is the binary viewfile specified in its command line.

 

See also

Introduction to FML programming using .NET wrapper for Tuxedo /WS

 

 

mkfldcs/mkfldcs32

Synopsis

mkfldcs [-d outdir] [ field_table... ]

mkfldcs32 [-d outdir] [ field_table... ]

 

Description

mkfldcs is almost the same as mkfldhdr except its output file, mkfldhdr is used to generate C header files while mkfldcs is used to generate C# source files which contain public classes including the definitions for every FML field id provided in the input files.

 

The command line options of mkfldcs is the same as mkfldhdr, please see Tuxedo command mkfldhdr for details.

mkfldcs32 is used for 32-bit FML.

 

See also

Introduction to FML programming using .NET wrapper for Tuxedo /WS

mkfldhdr, mkfldhdr32

 

 

buildnetclient

Synopsis

buildnetclient [-v] [-o outfile] [-csflag flagstring] [.cs source files] [.dll assembly files] [.netmodule module files]

 

Description

buildnetclient is an utility used to construct a Tuxedo client application developed using .NET wrapper for Tuxedo /WS. The command combines the files specified by the arguments of .cs source files, .dll assembly files and .netmodule module files with the libraries of .NET wrapper for Tuxedo /WS to form a client application. The client application is built using the C# compiler csc.exe provided by .NET environment.

 

Users may specify options to be passed to the C# compiler by setting the ¨Ccsflag option. Multiple C# compiler options may be specified if they are enclosed in quotation marks and are separarted by white space.

 

Options

-v

Specifies that the buildnetclient command should work in verbose mode. In particular, it writes the compile command to its standard output.

 

-o outfile

Specifies the name of the client application generated by this command. If the name is not supplied, the application file is named after the C# source file which has a class containing a static method Main inside, and the file name extension is dependent on the operating system for an application (for example, on a UNIX system, there would not be a extension; on a Windows system, the extension would be .EXE).

 

-csflag flagstring

Indicates any arguments that are passed as part of the C# compiler command line for any files with a .cs file extension. Multiple C# compiler options may be specified if they are enclosed in quotation marks and are separarted by white space.

 

.cs source files

Specifies any C# source files with a .cs file extension which are needed to build the application file.

 

.dll assembly files

Specifies any .NET assembly files with a .dll file extension which are referenced by the files in the .cs source files list to build the application file.

 

.netmodule module files

Specifies any .NET module files with a .netmodule file extension which are needed to build the application file.

 

Remarks

buildnetclient analyzes the arguments passed to it via command line and construct another valid command line to invoke the C# compiler to build the application executable. For example,  ¡°buildnetclient ¨Co t1.exe t1.cs¡± is translated by buildnetclient to ¡°csc /out:t1.exe /t:exe /r:%TUXDIR%\bin\libwscdnet.dll t1.cs¡± on Windows system.

 

Examples

The following example builds two C# source files t1.cs, t2.cs and a module file t3.netmodule together into a executable assembly first.exe, in this example, t1.cs call some methods provided by a library assembly func.dll which is located in the same directory with the above files.

    buildnetclient ¨Co first.exe func.dll t1.cs t3.netmodule t2.cs