Modifier and Type | Method and Description |
---|---|
void |
Shortcuts.addArgument(String argument,
List<String> arguments)
Utility to add an arguments to a list of arguments while supporting
recursive expansion of shortcuts.
|
Bootstrap |
Container.createBootstrap()
Creates a new bootstrap based on the classpath.
|
void |
Sincerity.createContainer(File containerRoot,
File templateDir,
boolean force)
Creates a new container based on a template and sets it as the current
container.
|
PackagingContext |
Container.createPackagingContext()
Creates a packaging context for the container.
|
String[] |
Shortcuts.get(String shortcut)
Retrieves a shortcut if it exists.
|
String[] |
Command.getArguments()
When
Command.setParse(boolean) is false, returns the raw arguments of
the command. |
Bootstrap |
Container.getBootstrap()
The cached bootstrap.
|
Bootstrap |
Container.getBootstrap(boolean forceCreate)
The bootstrap, whether cached or explicitly (re)created.
|
String[] |
DelegatedPlugin.getCommands() |
String[] |
Plugin1.getCommands()
The command names supported by this plugin.
|
<RD extends Module,R extends Repositories> |
Sincerity.getContainer()
The current container.
|
File |
Sincerity.getContainerRoot()
The root directory of the current container.
|
File |
Sincerity.getHome()
The Sincerity home directory
|
File |
Sincerity.getHomeFile(String... parts)
Constructs an absolute path from the home directory.
|
int |
DelegatedPlugin.getInterfaceVersion() |
int |
Plugin1.getInterfaceVersion()
The version of the Sincerity plugin interface supported by this plugin.
|
LanguageManager |
Container.getLanguageManager()
The cached Scripturian language manager, based on the current bootstrap.
|
String |
DelegatedPlugin.getName() |
String |
Plugin1.getName()
The name of this plugin.
|
ParserManager |
Container.getParserManager()
The cached Scripturian parser manager, based on the current bootstrap.
|
Plugins |
Sincerity.getPlugins()
The plugins.
|
Plugins |
Container.getPlugins()
The cached plugins, based on the current bootstrap.
|
List<String> |
Container.getPrograms()
The names of all files under the "programs" subdirectory without their
extensions.
|
Map<String,String> |
Command.getProperties()
Returns the command's switches: arguments prefixed with "--" that have a
"=" in their value.
|
String |
Sincerity.getRelativeHomePath(File file)
If the file is under to the root directory, returns a relative path.
|
String |
Sincerity.getRelativeHomePath(String path)
If the path is under to the root directory, returns a relative path.
|
Set<String> |
Command.getSwitches()
Returns the command's switches: arguments prefixed with "--" that are not
properties.
|
List<Template> |
Sincerity.getTemplates()
The available templates (names of directory in the "/templates/"
subdirectory of the Sincerity install).
|
void |
DelegatedPlugin.gui(Command command) |
void |
Plugin1.gui(Command command)
Called by the
ShellPlugin to allow this plugin to activate its
own extension to the GUI. |
void |
Sincerity.reboot()
Reboots Sincerity without forcing a new container bootstrap.
|
void |
Sincerity.reboot(boolean forceNewBootstrap)
Reboots Sincerity, resubmitting the current command queue to the new
instance.
|
void |
DelegatedPlugin.run(Command command) |
void |
Plugin1.run(Command command)
Runs a command.
|
void |
Sincerity.run(Object... arguments)
Runs a command line with the current set of plugs.
|
void |
Sincerity.setContainerRoot(File containerRoot)
Changes the current container by specifying a new root directory.
|
void |
Container.updateBootstrap()
Recreates and caches the bootstrap.
|
Constructor and Description |
---|
Container(Sincerity sincerity,
File root,
int debugLevel)
Constructor.
|
DelegatedPlugin(File pluginFile,
Container<?,?> container,
ScripturianShell shell)
Constructor.
|
DelegatedPlugin(File pluginFile,
Sincerity sincerity,
ScripturianShell shell)
Constructor.
|
Plugins(Container<?,?> container) |
Plugins(Sincerity sincerity) |
Plugins(Sincerity sincerity,
Container<?,?> container)
Finds all delegated and JVM plugins in the container's classpath.
|
ScripturianShell(Container<?,?> container,
boolean prepare,
String... arguments)
Initializes the parsing context for the shell.
|
ScripturianShell(Sincerity sincerity,
boolean prepare,
String... arguments) |
Shortcuts(File file)
Loads the shortcuts.
|
Sincerity(String[] arguments)
Constructor.
|
Sincerity(String[] arguments,
Sincerity sincerity)
Cloning constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
Dependencies.addExplicitDependency(String group,
String name,
String version,
boolean force,
boolean transitive)
Adds an explicit dependency.
|
abstract boolean |
Repositories.addMaven(String section,
String name,
String url)
Adds a Maven resolver.
|
abstract boolean |
Repositories.addPyPi(String section,
String name,
String url)
Adds a PyPI resolver.
|
abstract boolean |
Dependencies.excludeDependency(String group,
String name)
Excludes an implicit dependency.
|
abstract void |
Dependencies.freezeVersions()
Sets the required versions of all explicit and implicit dependencies to
the those that were last resolved.
|
ArtifactManager |
Dependencies.getArtifactManager()
The artifact manager.
|
Set<Artifact> |
Dependencies.getArtifacts()
Retrieves the artifacts based on currently installed packages.
|
abstract Set<Artifact> |
Dependencies.getArtifacts(boolean install,
boolean overwrite,
boolean verify)
Retrieves or installs the artifacts based on currently installed
packages.
|
String |
Dependencies.getClasspath(boolean includeSystem)
The classpath based on currently installed artifacts.
|
abstract List<File> |
Dependencies.getClasspaths(boolean includeSystem)
The classpath based on currently installed artifacts.
|
abstract Modules<M> |
Dependencies.getModules()
The installed modules (explicit and implicit dependencies), based on the
last
Dependencies.install(boolean, boolean) . |
Packages |
Dependencies.getPackages()
The packages among the currently installed artifacts.
|
abstract String |
Modules.getVersion(String group,
String name)
The version of a module.
|
abstract void |
Dependencies.install(boolean overwrite,
boolean verify)
Installs/upgrades dependencies.
|
abstract boolean |
Dependencies.overrideDependency(String group,
String name,
String version)
Overrides the version of an implicit dependency.
|
void |
Dependencies.prune()
Deletes all artifacts which no longer have a dependency.
|
abstract boolean |
Repositories.remove(String section,
String name)
Removes a resolver.
|
abstract boolean |
Dependencies.removeExplicitDependency(String group,
String name)
Revokes an explicit dependency.
|
abstract void |
Dependencies.reset()
Revokes all explicit and implicit dependencies.
|
abstract boolean |
Dependencies.reviseExplicitDependency(String group,
String name,
String newVersion)
Changes the version for an explicit dependency that has already been
specified.
|
void |
Dependencies.uninstallPackages()
Uninstalls all packages.
|
Constructor and Description |
---|
Dependencies(File artifactsFile,
Container<M,?> container)
Parses the Ivy module descriptor, and loads the managed artifacts
database.
|
Modifier and Type | Method and Description |
---|---|
boolean |
IvyDependencies.addExplicitDependency(String group,
String name,
String version,
boolean force,
boolean transitive) |
boolean |
IvyRepositories.addMaven(String section,
String name,
String url) |
boolean |
IvyRepositories.addPyPi(String section,
String name,
String url) |
boolean |
IvyDependencies.excludeDependency(String group,
String name) |
void |
IvyDependencies.freezeVersions() |
Set<Artifact> |
IvyDependencies.getArtifacts(boolean install,
boolean overwrite,
boolean verify) |
List<File> |
IvyDependencies.getClasspaths(boolean includeSystem) |
Modules<IvyModule> |
IvyDependencies.getModules() |
String |
IvyModules.getVersion(String group,
String name) |
void |
IvyDependencies.install(boolean overwrite,
boolean verify) |
boolean |
IvyDependencies.overrideDependency(String group,
String name,
String version) |
boolean |
IvyRepositories.remove(String section,
String name) |
boolean |
IvyDependencies.removeExplicitDependency(String group,
String name) |
void |
IvyDependencies.reset() |
boolean |
IvyDependencies.reviseExplicitDependency(String group,
String name,
String newVersion) |
Constructor and Description |
---|
IvyContainer(Sincerity sincerity,
File root,
int debugLevel)
Creates an Ivy instance using the "ivy.conf" resource.
|
IvyDependencies(File ivyFile,
File artifactsFile,
IvyContainer container)
Parses the Ivy module descriptor, and loads the managed artifacts
database.
|
IvyModules(IvyDependencies dependencies)
Parses the latest Ivy resolution report.
|
IvyRepositories(File ivyFile,
org.apache.ivy.Ivy ivy)
Parses the Ivy settings file.
|
Modifier and Type | Class and Description |
---|---|
class |
AmbiguousCommandException
Signifies that a Sincerity command is implemented by more than one plugin,
and thus it's unclear which version of the command is being referred to.
|
class |
BadArgumentsCommandException
Signifies that a Sincerity command did not get the arguments it expected.
|
class |
CommandException
Signifies that there was a problem executing a Sincerity command.
|
class |
InstallationException
Signifies that dependencies could not be installed.
|
class |
NoContainerException
Signifies that Sincerity is not running with a
Container . |
class |
RebootException
Signifies that Sincerity is in the process of rebooting, and that no further
operations should take place in the current instance.
|
class |
ReenteringDocumentException
Signifies that Sincerity tried to enter a Scripturian document that was
already entered.
|
class |
ScripturianException
Signifies that Sincerity encountered a Scripturian error.
|
class |
UnknownCommandException
Signifies that a Sincerity command is not supported by any plugin.
|
class |
UnknownShortcutException
Signifies that a Sincerity shortcut has been referred to, but is not defined
by this container.
|
class |
UnpackingException
Signifies that an
Artifact could not extracted from its archive. |
Modifier and Type | Method and Description |
---|---|
void |
ArtifactManager.add(Artifact artifact,
boolean installed,
byte[] digest)
Adds the artifact to the database, marking the configuration file as
requiring a save if the addition caused a change.
|
byte[] |
Artifact.getFileDigest()
The cached digest for the file.
|
byte[] |
ArtifactManager.getOriginalDigest(Artifact artifact)
The digest when the artifact's file was first unpacked.
|
byte[] |
Artifact.getOriginDigest()
The cached digest for the origin.
|
void |
Package.install()
Executes the installer class's main() method, if it exists.
|
void |
Packages.install(ArtifactManager managedArtifacts,
String filter,
boolean overwrite,
boolean verify)
Unpacks all artifacts and runs package installers.
|
static Package |
Package.parsePackage(URL manifestUrl,
PackagingContext packagingContext)
Creates a package instance by interpreting its manifest.
|
void |
ArtifactManager.prune()
Removes all artifacts from the database, deletes all unnecessary files
that have not been modified (for which the digest has not changed), and
finally saves the changes.
|
void |
ArtifactManager.prune(Iterable<Artifact> necessaryArtifacts)
Removes all artifacts from the database that are not mentioned,
deletes all unnecessary files that have not been modified (for which the
digest has not changed), and finally saves the changes.
|
void |
ArtifactManager.save()
Saves the database if there were changes.
|
void |
Packages.uninstall()
Runs all package uninstallers.
|
void |
Package.uninstall()
Executes the uninstaller class's main() method, if it exists.
|
byte[] |
Artifact.unpack(ArtifactManager managedArtifacts,
boolean overwrite,
boolean verify)
Copies the artifact from its origin URI to its intended location in the
filesystem.
|
void |
Package.unpack(String filter,
ArtifactManager managedArtifacts,
boolean overwrite,
boolean verify)
Unpacks all artifacts, while consulting and updating the managed
artifacts database.
|
boolean |
ArtifactManager.wasInstalled(Artifact artifact)
True if the artifact was marked as installed.
|
Constructor and Description |
---|
Packages(PackagingContext packagingContext)
Initializes all packages in the container's classpath.
|
Modifier and Type | Method and Description |
---|---|
void |
HelpPlugin.gui(Command command) |
void |
PackagesPlugin.gui(Command command) |
void |
ShellPlugin.gui(Command command) |
void |
DelegatePlugin.gui(Command command) |
void |
DependenciesPlugin.gui(Command command) |
void |
ShortcutsPlugin.gui(Command command) |
void |
JavaPlugin.gui(Command command) |
void |
ArtifactsPlugin.gui(Command command) |
void |
ContainerPlugin.gui(Command command) |
void |
TemplatesPlugin.gui(Command command) |
void |
RepositoriesPlugin.gui(Command command) |
void |
ArtifactsPlugin.printArtifacts(Dependencies<?> dependencies,
Writer writer,
boolean withPackages,
boolean verbose) |
void |
DependenciesPlugin.printLicenses(Dependencies<?> depenencies,
Writer writer,
boolean verbose) |
void |
DependenciesPlugin.printTree(Dependencies<?> dependencies,
Writer writer) |
void |
HelpPlugin.run(Command command) |
void |
PackagesPlugin.run(Command command) |
void |
ShellPlugin.run(Command command) |
void |
DelegatePlugin.run(Command command) |
void |
DependenciesPlugin.run(Command command) |
void |
ShortcutsPlugin.run(Command command) |
void |
JavaPlugin.run(Command command) |
void |
ArtifactsPlugin.run(Command command) |
void |
ContainerPlugin.run(Command command) |
void |
TemplatesPlugin.run(Command command) |
void |
RepositoriesPlugin.run(Command command) |
Modifier and Type | Method and Description |
---|---|
void |
Console.capture(PipedWriter out) |
static EnhancedNode |
SwingUtil.createArtifactNode(Artifact artifact,
Dependencies<?> dependencies,
boolean includePackageContents) |
static EnhancedNode |
SwingUtil.createCommandNode(String command,
Plugin1 plugin,
boolean includePluginName) |
static EnhancedNode |
SwingUtil.createDependencyNode(Module module,
Dependencies<?> dependencies,
boolean isMain,
boolean includeChildren,
boolean includeLicenses,
boolean includeArtifacts,
boolean includePackageContents) |
static EnhancedNode |
SwingUtil.createLicenseNode(License license,
Dependencies<?> dependencies,
boolean isMain,
boolean includeDependencies,
boolean includeArtifacts,
boolean includePackageContents) |
static EnhancedNode |
SwingUtil.createPluginNode(Plugin1 plugin,
boolean includeCommands) |
static EnhancedNode |
SwingUtil.createProgramNode(String program) |
static EnhancedNode |
SwingUtil.createRepositoryNode(Repository repository) |
static EnhancedNode |
SwingUtil.createShortcutNode(String shortcut,
boolean includeType) |
static EnhancedNode |
SwingUtil.createShortcutTypeNode(String type,
Shortcuts shortcuts) |
static EnhancedNode |
SwingUtil.createTemplateNode(Template template) |
static void |
SwingUtil.initLookAndFeel(String ui) |
Constructor and Description |
---|
AddDependenciesDialog(Sincerity sincerity) |
ArtifactsPane(Dependencies<?> dependencies) |
CommandsPane(Sincerity sincerity) |
Console(Sincerity sincerity) |
ContainerPane(Sincerity sincerity) |
DependenciesPane(Dependencies<?> dependencies) |
Frame(Sincerity sincerity) |
LicensesPane(Dependencies<?> dependencies) |
ProgramDialog(Sincerity sincerity,
String program) |
ProgramsPane(Sincerity sincerity) |
RepositoriesPane(Sincerity sincerity) |
ShortcutsPane(Sincerity sincerity) |
TemplatesPane(Sincerity sincerity) |
Modifier and Type | Method and Description |
---|---|
static void |
ClassUtil.main(Sincerity sincerity,
String[] arguments)
Executes the main() method of the class named by the first argument using
the current bootstrap.
|
static void |
ClassUtil.main(Sincerity sincerity,
String className,
String[] arguments)
Executes the main() method of a class using the current bootstrap.
|
Copyright © 2011-2016 Three Crickets LLC.