Tabnine Logo
Manifest
Code IndexAdd Tabnine to your IDE (free)

How to use
Manifest
in
de.matrixweb.smaller.common

Best Java code snippets using de.matrixweb.smaller.common.Manifest (Showing top 8 results out of 315)

origin: de.matrixweb.smaller/client-common

/**
 * @param configFile
 * @return Returns a new {@link Manifest}
 * @deprecated Use {@link Manifest#fromConfigFile(ConfigFile)} instead
 */
@Deprecated
public Manifest convertConfigFileToManifest(final ConfigFile configFile) {
 return Manifest.fromConfigFile(configFile);
}
origin: de.matrixweb.smaller/common

/**
 * @param manifest
 * @return Returns <code>true</code> if the <code>out-only</code> option for
 *         the <code>output</code> processor is set to <code>true</code> or
 *         <code>yes</code>.
 */
public static boolean isOutOnly(final Manifest manifest) {
 final Object value = manifest.getOptions().get("output:out-only");
 return BooleanUtils.toBoolean(value != null ? value.toString() : "false");
}
origin: de.matrixweb.smaller/common

/**
 * @param configFile
 * @return Returns the created {@link Manifest}
 */
public static Manifest fromConfigFile(final ConfigFile configFile) {
 final Manifest manifest = new Manifest();
 for (final Environment env : configFile.getEnvironments().values()) {
  final ProcessDescription processDescription = new ProcessDescription();
  if (env.getPipeline() != null) {
   processDescription.setInputFile(env.getProcessors()
     .get(env.getPipeline()[0]).getSrc());
  }
  if (env.getProcess() != null) {
   processDescription.setOutputFile(env.getProcess());
  }
  if (env.getPipeline() != null) {
   for (final String name : env.getPipeline()) {
    final de.matrixweb.smaller.common.ProcessDescription.Processor processor = new de.matrixweb.smaller.common.ProcessDescription.Processor();
    processor.setName(name);
    final Processor p = env.getProcessors().get(name);
    if (p != null) {
     processor.getOptions().putAll(p.getPlainOptions());
    }
    processDescription.getProcessors().add(processor);
   }
  }
  manifest.getProcessDescriptions().add(processDescription);
 }
 return manifest;
}
origin: de.matrixweb.smaller/pipeline

final List<AtomicReference<Exception>> exceptions = new ArrayList<AtomicReference<Exception>>();
final CountDownLatch cdl = new CountDownLatch(manifest
  .getProcessDescriptions().size());
try {
 for (final ProcessDescription processDescription : manifest
   .getProcessDescriptions()) {
  exceptions.add(executeProcessAsyncron(cdl, manifest,
    processDescription, vfs, targetDir, resolver, version));
origin: de.matrixweb.smaller/client-common

 FileUtils.copyFile(new File(base, includedFile), target);
for (final ProcessDescription pd : manifest.getProcessDescriptions()) {
 final File target = new File(temp, pd.getInputFile());
 target.getParentFile().mkdirs();
origin: de.matrixweb.smaller/pipeline

private void writeResults(final VFS vfs, final File outputDir,
  final Manifest manifest) throws IOException {
 if (!GlobalOptions.isOutOnly(manifest)) {
  vfs.exportFS(outputDir);
 }
 for (final ProcessDescription processDescription : manifest
   .getProcessDescriptions()) {
  if (processDescription.getOutputFile() != null) {
   FileUtils
     .writeStringToFile(
       new File(outputDir, processDescription.getOutputFile()),
       VFSUtils.readToString(vfs.find(processDescription
         .getOutputFile())));
  }
 }
}
origin: de.matrixweb.smaller/common

/**
 * @param manifest
 * @return Returns <code>true</code> if the <code>once</code> option for the
 *         <code>source</code> processor is set to <code>true</code> or
 *         <code>yes</code>.
 */
public static boolean isSourceOnce(final Manifest manifest) {
 final Object value = manifest.getOptions().get("source:once");
 return BooleanUtils.toBoolean(value != null ? value.toString() : "false");
}
origin: de.matrixweb.smaller/client-common

private Manifest writeManifest(final File temp, final ConfigFile configFile)
  throws ExecutionException {
 try {
  final Manifest manifest = Manifest.fromConfigFile(configFile);
  final File metaInf = new File(temp, "META-INF");
  metaInf.mkdirs();
  new ObjectMapper()
    .writeValue(new File(metaInf, "smaller.json"), manifest);
  return manifest;
 } catch (final IOException e) {
  throw new ExecutionException("Failed to write manifest", e);
 }
}
de.matrixweb.smaller.commonManifest

Most used methods

  • getProcessDescriptions
  • <init>
  • fromConfigFile
  • getOptions

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getContentResolver (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • From CI to AI: The AI layer in your organization
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