Top Description Fields Constructors Methods
io.vertx.core.impl.launcher.commands

public Class VersionCommand

extends DefaultCommand
Class Inheritance
Annotations
@Name:version
@Summary:Displays the version.
@Description:Prints the vert.x core version used by the application.
Imports
io.vertx.core.cli.CLIException, io.vertx.core.cli.annotations.Description, .Name, .Summary, io.vertx.core.impl.logging.Logger, .LoggerFactory, io.vertx.core.spi.launcher.DefaultCommand, java.io.IOException, .InputStream, java.util.Scanner

Comment to display the vert.x (core) version.
Author
Clement Escoffier

Field Summary

Modifier and TypeField and Description
private static final Logger
private static String
Inherited from io.vertx.core.spi.launcher.DefaultCommand:
executionContextoutsystemProperties

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

the version
getVersion
()

Reads the version from the vertx-version.txt file.

public void
run()

Implements io.vertx.core.spi.launcher.Command.run.

Executes the command.

Inherited from io.vertx.core.spi.launcher.DefaultCommand:
applySystemPropertiesgetCwdoutsetCwdsetSystemPropssetUptearDown

Field Detail

logback to summary
private static final Logger log
versionback to summary
private static String version

Constructor Detail

VersionCommandback to summary
public VersionCommand()

Method Detail

getVersionback to summary
public static String getVersion()

Reads the version from the vertx-version.txt file.

Returns:String

the version

runback to summary
public void run() throws CLIException

Implements io.vertx.core.spi.launcher.Command.run.

Doc from io.vertx.core.spi.launcher.Command.run.

Executes the command.

Annotations
@Override
Exceptions
CLIException:
If anything went wrong.