slice2java1
The slice to java compiler.
Usage
slice2java [options]
[files]
Overview
slice2java compiles Slice files to Java. The macro __SLICE2JAVA__ is defined during this compilation.
Full documentation for slice2java is available online at:
https://doc.zeroc.com/ice/3.7/language-mappings/java-mapping/client-side-slice-to-java-mapping/slice2java-command-line-options
Options
-
-h, --help -
Displays a help message.
-
-v, --version -
Displays the compiler version.
-
-DNAME -
Defines the preprocessor symbol NAME.
-
-DNAME=DEF -
Defines the preprocessor symbol NAME with the value DEF.
-
-UNAME -
Undefines the preprocessor symbol NAME.
-
-IDIR -
Add the directory DIR to the search path for #include directives.
-
-E -
Print the preprocessor output on stdout.
-
--output-dir DIR -
Place the generated files into directory DIR.
-
-d, --debug -
Print debug information showing the operation of the Slice parser.
-
--depend -
Print dependency information to standard output by default, or to the file specified by the --depend-file option. No code is generated when this option is specified.
-
--depend-xml -
Print dependency information in XML format to standard output by default, or to the file specified by the --depend-file option. No code is generated when this option is specified.
-
--depend-file FILE -
Directs dependency information to the specified file. The output format depends on whether --depend or --depend-xml is also specified.
-
--validate -
Checks the provided command-line options for correctness, and does not generate any code.
-
--compat -
Generate code for the Java Compat mapping. When this option is specified, the macro __SLICE2JAVA_COMPAT__ is defined during the compilation. If this option is not specified, the default behavior is to generate code for the Java mapping.
-
--tie -
Generate tie classes. (Java Compat only)
-
--impl -
Generate sample implementation files. This option will not overwrite an existing file.
-
--impl-tie -
Generate sample implementation files using tie classes. This option will not overwrite an existing file. (Java Compat only)
-
--checksum CLASS -
Generate checksums for Slice definitions into the class CLASS. The given class name may optionally contain a package specifier. The generated class contains checksums for all of the Slice files being translated by this invocation of the compiler.
-
--meta META -
Define the file metadata directive META. Using this option is equivalent to defining the file metadata META in each named Slice file, as well as in any file included by a named Slice file. File metadata specified with --meta overrides any corresponding file metadata directive in the files being compiled.
-
--list-generated -
Emit a list of generated files in XML format.
Releases
11 releases since Debian 4.0 (Etch); the text changed 7 times.
--checksum since Debian 9 (Stretch);
--compat since Debian 10 (Buster);
--debug since Debian 9 (Stretch);
--depend since Debian 10 (Buster);
--depend-file since Debian 10 (Buster);
--depend-xml since Debian 10 (Buster);
--help since Debian 9 (Stretch);
--impl since Debian 9 (Stretch);
--impl-tie since Debian 9 (Stretch);
--list-generated since Debian 10 (Buster);
--meta since Debian 9 (Stretch);
--output-dir since Debian 9 (Stretch);
--tie since Debian 9 (Stretch);
--validate since Debian 10 (Buster);
--version since Debian 9 (Stretch);
-DNAME since Debian 9 (Stretch);
-E since Debian 9 (Stretch);
-IDIR since Debian 9 (Stretch);
-UNAME since Debian 9 (Stretch);
-d since Debian 9 (Stretch);
-h since Debian 9 (Stretch);
-v since Debian 9 (Stretch).
--ice until Debian 9 (Stretch);
--stream until Debian 9 (Stretch);
--underscore until Debian 9 (Stretch).