ARGEO_CIPHER, ARGEO_IS_KEY, ARGEO_ITERATION_COUNT, ARGEO_IV, ARGEO_KEY_LENGTH, ARGEO_KEYRING, ARGEO_NAMESPACE, ARGEO_PASSWORD, ARGEO_REMOTE, ARGEO_SALT, ARGEO_SECRET_KEY_ENCRYPTION, ARGEO_SECRET_KEY_FACTORY, ARGEO_URI, ARGEO_USER_ID
SLC_, SLC_ADDRESS, SLC_AGENTS, SLC_AGGREGATED_STATUS, SLC_ARTIFACT_CLASSIFIER, SLC_ARTIFACT_EXTENSION, SLC_ARTIFACT_ID, SLC_ARTIFACT_VERSION, SLC_AS_STRING, SLC_BUNDLE_VERSION, SLC_CATEGORY, SLC_COMPLETED, SLC_ERROR_MESSAGE, SLC_EXECUTION_SPECS, SLC_FLOW, SLC_GROUP_BASE_ID, SLC_GROUP_ID, SLC_IS_CONSTANT, SLC_IS_HIDDEN, SLC_IS_IMMUTABLE, SLC_ISSUES, SLC_LOG, SLC_MAJOR, SLC_MANIFEST, SLC_MESSAGE, SLC_METADATA, SLC_MICRO, SLC_MINOR, SLC_MODULES, SLC_MY_RESULTS, SLC_NAME, SLC_OPTIONAL, SLC_ORIGIN, SLC_PROCESSES, SLC_PROXY, SLC_QUALIFIER, SLC_RESULT_PART, SLC_RESULTS, SLC_RPM_ARCH, SLC_RPM_ARCHIVE_SIZE, SLC_RPM_RELEASE, SLC_RPM_VERSION, SLC_SPEC, SLC_STARTED, SLC_STATUS, SLC_SUCCESS, SLC_SUMMARY, SLC_SYMBOLIC_NAME, SLC_SYSTEM, SLC_TAG, SLC_TEST_CASE, SLC_TEST_CASE_TYPE, SLC_TIMESTAMP, SLC_TYPE, SLC_URL, SLC_USES, SLC_UUID, SLC_VALUE, SLC_VERSION, SLC_VM
Modifier and Type | Method and Description |
---|---|
static void |
addMavenChecksums(Node node)
Add files containing the SHA-1 and MD5 checksums.
|
static org.eclipse.aether.artifact.Artifact |
asArtifact(Node node)
The artifact described by this node
|
static void |
copy(Node fromNode,
Node toNode)
Custom copy since the one in commons does not fit the needs when copying
a workspace completely.
|
static void |
copy(Node fromNode,
Node toNode,
org.argeo.jcr.JcrMonitor monitor) |
static Node |
copyBytesAsArtifact(Node artifactsBase,
org.eclipse.aether.artifact.Artifact artifact,
byte[] bytes)
Copy this bytes array as an artifact, relative to the root of the
repository (typically the workspace root node)
|
static void |
copyJar(java.io.InputStream in,
java.io.OutputStream out,
java.util.jar.Manifest manifest)
Copy a jar changing onlythe manifest
|
static java.lang.String |
extractBundleNameFromSourceName(java.lang.String sourceBundleName)
If a source return the base bundle name, does not change otherwise
|
static Session |
getRemoteSession(RepositoryFactory repositoryFactory,
org.argeo.node.security.Keyring keyring,
Node repoNode,
java.lang.String uri,
java.lang.String workspaceName)
Shortcut to retrieve a session given variable information: Handle the
case where we only have an URI of the repository, that we want to connect
as anonymous or the case of a identified connection to a local or remote
repository.
|
static Session |
getRemoteSession(RepositoryFactory repositoryFactory,
org.argeo.node.security.Keyring keyring,
Repository localRepository,
java.lang.String repoNodePath,
java.lang.String uri,
java.lang.String workspaceName)
Shortcut to retrieve a session on a remote Jrc Repository from
information stored in a local argeo node or from an URI: Handle the case
where we only have an URI of the repository, that we want to connect as
anonymous or the case of a identified connection to a local or remote
repository.
|
static Repository |
getRepository(RepositoryFactory repositoryFactory,
org.argeo.node.security.Keyring keyring,
Node repoNode)
Retrieve repository based on information in the repo node
|
static Credentials |
getRepositoryCredentials(org.argeo.node.security.Keyring keyring,
Node repoNode)
Reads credentials from node, using keyring if there is a password.
|
static byte[] |
modifyManifest(java.io.InputStream in,
java.util.jar.Manifest manifest)
Reads a jar file, modify its manifest
|
static byte[] |
packageAsPdeSource(java.io.InputStream sourceJar,
NameVersion nameVersion) |
static void |
packagesAsPdeSource(java.io.File sourceFile,
NameVersion nameVersion,
java.io.OutputStream out)
Packages a regular sources jar as PDE source.
|
static NameVersion |
readNameVersion(org.eclipse.aether.artifact.Artifact artifact)
Read the OSGi
NameVersion |
static NameVersion |
readNameVersion(java.io.File artifactFile)
Read the OSGi
NameVersion |
static NameVersion |
readNameVersion(java.io.InputStream in)
Read the OSGi
NameVersion |
static NameVersion |
readNameVersion(java.util.jar.Manifest manifest)
Read the OSGi
NameVersion |
static java.lang.String |
relatedPdeSourcePath(java.lang.String artifactBasePath,
Node artifactNode)
The path to the PDE source related to this artifact (or artifact version
base).
|
static void |
writeGroupIndexes(Session session,
java.lang.String artifactBasePath,
java.lang.String groupId,
java.lang.String version,
java.util.Set<org.eclipse.aether.artifact.Artifact> binaries,
java.util.Set<org.eclipse.aether.artifact.Artifact> sources)
Write group indexes: 'binaries' lists all bundles and their versions,
'sources' list their sources, and 'sdk' aggregates both.
|
public static void packagesAsPdeSource(java.io.File sourceFile, NameVersion nameVersion, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public static byte[] packageAsPdeSource(java.io.InputStream sourceJar, NameVersion nameVersion)
public static void copyJar(java.io.InputStream in, java.io.OutputStream out, java.util.jar.Manifest manifest)
public static byte[] modifyManifest(java.io.InputStream in, java.util.jar.Manifest manifest)
public static NameVersion readNameVersion(org.eclipse.aether.artifact.Artifact artifact)
NameVersion
public static NameVersion readNameVersion(java.io.File artifactFile)
NameVersion
public static NameVersion readNameVersion(java.io.InputStream in)
NameVersion
public static NameVersion readNameVersion(java.util.jar.Manifest manifest)
NameVersion
public static org.eclipse.aether.artifact.Artifact asArtifact(Node node) throws RepositoryException
RepositoryException
public static java.lang.String relatedPdeSourcePath(java.lang.String artifactBasePath, Node artifactNode) throws RepositoryException
RepositoryException
public static Node copyBytesAsArtifact(Node artifactsBase, org.eclipse.aether.artifact.Artifact artifact, byte[] bytes) throws RepositoryException
RepositoryException
public static java.lang.String extractBundleNameFromSourceName(java.lang.String sourceBundleName)
public static Repository getRepository(RepositoryFactory repositoryFactory, org.argeo.node.security.Keyring keyring, Node repoNode)
public static Credentials getRepositoryCredentials(org.argeo.node.security.Keyring keyring, Node repoNode)
GuestCredentials
if user id is 'anonymous' .public static Session getRemoteSession(RepositoryFactory repositoryFactory, org.argeo.node.security.Keyring keyring, Node repoNode, java.lang.String uri, java.lang.String workspaceName)
public static Session getRemoteSession(RepositoryFactory repositoryFactory, org.argeo.node.security.Keyring keyring, Repository localRepository, java.lang.String repoNodePath, java.lang.String uri, java.lang.String workspaceName)
public static void writeGroupIndexes(Session session, java.lang.String artifactBasePath, java.lang.String groupId, java.lang.String version, java.util.Set<org.eclipse.aether.artifact.Artifact> binaries, java.util.Set<org.eclipse.aether.artifact.Artifact> sources)
public static void addMavenChecksums(Node node) throws RepositoryException
RepositoryException
public static void copy(Node fromNode, Node toNode)
Copyright © 2007–2020. All rights reserved.