Added sources

This commit is contained in:
Didier Clermonté 2016-08-14 19:44:37 +02:00
parent 462e7a74f8
commit 8fb5e9ea7a
9 changed files with 34 additions and 9 deletions

View File

@ -7,17 +7,24 @@
<classpathentry kind="lib" path="lib/jgoodies-forms-1.8.0.jar" sourcepath="lib/jgoodies-forms-1.8.0-sources.jar"/> <classpathentry kind="lib" path="lib/jgoodies-forms-1.8.0.jar" sourcepath="lib/jgoodies-forms-1.8.0-sources.jar"/>
<classpathentry kind="lib" path="lib/jgoodies-common-1.8.1.jar"/> <classpathentry kind="lib" path="lib/jgoodies-common-1.8.1.jar"/>
<classpathentry kind="lib" path="lib/commons-compress-1.10-sources.jar"/> <classpathentry kind="lib" path="lib/commons-compress-1.10-sources.jar"/>
<classpathentry kind="lib" path="lib/commons-lang3-3.4.jar"> <classpathentry kind="lib" path="lib/commons-lang3-3.4.jar" sourcepath="lib/commons-lang3-3.4-src.jar">
<attributes> <attributes>
<attribute name="javadoc_location" value="jar:platform:/resource/Siba/lib/commons-lang3-3.4-javadoc.jar!/"/> <attribute name="javadoc_location" value="jar:platform:/resource/Siba/lib/commons-lang3-3.4-javadoc.jar!/"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="lib" path="lib/commons-lang3-3.4-javadoc.jar"/> <classpathentry kind="lib" path="lib/commons-lang3-3.4-javadoc.jar"/>
<classpathentry kind="lib" path="lib/commons-io-2.5.jar"/> <classpathentry kind="lib" path="lib/commons-io-2.5.jar" sourcepath="lib/commons-io-2.5-src.jar">
<attributes>
<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/jcommander-1.48.jar"/>
<classpathentry kind="lib" path="lib/UnitTesting/testng-6.9.10.jar"/> <classpathentry kind="lib" path="lib/UnitTesting/testng-6.9.10.jar"/>
<classpathentry kind="lib" path="lib/Logs/log4j-1.2.17.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"/> <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"/> <classpathentry kind="lib" path="lib/Logs/slf4j-log4j12-1.7.21.jar" sourcepath="lib/Logs/slf4j-log4j12-1.7.21-sources.jar"/>
<classpathentry kind="lib" path="lib/commons-io-2.5-src.jar"/>
<classpathentry kind="lib" path="lib/commons-lang3-3.4-src.jar"/>
<classpathentry kind="lib" path="lib/jgoodies-forms-1.8.0-sources.jar"/>
<classpathentry kind="output" path="bin"/> <classpathentry kind="output" path="bin"/>
</classpath> </classpath>

BIN
lib/SibaSource.jar Normal file

Binary file not shown.

BIN
lib/commons-io-2.5-src.jar Normal file

Binary file not shown.

Binary file not shown.

11
lib/log4j.properties Normal file
View File

@ -0,0 +1,11 @@
# Log information (priority setting : DEBUG < INFO < WARN < ERROR)
# ################
log4j.rootLogger = INFO, CONSOLE
log4j.logger.org.dclermonte.siba = DEBUG
#--
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern = %d{ISO8601} - SIBA [%-5p] %34.34c.%25M - %m%n

View File

@ -40,6 +40,7 @@ public class SibaException extends Exception
/** /**
* *
* @param message * @param message
* error message
*/ */
public SibaException(final String message) public SibaException(final String message)
{ {

View File

@ -282,7 +282,6 @@ public class SibaGUI
{ {
logger.error("Exception ", exception); logger.error("Exception ", exception);
} }
} }
}); });
mnNewMenu.add(mntmMenuItemAbout); mnNewMenu.add(mntmMenuItemAbout);
@ -320,6 +319,8 @@ public class SibaGUI
/** /**
* This method set the local language. * This method set the local language.
*
* @param source
*/ */
public static void updateLanguage(final Locale source) public static void updateLanguage(final Locale source)
{ {

View File

@ -53,8 +53,10 @@ public class SibaManager
* This method perform the backup. * This method perform the backup.
* *
* @param fileToSave * @param fileToSave
* @return * name of the directory to save
* @return the archive of the file
* @throws SibaException * @throws SibaException
* specific exception for Siba
*/ */
public static File backup(final File fileToSave) throws SibaException public static File backup(final File fileToSave) throws SibaException
{ {
@ -71,8 +73,10 @@ public class SibaManager
* This method perform the backup. * This method perform the backup.
* *
* @param fileToSave * @param fileToSave
* name of the directory to save
* @param target * @param target
* @return * directory for the file
* @return the archive of the file
* @throws SibaException * @throws SibaException
*/ */
public static File backup(final File fileToSave, final File target) throws SibaException public static File backup(final File fileToSave, final File target) throws SibaException

View File

@ -40,6 +40,8 @@ import org.apache.commons.io.IOUtils;
*/ */
public class SibaUtils public class SibaUtils
{ {
static final String DEFAULT_CHARSET = "UTF-8";
private SibaUtils() private SibaUtils()
{ {
@ -237,7 +239,6 @@ public class SibaUtils
{ {
String result; String result;
final String DEFAULT_CHARSET = "UTF-8";
URL url = SibaUtils.class.getResource(resource); URL url = SibaUtils.class.getResource(resource);
result = IOUtils.toString(url, DEFAULT_CHARSET); result = IOUtils.toString(url, DEFAULT_CHARSET);