diff --git a/.classpath b/.classpath index 1899083..e8bcab5 100644 --- a/.classpath +++ b/.classpath @@ -1,12 +1,14 @@ - + + + diff --git a/.gitignore b/.gitignore index c80c6e0..5d32b94 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /dist /bin +/build diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs index c328801..fbb080d 100644 --- a/.settings/org.eclipse.jdt.core.prefs +++ b/.settings/org.eclipse.jdt.core.prefs @@ -88,7 +88,7 @@ org.eclipse.jdt.core.formatter.indent_empty_lines=false org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=true org.eclipse.jdt.core.formatter.indentation.size=4 org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert diff --git a/build.properties b/build.properties new file mode 100644 index 0000000..8bedfca --- /dev/null +++ b/build.properties @@ -0,0 +1,3 @@ +product.name=kiss4web +product.revision.major=0 +product.revision.minor=2 diff --git a/build.xml b/build.xml index 2637adc..5ec2c6d 100644 --- a/build.xml +++ b/build.xml @@ -1,38 +1,96 @@ - - - - - + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + Type ant -p + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + + + + + + + + + - - - - - + + + + + - - + + + + - + diff --git a/lib/README b/lib/README new file mode 100644 index 0000000..9e03890 --- /dev/null +++ b/lib/README @@ -0,0 +1,9 @@ +Description of used libraries: +- commons-codec: digest tools. +- commons-fileupload: +- commons-io: +- devinsy-utils: util tools +- hamcrest-core: required by junit +- junit: unit tests API +- log4j: log API +- servlet-api: servlet API diff --git a/lib/commons-io-1.4.jar b/lib/commons-io-1.4.jar deleted file mode 100644 index 133dc6c..0000000 Binary files a/lib/commons-io-1.4.jar and /dev/null differ diff --git a/lib/hamcrest-core-1.3-sources.jar b/lib/hamcrest-core-1.3-sources.jar new file mode 100644 index 0000000..c3c110b Binary files /dev/null and b/lib/hamcrest-core-1.3-sources.jar differ diff --git a/lib/hamcrest-core-1.3.jar b/lib/hamcrest-core-1.3.jar new file mode 100644 index 0000000..9d5fe16 Binary files /dev/null and b/lib/hamcrest-core-1.3.jar differ diff --git a/lib/junit-4.11-sources.jar b/lib/junit-4.11-sources.jar new file mode 100644 index 0000000..bab4cdd Binary files /dev/null and b/lib/junit-4.11-sources.jar differ diff --git a/lib/junit-4.11.jar b/lib/junit-4.11.jar new file mode 100644 index 0000000..aaf7444 Binary files /dev/null and b/lib/junit-4.11.jar differ diff --git a/src/fr/devinsy/util/web/SimpleSecurityAgent.java b/src/fr/devinsy/util/web/SimpleSecurityAgent.java index 6cc6dcc..fb17e72 100644 --- a/src/fr/devinsy/util/web/SimpleSecurityAgent.java +++ b/src/fr/devinsy/util/web/SimpleSecurityAgent.java @@ -3,6 +3,8 @@ package fr.devinsy.util.web; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import org.apache.commons.codec.digest.DigestUtils; + import fr.devinsy.kiss4web.CookieHelper; /** @@ -147,7 +149,7 @@ public class SimpleSecurityAgent { String result; - result = org.apache.commons.codec.digest.DigestUtils.md5Hex(source); + result = DigestUtils.md5Hex(source); // return (result); diff --git a/tests/FooTester.java b/test/FooPlayer.java similarity index 95% rename from tests/FooTester.java rename to test/FooPlayer.java index c598806..d8dbf7f 100644 --- a/tests/FooTester.java +++ b/test/FooPlayer.java @@ -7,7 +7,7 @@ import fr.devinsy.kiss4web.ServletDispatcher; /** * */ -class FooTester +class FooPlayer { static private org.apache.log4j.Logger logger; @@ -32,7 +32,7 @@ class FooTester logger.info("... done."); logger.debug("Exit"); - logger = org.apache.log4j.Logger.getLogger(FooTester.class.getName()); + logger = org.apache.log4j.Logger.getLogger(FooPlayer.class.getName()); } /** diff --git a/test/one/Foo2Test.java b/test/one/Foo2Test.java new file mode 100644 index 0000000..0b98fdf --- /dev/null +++ b/test/one/Foo2Test.java @@ -0,0 +1,21 @@ +package one; + +import org.junit.Test; + +public class Foo2Test +{ + // private Logger logger = + // LoggerFactory.getLogger(PdfGenerationAmqpServiceInjectedTest.class); + + /** + * + */ + @Test + public void test2a() + { + // logger.debug("===== test starting..."); + + // logger.debug("===== test done."); + } + +}