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

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

Best Java code snippets using org.jboss.as.patching.runner.PatchUtils.writeRefs (Showing top 8 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: wildfly/wildfly-core

public static void writeRefs(final File file, final List<String> refs) throws IOException {
  writeRefs(file, refs, false);
}
origin: org.wildfly.core/wildfly-patching

public static void writeRefs(final File file, final List<String> refs) throws IOException {
  writeRefs(file, refs, false);
}
origin: wildfly/wildfly-core

private void storeFailedRenaming() throws IOException {
  if (!renames.isEmpty()) {
    final File failedRenaming = new File(installedImage.getInstallationMetadata(), "cleanup-renaming-files");
    if (!failedRenaming.exists()) {
      failedRenaming.createNewFile();
    }
    List<String> failures = new ArrayList<String>(renames.keySet());
    PatchUtils.writeRefs(failedRenaming, failures, true);
  }
}
origin: org.wildfly.core/wildfly-patching

private void storeFailedRenaming() throws IOException {
  if (!renames.isEmpty()) {
    final File failedRenaming = new File(installedImage.getInstallationMetadata(), "cleanup-renaming-files");
    if (!failedRenaming.exists()) {
      failedRenaming.createNewFile();
    }
    List<String> failures = new ArrayList<String>(renames.keySet());
    PatchUtils.writeRefs(failedRenaming, failures, true);
  }
}
origin: org.wildfly.core/wildfly-patching

public static void writeRefs(final File file, final List<String> refs, boolean append) throws IOException {
  mkdir(file.getParentFile());
  final OutputStream os = new FileOutputStream(file, append);
  try {
    writeRefs(os, refs);
    os.flush();
    os.close();
  } finally {
    safeClose(os);
  }
}
origin: wildfly/wildfly-core

public static void writeRefs(final File file, final List<String> refs, boolean append) throws IOException {
  mkdir(file.getParentFile());
  final OutputStream os = new FileOutputStream(file, append);
  try {
    writeRefs(os, refs);
    os.flush();
    os.close();
  } finally {
    safeClose(os);
  }
}
origin: org.wildfly.core/wildfly-patching

protected void persist(final String cumulativeID, final List<String> patches, final Properties properties) throws IOException {
  assert cumulativeID != null;
  // Create the parent
  IoUtils.mkdir(structure.getInstallationInfo().getParentFile());
  final List<String> consolidate = new ArrayList<String>();
  consolidate.addAll(patches);
  if (!Constants.BASE.equals(cumulativeID)) {
    consolidate.add(cumulativeID);
  }
  if (structure.getModuleRoot() != null) {
    final File overlays = new File(structure.getModuleRoot(), Constants.OVERLAYS);
    final File refs = new File(overlays, Constants.OVERLAYS);
    PatchUtils.writeRefs(refs, consolidate);
  }
  // Update the properties
  properties.put(Constants.CUMULATIVE, cumulativeID);
  properties.put(Constants.PATCHES, PatchUtils.asString(patches));
  if(version != null) {
    properties.put(Constants.CURRENT_VERSION, version);
  }
  // Write layer.conf
  PatchUtils.writeProperties(structure.getInstallationInfo(), properties);
}
origin: wildfly/wildfly-core

protected void persist(final String cumulativeID, final List<String> patches, final Properties properties) throws IOException {
  assert cumulativeID != null;
  // Create the parent
  IoUtils.mkdir(structure.getInstallationInfo().getParentFile());
  final List<String> consolidate = new ArrayList<String>();
  consolidate.addAll(patches);
  if (!Constants.BASE.equals(cumulativeID)) {
    consolidate.add(cumulativeID);
  }
  if (structure.getModuleRoot() != null) {
    final File overlays = new File(structure.getModuleRoot(), Constants.OVERLAYS);
    final File refs = new File(overlays, Constants.OVERLAYS);
    PatchUtils.writeRefs(refs, consolidate);
  }
  // Update the properties
  properties.put(Constants.CUMULATIVE, cumulativeID);
  properties.put(Constants.PATCHES, PatchUtils.asString(patches));
  if(version != null) {
    properties.put(Constants.CURRENT_VERSION, version);
  }
  // Write layer.conf
  PatchUtils.writeProperties(structure.getInstallationInfo(), properties);
}
org.jboss.as.patching.runnerPatchUtilswriteRefs

Popular methods of PatchUtils

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

Popular in Java

  • Start an intent from android
  • getSharedPreferences (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JLabel (javax.swing)
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