</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
- <orderEntry type="library" name="Maven: eu.svjatoslav:svjatoslavcommons:1.5" level="project" />
+ <orderEntry type="library" name="Maven: eu.svjatoslav:svjatoslavcommons:1.6-SNAPSHOT" level="project" />
<orderEntry type="library" name="Maven: log4j:log4j:1.2.16" level="project" />
</component>
</module>
\ No newline at end of file
<dependency>
<groupId>eu.svjatoslav</groupId>
<artifactId>svjatoslavcommons</artifactId>
- <version>1.5</version>
+ <version>1.6-SNAPSHOT</version>
</dependency>
<dependency>
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
if (!parser.parse(args))
return null;
- if (recursiveParameter.isParameterSpecified())
+ if (recursiveParameter.isSpecified())
options.recursive = true;
- if (workingDirectoryParameter.isParameterSpecified())
+ if (workingDirectoryParameter.isSpecified())
options.targetDirectory = workingDirectoryParameter.getValue();
else
options.targetDirectory = new File(System.getProperty("user.dir"));
// TODO: add support for multiple input patterns
- if (inputPatternParameter.isParameterSpecified())
+ if (inputPatternParameter.isSpecified())
options.inputPatterns.addAll(inputPatternParameter.getValue());
return options;
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
import eu.svjatoslav.commons.commandline.parameterparser.ArgumentCount;
import eu.svjatoslav.commons.commandline.parameterparser.Parameter;
-public class BitrateParameter extends Parameter<BitrateParameter> {
+public class BitrateParameter extends Parameter<BitrateParameter.Bitrate, BitrateParameter> {
public BitrateParameter(final String description) {
super(description, ArgumentCount.SINGLE);
}
@Override
- public bitrate getValue() {
- return bitrate.valueOf(arguments.get(0).toUpperCase());
+ public Bitrate getValue() {
+ return Bitrate.valueOf(arguments.get(0).toUpperCase());
}
@Override
public boolean validate(final String value) {
try {
- bitrate.valueOf(value.toUpperCase());
+ Bitrate.valueOf(value.toUpperCase());
} catch (final IllegalArgumentException exception) {
return false;
}
return true;
}
- public enum bitrate {
+ public enum Bitrate {
NONE, LOW, MEDIUM, HIGH, COPY
}
}
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
parser.parse(args);
- options.setRecursive(recursiveParameter.isParameterSpecified());
+ options.setRecursive(recursiveParameter.isSpecified());
- options.setDeinterlace(deinterlaceParameter.isParameterSpecified());
+ options.setDeinterlace(deinterlaceParameter.isSpecified());
- options.setTestOnly(testParameter.isParameterSpecified());
+ options.setTestOnly(testParameter.isSpecified());
- if (outputFormatParameter.isParameterSpecified())
+ if (outputFormatParameter.isSpecified())
options.getOutputFormats().addAll(outputFormatParameter.getValue());
- if (targetFramerate.isParameterSpecified())
+ if (targetFramerate.isSpecified())
options.setTargetFps(targetFramerate.getValue());
- if (workingDirectoryParameter.isParameterSpecified())
+ if (workingDirectoryParameter.isSpecified())
options.setWorkingDirectory(workingDirectoryParameter.getValue());
- if (inputPatternParameter.isParameterSpecified())
+ if (inputPatternParameter.isSpecified())
options.getInputPatterns().addAll(inputPatternParameter.getValue());
- options.setForPortablePlayer(forPortableParameter.isParameterSpecified());
+ options.setForPortablePlayer(forPortableParameter.isSpecified());
- if (videoBitrateParameter.isParameterSpecified())
+ if (videoBitrateParameter.isSpecified())
options.setVideoBitrate(videoBitrateParameter.getValue());
- if (audioBitrateParameter.isParameterSpecified())
+ if (audioBitrateParameter.isSpecified())
options.setAudioBitrate(audioBitrateParameter.getValue());
return options;
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012-2015, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017-2015, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
public class EncodingOptions {
- private BitrateParameter.bitrate videoBitrate = BitrateParameter.bitrate.MEDIUM;
+ private BitrateParameter.Bitrate videoBitrate = BitrateParameter.Bitrate.MEDIUM;
- private BitrateParameter.bitrate audioBitrate = BitrateParameter.bitrate.MEDIUM;
+ private BitrateParameter.Bitrate audioBitrate = BitrateParameter.Bitrate.MEDIUM;
private Integer targetFps;
private List<String> inputPatterns = new ArrayList<>();
- public BitrateParameter.bitrate getAudioBitrate() {
+ public BitrateParameter.Bitrate getAudioBitrate() {
return audioBitrate;
}
- public void setAudioBitrate(final BitrateParameter.bitrate audioBitrate) {
+ public void setAudioBitrate(final BitrateParameter.Bitrate audioBitrate) {
this.audioBitrate = audioBitrate;
}
this.targetFps = targetFps;
}
- public BitrateParameter.bitrate getVideoBitrate() {
+ public BitrateParameter.Bitrate getVideoBitrate() {
return videoBitrate;
}
- public void setVideoBitrate(final BitrateParameter.bitrate videoBitrate) {
+ public void setVideoBitrate(final BitrateParameter.Bitrate videoBitrate) {
this.videoBitrate = videoBitrate;
}
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
package eu.svjatoslav.meviz.encoder.converters;
-import eu.svjatoslav.meviz.encoder.BitrateParameter;
-import eu.svjatoslav.meviz.encoder.BitrateParameter.bitrate;
+import eu.svjatoslav.meviz.encoder.BitrateParameter.Bitrate;
import eu.svjatoslav.meviz.encoder.EncodingOptions;
import java.io.File;
return codecParams.toString();
}
- private int getAudioBitrateValue(final BitrateParameter.bitrate bitRate) {
+ private int getAudioBitrateValue(final Bitrate bitRate) {
switch (bitRate) {
case LOW:
return 128;
codecParams.append("-s 800x600 ");
}
- if (options.getVideoBitrate() == bitrate.COPY)
+ if (options.getVideoBitrate() == Bitrate.COPY)
videoCodec = "copy";
- if (options.getAudioBitrate() == bitrate.COPY)
+ if (options.getAudioBitrate() == Bitrate.COPY)
audioCodec = "copy";
- if (options.getAudioBitrate() == bitrate.NONE)
+ if (options.getAudioBitrate() == Bitrate.NONE)
audioCodec = null;
if (options.isForPortablePlayer()) {
"webm", "mov");
}
- private int getVideoBitrateValue(final BitrateParameter.bitrate bitRate) {
+ private int getVideoBitrateValue(final Bitrate bitRate) {
switch (bitRate) {
case LOW:
return 1000;
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012-2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017-2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
}
private List<String> getSupportedFormats() {
- return toList("tif", "tiff", "png", "jpg", "jpeg");
+ return toList("tif", "tiff", "png", "jpg", "jpeg", "bmp");
}
@Override
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
private EncodingOptions getEncodingOptions() {
final EncodingOptions options = new EncodingOptions();
- options.setVideoBitrate(BitrateParameter.bitrate.COPY);
- options.setAudioBitrate(BitrateParameter.bitrate.COPY);
+ options.setVideoBitrate(BitrateParameter.Bitrate.COPY);
+ options.setAudioBitrate(BitrateParameter.Bitrate.COPY);
return options;
}
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
.addAliases("-w", "--working-directory").mustExist();
public String getGalleryTitle() {
- if (galleryNameParameter.isParameterSpecified())
+ if (galleryNameParameter.isSpecified())
return galleryNameParameter.getValue();
return Constants.DEFAULT_GALLERY_TITLE;
}
public File getWorkingDirectory() {
- if (workingDirectoryParameter.isParameterSpecified())
+ if (workingDirectoryParameter.isSpecified())
return workingDirectoryParameter.getValue();
else
return new File(System.getProperty("user.dir"));
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
public void run(final String[] args) throws Exception {
if (commandlineHandler.parseCommandlineArguments(args))
- if (commandlineHandler.removeIndex.isParameterSpecified())
+ if (commandlineHandler.removeIndex.isSpecified())
new FilesystemIndexRemover(commandlineHandler);
else
new FilesystemIndexer(commandlineHandler.getWorkingDirectory(),
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
if (!parser.parse(args))
return null;
- if (testParameter.isParameterSpecified())
+ if (testParameter.isSpecified())
options.testOnly = true;
- if (recursiveParameter.isParameterSpecified())
+ if (recursiveParameter.isSpecified())
options.recursive = true;
- if (outputPatternParameter.isParameterSpecified())
+ if (outputPatternParameter.isSpecified())
options.outputPattern = outputPatternParameter.getValue();
- if (workingDirectoryParameter.isParameterSpecified())
+ if (workingDirectoryParameter.isSpecified())
options.targetDirectory = workingDirectoryParameter.getValue();
else
options.targetDirectory = new File(System.getProperty("user.dir"));
// TODO: add multiple input patterns support
- if (inputPatternParameter.isParameterSpecified())
+ if (inputPatternParameter.isSpecified())
options.inputPatterns.addAll(inputPatternParameter.getValue());
return options;
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
if (!parser.parse(args))
return null;
- if (recursiveParameter.isParameterSpecified())
+ if (recursiveParameter.isSpecified())
options.recursive = true;
- if (directoryParameter.isParameterSpecified())
+ if (directoryParameter.isSpecified())
options.targetDirectory = directoryParameter.getValue();
else
options.targetDirectory = new File(System.getProperty("user.dir"));
- if (searchForPattern.isParameterSpecified())
+ if (searchForPattern.isSpecified())
options.searchForPattern = searchForPattern.getValue();
- if (replaceWithPattern.isParameterSpecified())
+ if (replaceWithPattern.isSpecified())
options.replaceWithPattern = replaceWithPattern.getValue();
return options;
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
if (!parser.parse(args))
return null;
- if (recursiveParameter.isParameterSpecified())
+ if (recursiveParameter.isSpecified())
options.recursive = true;
- if (workingDirectoryParameter.isParameterSpecified())
+ if (workingDirectoryParameter.isSpecified())
options.targetDirectory = workingDirectoryParameter.getValue();
else
options.targetDirectory = new File(System.getProperty("user.dir"));
- if (fileInputPatternsParameter.isParameterSpecified())
+ if (fileInputPatternsParameter.isSpecified())
options.fileInputPatterns.addAll(fileInputPatternsParameter
.getValue());
- if (splitPatternsParameter.isParameterSpecified())
+ if (splitPatternsParameter.isSpecified())
options.textSplitPatterns.addAll(splitPatternsParameter.getValue());
return options;
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
if (!parser.parse(args))
return null;
- if (recursiveParameter.isParameterSpecified())
+ if (recursiveParameter.isSpecified())
options.recursive = true;
- if (workingDirectoryParameter.isParameterSpecified())
+ if (workingDirectoryParameter.isSpecified())
options.targetDirectory = workingDirectoryParameter.getValue();
else
options.targetDirectory = new File(System.getProperty("user.dir"));
- if (inputPatternParameter.isParameterSpecified())
+ if (inputPatternParameter.isSpecified())
options.inputPatterns.addAll(inputPatternParameter.getValue());
return options;
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License