Added some sources

This commit is contained in:
Didier Clermonté 2016-08-16 16:08:26 +02:00
parent 4c78278c74
commit 258503d079
7 changed files with 22 additions and 3 deletions

View File

@ -18,8 +18,8 @@
<attribute name="javadoc_location" value="jar:platform:/resource/Siba/lib/commons-io-2.5-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="lib/UnitTesting/jcommander-1.48.jar"/>
<classpathentry kind="lib" path="lib/UnitTesting/testng-6.9.10.jar"/>
<classpathentry kind="lib" path="lib/UnitTesting/jcommander-1.48.jar" sourcepath="lib/UnitTesting/jcommander-1.48-sources.jar"/>
<classpathentry kind="lib" path="lib/UnitTesting/testng-6.9.10.jar" sourcepath="lib/UnitTesting/testng-6.9.10-sources.jar"/>
<classpathentry kind="lib" path="lib/Logs/log4j-1.2.17.jar" sourcepath="lib/Logs/log4j-1.2.17-sources.zip"/>
<classpathentry kind="lib" path="lib/Logs/slf4j-api-1.7.21.jar" sourcepath="lib/Logs/slf4j-api-1.7.21-sources.jar"/>
<classpathentry kind="lib" path="lib/Logs/slf4j-log4j12-1.7.21.jar" sourcepath="lib/Logs/slf4j-log4j12-1.7.21-sources.jar"/>

Binary file not shown.

View File

@ -42,6 +42,11 @@ public final class Siba
}
/**
*
* @param args
* arguments
*/
public static void main(final String[] args)
{
// Configure log.

View File

@ -50,7 +50,9 @@ public class SibaException extends Exception
/**
*
* @param message
* text
* @param cause
* caused by
*/
public SibaException(final String message, final Throwable cause)
{
@ -60,6 +62,7 @@ public class SibaException extends Exception
/**
*
* @param cause
* caused by
*/
public SibaException(final Throwable cause)
{

View File

@ -55,8 +55,11 @@ public final class SibaCLI
* This method is called for Backup from CLI.
*
* @param directoryToSave
* The directory to save
* @param targetDirectory
* where to put the generated file
* @throws SibaException
* specific exception
*/
public static void backup(final File directoryToSave, final File targetDirectory) throws SibaException
{
@ -70,7 +73,9 @@ public final class SibaCLI
* This method is called for Check from CLI. anObject
*
* @param fileToCheck
* The file to be check
* @throws SibaException
* specific exception
*/
public static void check(final File fileToCheck) throws SibaException
{
@ -135,6 +140,7 @@ public final class SibaCLI
* This method launch CLI.
*
* @param args
* necessary arguments
*/
public static void run(final String[] args)
{

View File

@ -78,6 +78,7 @@ public final class SibaManager
* directory for the file
* @return the archive of the file
* @throws SibaException
* specific exception
*/
public static File backup(final File fileToSave, final File target) throws SibaException
{
@ -134,8 +135,10 @@ public final class SibaManager
* This method is used to check the file.
*
* @param choosenFile
* @return
* the file to check
* @return the result of check
* @throws SibaException
* specific exception
*/
public static boolean check(final File choosenFile) throws SibaException
{

View File

@ -52,7 +52,9 @@ public final class SibaUtils
* This method Generate the file with MD5.
*
* @param inputFile
* the file on which the md5 is calculate
* @param target
* the MD5 file
* @return
* @throws IOException
* @throws NoSuchAlgorithmException