Codota Logo
ArtifactRef.<init>
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
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

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • 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
  • ImageIO (javax.imageio)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now