Tabnine Logo
RepositorySystemSession.getData
Code IndexAdd Tabnine to your IDE (free)

How to use
getData
method
in
org.sonatype.aether.RepositorySystemSession

Best Java code snippets using org.sonatype.aether.RepositorySystemSession.getData (Showing top 14 results out of 315)

origin: sonatype/sonatype-aether

public SessionData getData()
{
  return session.getData();
}
origin: org.sonatype.aether/aether-impl

public void touchArtifact( RepositorySystemSession session, UpdateCheck<Artifact, ArtifactTransferException> check )
{
  Artifact artifact = check.getItem();
  File artifactFile = check.getFile();
  File touchFile = getTouchFile( artifact, artifactFile );
  String updateKey = getUpdateKey( artifactFile, check.getRepository() );
  String dataKey = getDataKey( artifact, artifactFile, check.getAuthoritativeRepository() );
  String transferKey = getTransferKey( artifact, artifactFile, check.getRepository() );
  setUpdated( session.getData(), updateKey );
  Properties props = write( touchFile, dataKey, transferKey, check.getException() );
  if ( artifactFile.exists() && !hasErrors( props ) )
  {
    touchFile.delete();
  }
}
origin: sonatype/sonatype-aether

public void touchArtifact( RepositorySystemSession session, UpdateCheck<Artifact, ArtifactTransferException> check )
{
  Artifact artifact = check.getItem();
  File artifactFile = check.getFile();
  File touchFile = getTouchFile( artifact, artifactFile );
  String updateKey = getUpdateKey( artifactFile, check.getRepository() );
  String dataKey = getDataKey( artifact, artifactFile, check.getAuthoritativeRepository() );
  String transferKey = getTransferKey( artifact, artifactFile, check.getRepository() );
  setUpdated( session.getData(), updateKey );
  Properties props = write( touchFile, dataKey, transferKey, check.getException() );
  if ( artifactFile.exists() && !hasErrors( props ) )
  {
    touchFile.delete();
  }
}
origin: org.sonatype.aether/aether-impl

public void touchMetadata( RepositorySystemSession session, UpdateCheck<Metadata, MetadataTransferException> check )
{
  Metadata metadata = check.getItem();
  File metadataFile = check.getFile();
  File touchFile = getTouchFile( metadata, metadataFile );
  String updateKey = getUpdateKey( metadataFile, check.getRepository() );
  String dataKey = getDataKey( metadata, metadataFile, check.getAuthoritativeRepository() );
  String transferKey = getTransferKey( metadata, metadataFile, check.getRepository() );
  setUpdated( session.getData(), updateKey );
  write( touchFile, dataKey, transferKey, check.getException() );
}
origin: sonatype/sonatype-aether

public void touchMetadata( RepositorySystemSession session, UpdateCheck<Metadata, MetadataTransferException> check )
{
  Metadata metadata = check.getItem();
  File metadataFile = check.getFile();
  File touchFile = getTouchFile( metadata, metadataFile );
  String updateKey = getUpdateKey( metadataFile, check.getRepository() );
  String dataKey = getDataKey( metadata, metadataFile, check.getAuthoritativeRepository() );
  String transferKey = getTransferKey( metadata, metadataFile, check.getRepository() );
  setUpdated( session.getData(), updateKey );
  write( touchFile, dataKey, transferKey, check.getException() );
}
origin: org.apache.maven.mae.components/mae-project-tools

private RepositorySystemSession getRepositorySystemSession( final ProjectToolsSession session )
  throws ProjectToolsException
{
  final File localRepo = session.getLocalRepositoryDirectory();
  RepositorySystemSession sess = session.getRepositorySystemSession();
  if ( sess == null )
  {
    DefaultRepositorySystemSession rss;
    try
    {
      rss =
        new DefaultRepositorySystemSession(
                          serviceManager.createAetherRepositorySystemSession( session.getExecutionRequest() ) );
    }
    catch ( MAEEmbeddingException e )
    {
      throw new ProjectToolsException( "Failed to create RepositorySystemSession instance: %s", e,
                       e.getMessage() );
    }
    if ( localRepo != null )
    {
      localRepo.mkdirs();
      rss.setLocalRepositoryManager( new EnhancedLocalRepositoryManager( localRepo ) );
    }
    rss.setWorkspaceReader( new SessionWorkspaceReader( session ) );
    sess = rss;
  }
  sess.getData().set( ProjectToolsSession.SESSION_KEY, session );
  return sess;
}
origin: org.sonatype.aether/aether-impl

if ( isAlreadyUpdated( session.getData(), updateKey ) )
origin: sonatype/sonatype-aether

if ( isAlreadyUpdated( session.getData(), updateKey ) )
origin: org.sonatype.aether/aether-impl

if ( isAlreadyUpdated( session.getData(), updateKey ) )
origin: org.sonatype.aether/aether-impl

if ( session.getData() == null )
origin: sonatype/sonatype-aether

if ( isAlreadyUpdated( session.getData(), updateKey ) )
origin: sonatype/sonatype-aether

if ( session.getData() == null )
origin: sonatype/sonatype-aether

setDependencySelector( session.getDependencySelector() );
setDependencyGraphTransformer( session.getDependencyGraphTransformer() );
setData( session.getData() );
setCache( session.getCache() );
origin: org.apache.maven.mae.components/mae-project-tools

throws ArtifactDescriptorException
ProjectToolsSession pts = (ProjectToolsSession) session.getData().get( ProjectToolsSession.SESSION_KEY );
final RequestTrace trace = DefaultRequestTrace.newChild( request.getTrace(), request );
org.sonatype.aetherRepositorySystemSessiongetData

Javadoc

Gets the custom data associated with this session.

Popular methods of RepositorySystemSession

  • getConfigProperties
    Gets the configuration properties used to tweak internal aspects of the repository system (e.g. thre
  • getLocalRepository
    Gets the local repository used during this session. This is a convenience method for LocalRepository
  • getTransferListener
    Gets the listener being notified of uploads/downloads by the repository system.
  • getAuthenticationSelector
    Gets the authentication selector to use for repositories discovered in artifact descriptors. Note th
  • getLocalRepositoryManager
    Gets the local repository manager used during this session.
  • getProxySelector
    Gets the proxy selector to use for repositories discovered in artifact descriptors. Note that this s
  • getRepositoryListener
    Gets the listener being notified of actions in the repository system.
  • getArtifactTypeRegistry
    Gets the registry of artifact types recognized by this session.
  • getCache
    Gets the cache the repository system may use to save data for future reuse during the session.
  • getDependencyGraphTransformer
    Gets the dependency graph transformer to use for building dependency graphs.
  • getSystemProperties
    Gets the system properties to use, e.g. for processing of artifact descriptors. System properties ar
  • getUserProperties
    Gets the user properties to use, e.g. for processing of artifact descriptors. User properties are si
  • getSystemProperties,
  • getUserProperties,
  • getWorkspaceReader,
  • getChecksumPolicy,
  • getDependencyManager,
  • getDependencySelector,
  • getDependencyTraverser,
  • getMirrorSelector,
  • getUpdatePolicy

Popular in Java

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JFrame (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now