Codota Logo
PatchUtils.readRef
Code IndexAdd Codota to your IDE (free)

How to use
readRef
method
in
org.jboss.as.patching.runner.PatchUtils

Best Java code snippets using org.jboss.as.patching.runner.PatchUtils.readRef (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: org.wildfly.core/wildfly-patching

public static TargetInfo loadTargetInfo(final Properties properties, final DirectoryStructure structure) {
  final String ref = PatchUtils.readRef(properties, Constants.CUMULATIVE);
  final List<String> patches = PatchUtils.readRefs(properties);
  return new TargetInfoImpl(properties, ref, patches, structure);
}
origin: org.wildfly.core/wildfly-patching

public static String readRef(final File file) throws IOException {
  if(! file.exists()) {
    return Constants.BASE;
  }
  final InputStream is = new FileInputStream(file);
  try {
    return readRef(is);
  } finally {
    safeClose(is);
  }
}
origin: wildfly/wildfly-core

public static TargetInfo loadTargetInfo(final Properties properties, final DirectoryStructure structure) {
  final String ref = PatchUtils.readRef(properties, Constants.CUMULATIVE);
  final List<String> patches = PatchUtils.readRefs(properties);
  return new TargetInfoImpl(properties, ref, patches, structure);
}
origin: wildfly/wildfly-core

public static String readRef(final File file) throws IOException {
  if(! file.exists()) {
    return Constants.BASE;
  }
  final InputStream is = new FileInputStream(file);
  try {
    return readRef(is);
  } finally {
    safeClose(is);
  }
}
origin: org.wildfly.core/wildfly-patching

private String getAppliedAt(File patchDir) throws PatchingException {
  File timestampFile = new File(patchDir, Constants.TIMESTAMP);
  try {
    return timestampFile.exists() ? PatchUtils.readRef(timestampFile) : null;
  } catch (IOException e) {
    throw new PatchingException(PatchLogger.ROOT_LOGGER.fileIsNotReadable(timestampFile.getAbsolutePath()));
  }
}
origin: wildfly/wildfly-core

private String getAppliedAt(File patchDir) throws PatchingException {
  File timestampFile = new File(patchDir, Constants.TIMESTAMP);
  try {
    return timestampFile.exists() ? PatchUtils.readRef(timestampFile) : null;
  } catch (IOException e) {
    throw new PatchingException(PatchLogger.ROOT_LOGGER.fileIsNotReadable(timestampFile.getAbsolutePath()));
  }
}
org.jboss.as.patching.runnerPatchUtilsreadRef

Popular methods of PatchUtils

  • getAbsentModuleContentHash
  • getModulePath
  • readRefs
  • asString
  • generateTimestamp
  • getAbsentModuleContent
  • getBundlePath
  • getRenamedFileName
  • loadProperties
  • readLine
  • writeLine
  • writeProperties
  • writeLine,
  • writeProperties,
  • writeRef,
  • writeRefs

Popular in Java

  • Reading from database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • getSharedPreferences (Context)
  • startActivity (Activity)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • String (java.lang)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Notification (javax.management)
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