Prázdné třídy + build.xml.
authorFrantišek Kučera <franta-hg@frantovo.cz>
Thu, 21 Jul 2011 20:15:57 +0200
changeset 2d4a1ac5d5fc5
parent 1 e32f02371a63
child 3 f08e57ab4480
Prázdné třídy + build.xml.
java/sql-java-prihlasovani/build.xml
java/sql-java-prihlasovani/src/cz/frantovo/jaas/sql/SQLLoginModul.java
java/sql-java-prihlasovani/src/cz/frantovo/jaas/sql/SQLRealm.java
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/java/sql-java-prihlasovani/build.xml	Thu Jul 21 20:15:57 2011 +0200
     1.3 @@ -0,0 +1,74 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<!-- You may freely edit this file. See commented blocks below for -->
     1.6 +<!-- some examples of how to customize the build. -->
     1.7 +<!-- (If you delete it and reopen the project it will be recreated.) -->
     1.8 +<!-- By default, only the Clean and Build commands use this build script. -->
     1.9 +<!-- Commands such as Run, Debug, and Test only use this build script if -->
    1.10 +<!-- the Compile on Save feature is turned off for the project. -->
    1.11 +<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
    1.12 +<!-- in the project's Project Properties dialog box.-->
    1.13 +<project name="sql-java-prihlasovani" default="default" basedir=".">
    1.14 +    <description>Builds, tests, and runs the project sql-java-prihlasovani.</description>
    1.15 +    <import file="nbproject/build-impl.xml"/>
    1.16 +    <!--
    1.17 +
    1.18 +    There exist several targets which are by default empty and which can be 
    1.19 +    used for execution of your tasks. These targets are usually executed 
    1.20 +    before and after some main targets. They are: 
    1.21 +
    1.22 +      -pre-init:                 called before initialization of project properties
    1.23 +      -post-init:                called after initialization of project properties
    1.24 +      -pre-compile:              called before javac compilation
    1.25 +      -post-compile:             called after javac compilation
    1.26 +      -pre-compile-single:       called before javac compilation of single file
    1.27 +      -post-compile-single:      called after javac compilation of single file
    1.28 +      -pre-compile-test:         called before javac compilation of JUnit tests
    1.29 +      -post-compile-test:        called after javac compilation of JUnit tests
    1.30 +      -pre-compile-test-single:  called before javac compilation of single JUnit test
    1.31 +      -post-compile-test-single: called after javac compilation of single JUunit test
    1.32 +      -pre-jar:                  called before JAR building
    1.33 +      -post-jar:                 called after JAR building
    1.34 +      -post-clean:               called after cleaning build products
    1.35 +
    1.36 +    (Targets beginning with '-' are not intended to be called on their own.)
    1.37 +
    1.38 +    Example of inserting an obfuscator after compilation could look like this:
    1.39 +
    1.40 +        <target name="-post-compile">
    1.41 +            <obfuscate>
    1.42 +                <fileset dir="${build.classes.dir}"/>
    1.43 +            </obfuscate>
    1.44 +        </target>
    1.45 +
    1.46 +    For list of available properties check the imported 
    1.47 +    nbproject/build-impl.xml file. 
    1.48 +
    1.49 +
    1.50 +    Another way to customize the build is by overriding existing main targets.
    1.51 +    The targets of interest are: 
    1.52 +
    1.53 +      -init-macrodef-javac:     defines macro for javac compilation
    1.54 +      -init-macrodef-junit:     defines macro for junit execution
    1.55 +      -init-macrodef-debug:     defines macro for class debugging
    1.56 +      -init-macrodef-java:      defines macro for class execution
    1.57 +      -do-jar-with-manifest:    JAR building (if you are using a manifest)
    1.58 +      -do-jar-without-manifest: JAR building (if you are not using a manifest)
    1.59 +      run:                      execution of project 
    1.60 +      -javadoc-build:           Javadoc generation
    1.61 +      test-report:              JUnit report generation
    1.62 +
    1.63 +    An example of overriding the target for project execution could look like this:
    1.64 +
    1.65 +        <target name="run" depends="sql-java-prihlasovani-impl.jar">
    1.66 +            <exec dir="bin" executable="launcher.exe">
    1.67 +                <arg file="${dist.jar}"/>
    1.68 +            </exec>
    1.69 +        </target>
    1.70 +
    1.71 +    Notice that the overridden target depends on the jar target and not only on 
    1.72 +    the compile target as the regular run target does. Again, for a list of available 
    1.73 +    properties which you can use, check the target you are overriding in the
    1.74 +    nbproject/build-impl.xml file. 
    1.75 +
    1.76 +    -->
    1.77 +</project>
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/java/sql-java-prihlasovani/src/cz/frantovo/jaas/sql/SQLLoginModul.java	Thu Jul 21 20:15:57 2011 +0200
     2.3 @@ -0,0 +1,11 @@
     2.4 +package cz.frantovo.jaas.sql;
     2.5 +
     2.6 +import com.sun.appserv.security.AppservPasswordLoginModule;
     2.7 +
     2.8 +/**
     2.9 + *
    2.10 + * TODO: později bude potomkem <code>com.sun.appserv.security.AbstractLoginModule</code>
    2.11 + * @author fiki
    2.12 + */
    2.13 +public class SQLLoginModul extends AppservPasswordLoginModule {
    2.14 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/java/sql-java-prihlasovani/src/cz/frantovo/jaas/sql/SQLRealm.java	Thu Jul 21 20:15:57 2011 +0200
     3.3 @@ -0,0 +1,23 @@
     3.4 +package cz.frantovo.jaas.sql;
     3.5 +
     3.6 +import com.sun.appserv.security.AppservRealm;
     3.7 +import com.sun.enterprise.security.auth.realm.InvalidOperationException;
     3.8 +import com.sun.enterprise.security.auth.realm.NoSuchUserException;
     3.9 +import java.util.Enumeration;
    3.10 +
    3.11 +/**
    3.12 + *
    3.13 + * @author fiki
    3.14 + */
    3.15 +public class SQLRealm extends AppservRealm {
    3.16 +
    3.17 +	@Override
    3.18 +	public String getAuthType() {
    3.19 +		throw new UnsupportedOperationException("Not supported yet.");
    3.20 +	}
    3.21 +
    3.22 +	@Override
    3.23 +	public Enumeration getGroupNames(String string) throws InvalidOperationException, NoSuchUserException {
    3.24 +		throw new UnsupportedOperationException("Not supported yet.");
    3.25 +	}
    3.26 +}