jbang-export-local(1)

Name

jbang-export-local - Exports jar with classpath referring to local machine dependent locations

Synopsis

jbang export local -o [-h] [--force] --fresh [--insecure] [--[no-]integrations] [--itr] [--jsh] --quiet --verbose [--module[=<module>]] [--catalog=<catalog>] [--config=<config>] [-j=<javaVersion>] [-m=<main>] [-O=<outputFile>] [--source-type=<forceType>] [-C=<compileOptions>]…​ [--cp=<classpaths>]…​ [-D=<String=String>]…​ [--deps=<dependencies>]…​ [--files=<resources>]…​ [--manifest=<String=String>]…​ [--repos=<repositories>]…​ [-s=<sources>]…​ [<scriptOrFile>]

Description

Exports jar with classpath referring to local machine dependent locations

Options

-C, --compile-option=<compileOptions>

Options to pass to the compiler

--catalog=<catalog>

Path to catalog file to be used instead of the default

--config=<config>

Path to config file to be used instead of the default

--cp, --class-path=<classpaths>

Add class path entries.

-D, <String=String>

set a system property

--deps=<dependencies>

Add additional dependencies (Use commas to separate them).

--files=<resources>

Add additional files.

--force

Force export, i.e. overwrite exported file if already exists

--fresh

Make sure we use fresh (i.e. non-cached) resources.

-h, --help

Display help/info. Use 'jbang <command> -h' for detailed usage.

--insecure

Enable insecure trust of all SSL certificates.

--[no-]integrations

Enable integration execution (default: true)

--itr, --ignore-transitive-repositories

Ignore remote repositories found in transitive dependencies

-j, --java=<javaVersion>

JDK version to use for running the script.

--jsh

Force input to be interpreted with jsh/jshell. Deprecated: use '--source-type jshell'

-m, --main=<main>

Main class to use when running. Used primarily for running jar’s.

--manifest=<String=String>
--module[=<module>]

Treat resource as a module. Optionally with the given module name

-o, --offline

Work offline. Fail-fast if dependencies are missing. No connections will be attempted

-O, --output=<outputFile>

The name or path to use for the exported file. If not specified a name will be determined from the original source reference and export flags.

--quiet

jbang will be quiet, only print when error occurs.

--repos=<repositories>

Add additional repositories.

-s, --sources=<sources>

Add additional sources.

--source-type=<forceType>

Force input to be interpreted as the given type. Can be: java, jshell, groovy, kotlin, or markdown

--verbose

jbang will be verbose on what it does.

Arguments

[<scriptOrFile>]

A reference to a source file