You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by Ilias Stergiou <is...@yahoo.co.uk> on 2004/02/25 20:17:19 UTC
JdbcAuthenticator
Hello all,
please find attached for your consideration
- a JdbcAthenticator that authenticates users using credentials from the
database
- the JdbcAuthenticatorTest.java, a junit test case
- a build.xml diff for adding the tasks that run and compile the test case
- a JdbcAuthenticator HowTo
The source code has been checkstyled and the howto is in Forrest format,
Ilias
Index: build.xml
===================================================================
RCS file: /home/cvspublic/ws-juddi/build.xml,v
retrieving revision 1.3
diff -u -r1.3 build.xml
--- build.xml 2 Feb 2004 21:55:30 -0000 1.3
+++ build.xml 25 Feb 2004 19:09:01 -0000
@@ -407,6 +407,44 @@
</java>
</target>
<!--
=================================================================== -->
+ <!-- Compiles JdbcAthenticator
Tests -->
+ <!--
=================================================================== -->
+ <target name="compile-jdbcauth-tests" depends="jar">
+ <mkdir dir="${build.dir}/unit/classes"/>
+ <javac
+ destdir="${build.dir}/unit/classes"
+ debug="${compile.debug}"
+ deprecation="${compile.deprecation}"
+ optimize="${compile.optimize}">
+ <classpath refid="project.classpath"/>
+ <src path="${src.dir}/junit"/>
+ </javac>
+ </target>
+ <!--
=================================================================== -->
+ <!-- Runs JdbcAthenticator
Tests -->
+ <!--
=================================================================== -->
+ <target name="run-jdbcauth-tests" depends="compile-uddi4j-tests">
+ <java classname="${test.runner}" fork="true">
+ <jvmarg
value="-Dorg.uddi4j.TransportClassName=org.uddi4j.transport.ApacheAxisTransport"/>
+ <arg value="org.apache.juddi.auth.JdbcAuthenticatorTest"/>
+ <classpath>
+ <pathelement location="${lib.dir}/uddi4j.jar"/>
+ <pathelement location="${lib.dir}/junit.jar"/>
+ <pathelement location="${lib.dir}/axis.jar"/>
+ <pathelement location="${lib.dir}/jaxrpc.jar"/>
+ <pathelement location="${lib.dir}/saaj.jar"/>
+ <pathelement location="${lib.dir}/commons-logging.jar"/>
+ <pathelement location="${lib.dir}/commons-discovery.jar"/>
+ <pathelement
location="${lib.dir}/commons-collections.jar"/>
+ <pathelement location="${lib.dir}/commons-dbcp.jar"/>
+ <pathelement location="${lib.dir}/commons-pool.jar"/>
+ <pathelement location="${build.dir}/juddi.jar"/>
+ <pathelement location="${build.dir}/unit/classes"/>
+ <pathelement location="${build.dir}/${jar.file}"/>
+ </classpath>
+ </java>
+ </target>
+ <!--
=================================================================== -->
<!-- Creates the source
distribution -->
<!--
=================================================================== -->
<target name="source" depends="javadoc">