Codota Logo
Manifest
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
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

  • Making http requests using okhttp
  • requestLocationUpdates (LocationManager)
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • String (java.lang)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
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