Tabnine Logo
ArtifactRef.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
de.smartics.properties.resource.domain.ArtifactRef
constructor

Best Java code snippets using de.smartics.properties.resource.domain.ArtifactRef.<init> (Showing top 3 results out of 315)

origin: de.smartics.properties/smartics-properties-resource-filesystem

private ArtifactRef createFolderRef(final File file)
{
 try
 {
  return new ArtifactRef(defaultArtifactId, file.toURI().toURL());
 }
 catch (final MalformedURLException e)
 {
  LOG.debug("Cannot transform file '{}' to an URL: "
       + e.getLocalizedMessage());
  return null;
 }
}
origin: de.smartics.properties/smartics-properties-resource-filesystem

private static ArtifactRef createArchiveArtifactRef(final File archiveFile)
 throws HeapException
{
 try
 {
  final ArtifactId id = readArtifactId(archiveFile);
  final URL url = archiveFile.toURI().toURL();
  if (id != null)
  {
   final ArtifactRef ref = new ArtifactRef(id, url);
   return ref;
  }
 }
 catch (final MalformedURLException e)
 {
  LOG.debug("Cannot transform file '{}' to an URL: "
       + e.getLocalizedMessage());
 }
 catch (final IOException e)
 {
  throw new HeapException(new FileMessageBean(
    FileSystemResourceCode.FAILED_TO_READ_ARCHIVE_FILE, e, archiveFile));
 }
 return null;
}
origin: de.smartics.properties/smartics-properties-resource-maven

private static ArtifactRef createArtifact(final DependencyNode node)
{
 final Artifact artifact = node.getDependency().getArtifact();
 final ArtifactId.Builder builder = new ArtifactId.Builder();
 final String classifier = normalize(artifact);
 builder.withGroupId(artifact.getGroupId())
   .withName(artifact.getArtifactId()).withVersion(artifact.getVersion())
   .withArchiveType(artifact.getExtension()).withClassifier(classifier);
 final ArtifactId id = builder.build();
 final File file = artifact.getFile();
 final URL url = toUrl(file);
 final ArtifactRef ref = new ArtifactRef(id, url);
 return ref;
}
de.smartics.properties.resource.domainArtifactRef<init>

Popular methods of ArtifactRef

  • getId
  • getUrl

Popular in Java

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • addToBackStack (FragmentTransaction)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JTextField (javax.swing)
  • Best IntelliJ 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