Caesarova šifra – jednoduchá GUI aplikace pro šifrování a dešifrování.
authorFrantišek Kučera <franta-hg@frantovo.cz>
Sat, 22 Jun 2013 16:00:39 +0200
changeset 19c681a3a6cbac
parent 18 b356e7c9211f
child 20 63b496ae04f9
Caesarova šifra – jednoduchá GUI aplikace pro šifrování a dešifrování.
java/CaesarovaŠifra/build.xml
java/CaesarovaŠifra/manifest.mf
java/CaesarovaŠifra/nbproject/build-impl.xml
java/CaesarovaŠifra/nbproject/genfiles.properties
java/CaesarovaŠifra/nbproject/project.properties
java/CaesarovaŠifra/nbproject/project.xml
java/CaesarovaŠifra/src/cz/frantovo/příklady/Caesar.java
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/java/CaesarovaŠifra/build.xml	Sat Jun 22 16:00:39 2013 +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="CaesarovaŠifra" default="default" basedir=".">
    1.14 +    <description>Builds, tests, and runs the project CaesarovaŠifra.</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="CaesarovaŠifra-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/CaesarovaŠifra/manifest.mf	Sat Jun 22 16:00:39 2013 +0200
     2.3 @@ -0,0 +1,3 @@
     2.4 +Manifest-Version: 1.0
     2.5 +X-COMMENT: Main-Class will be added automatically by build
     2.6 +
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/java/CaesarovaŠifra/nbproject/build-impl.xml	Sat Jun 22 16:00:39 2013 +0200
     3.3 @@ -0,0 +1,1411 @@
     3.4 +<?xml version="1.0" encoding="UTF-8"?>
     3.5 +<!--
     3.6 +*** GENERATED FROM project.xml - DO NOT EDIT  ***
     3.7 +***         EDIT ../build.xml INSTEAD         ***
     3.8 +
     3.9 +For the purpose of easier reading the script
    3.10 +is divided into following sections:
    3.11 +
    3.12 +  - initialization
    3.13 +  - compilation
    3.14 +  - jar
    3.15 +  - execution
    3.16 +  - debugging
    3.17 +  - javadoc
    3.18 +  - test compilation
    3.19 +  - test execution
    3.20 +  - test debugging
    3.21 +  - applet
    3.22 +  - cleanup
    3.23 +
    3.24 +        -->
    3.25 +<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="CaesarovaŠifra-impl">
    3.26 +    <fail message="Please build using Ant 1.8.0 or higher.">
    3.27 +        <condition>
    3.28 +            <not>
    3.29 +                <antversion atleast="1.8.0"/>
    3.30 +            </not>
    3.31 +        </condition>
    3.32 +    </fail>
    3.33 +    <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
    3.34 +    <!-- 
    3.35 +                ======================
    3.36 +                INITIALIZATION SECTION 
    3.37 +                ======================
    3.38 +            -->
    3.39 +    <target name="-pre-init">
    3.40 +        <!-- Empty placeholder for easier customization. -->
    3.41 +        <!-- You can override this target in the ../build.xml file. -->
    3.42 +    </target>
    3.43 +    <target depends="-pre-init" name="-init-private">
    3.44 +        <property file="nbproject/private/config.properties"/>
    3.45 +        <property file="nbproject/private/configs/${config}.properties"/>
    3.46 +        <property file="nbproject/private/private.properties"/>
    3.47 +    </target>
    3.48 +    <target depends="-pre-init,-init-private" name="-init-user">
    3.49 +        <property file="${user.properties.file}"/>
    3.50 +        <!-- The two properties below are usually overridden -->
    3.51 +        <!-- by the active platform. Just a fallback. -->
    3.52 +        <property name="default.javac.source" value="1.4"/>
    3.53 +        <property name="default.javac.target" value="1.4"/>
    3.54 +    </target>
    3.55 +    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
    3.56 +        <property file="nbproject/configs/${config}.properties"/>
    3.57 +        <property file="nbproject/project.properties"/>
    3.58 +    </target>
    3.59 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
    3.60 +        <available file="${manifest.file}" property="manifest.available"/>
    3.61 +        <condition property="splashscreen.available">
    3.62 +            <and>
    3.63 +                <not>
    3.64 +                    <equals arg1="${application.splash}" arg2="" trim="true"/>
    3.65 +                </not>
    3.66 +                <available file="${application.splash}"/>
    3.67 +            </and>
    3.68 +        </condition>
    3.69 +        <condition property="main.class.available">
    3.70 +            <and>
    3.71 +                <isset property="main.class"/>
    3.72 +                <not>
    3.73 +                    <equals arg1="${main.class}" arg2="" trim="true"/>
    3.74 +                </not>
    3.75 +            </and>
    3.76 +        </condition>
    3.77 +        <condition property="manifest.available+main.class">
    3.78 +            <and>
    3.79 +                <isset property="manifest.available"/>
    3.80 +                <isset property="main.class.available"/>
    3.81 +            </and>
    3.82 +        </condition>
    3.83 +        <condition property="do.archive">
    3.84 +            <not>
    3.85 +                <istrue value="${jar.archive.disabled}"/>
    3.86 +            </not>
    3.87 +        </condition>
    3.88 +        <condition property="do.mkdist">
    3.89 +            <and>
    3.90 +                <isset property="do.archive"/>
    3.91 +                <isset property="libs.CopyLibs.classpath"/>
    3.92 +                <not>
    3.93 +                    <istrue value="${mkdist.disabled}"/>
    3.94 +                </not>
    3.95 +            </and>
    3.96 +        </condition>
    3.97 +        <condition property="manifest.available+main.class+mkdist.available">
    3.98 +            <and>
    3.99 +                <istrue value="${manifest.available+main.class}"/>
   3.100 +                <isset property="do.mkdist"/>
   3.101 +            </and>
   3.102 +        </condition>
   3.103 +        <condition property="do.archive+manifest.available">
   3.104 +            <and>
   3.105 +                <isset property="manifest.available"/>
   3.106 +                <istrue value="${do.archive}"/>
   3.107 +            </and>
   3.108 +        </condition>
   3.109 +        <condition property="do.archive+main.class.available">
   3.110 +            <and>
   3.111 +                <isset property="main.class.available"/>
   3.112 +                <istrue value="${do.archive}"/>
   3.113 +            </and>
   3.114 +        </condition>
   3.115 +        <condition property="do.archive+splashscreen.available">
   3.116 +            <and>
   3.117 +                <isset property="splashscreen.available"/>
   3.118 +                <istrue value="${do.archive}"/>
   3.119 +            </and>
   3.120 +        </condition>
   3.121 +        <condition property="do.archive+manifest.available+main.class">
   3.122 +            <and>
   3.123 +                <istrue value="${manifest.available+main.class}"/>
   3.124 +                <istrue value="${do.archive}"/>
   3.125 +            </and>
   3.126 +        </condition>
   3.127 +        <condition property="manifest.available-mkdist.available">
   3.128 +            <or>
   3.129 +                <istrue value="${manifest.available}"/>
   3.130 +                <isset property="do.mkdist"/>
   3.131 +            </or>
   3.132 +        </condition>
   3.133 +        <condition property="manifest.available+main.class-mkdist.available">
   3.134 +            <or>
   3.135 +                <istrue value="${manifest.available+main.class}"/>
   3.136 +                <isset property="do.mkdist"/>
   3.137 +            </or>
   3.138 +        </condition>
   3.139 +        <condition property="have.tests">
   3.140 +            <or>
   3.141 +                <available file="${test.src.dir}"/>
   3.142 +            </or>
   3.143 +        </condition>
   3.144 +        <condition property="have.sources">
   3.145 +            <or>
   3.146 +                <available file="${src.dir}"/>
   3.147 +            </or>
   3.148 +        </condition>
   3.149 +        <condition property="netbeans.home+have.tests">
   3.150 +            <and>
   3.151 +                <isset property="netbeans.home"/>
   3.152 +                <isset property="have.tests"/>
   3.153 +            </and>
   3.154 +        </condition>
   3.155 +        <condition property="no.javadoc.preview">
   3.156 +            <and>
   3.157 +                <isset property="javadoc.preview"/>
   3.158 +                <isfalse value="${javadoc.preview}"/>
   3.159 +            </and>
   3.160 +        </condition>
   3.161 +        <property name="run.jvmargs" value=""/>
   3.162 +        <property name="run.jvmargs.ide" value=""/>
   3.163 +        <property name="javac.compilerargs" value=""/>
   3.164 +        <property name="work.dir" value="${basedir}"/>
   3.165 +        <condition property="no.deps">
   3.166 +            <and>
   3.167 +                <istrue value="${no.dependencies}"/>
   3.168 +            </and>
   3.169 +        </condition>
   3.170 +        <property name="javac.debug" value="true"/>
   3.171 +        <property name="javadoc.preview" value="true"/>
   3.172 +        <property name="application.args" value=""/>
   3.173 +        <property name="source.encoding" value="${file.encoding}"/>
   3.174 +        <property name="runtime.encoding" value="${source.encoding}"/>
   3.175 +        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
   3.176 +            <and>
   3.177 +                <isset property="javadoc.encoding"/>
   3.178 +                <not>
   3.179 +                    <equals arg1="${javadoc.encoding}" arg2=""/>
   3.180 +                </not>
   3.181 +            </and>
   3.182 +        </condition>
   3.183 +        <property name="javadoc.encoding.used" value="${source.encoding}"/>
   3.184 +        <property name="includes" value="**"/>
   3.185 +        <property name="excludes" value=""/>
   3.186 +        <property name="do.depend" value="false"/>
   3.187 +        <condition property="do.depend.true">
   3.188 +            <istrue value="${do.depend}"/>
   3.189 +        </condition>
   3.190 +        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
   3.191 +        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
   3.192 +            <length length="0" string="${endorsed.classpath}" when="greater"/>
   3.193 +        </condition>
   3.194 +        <condition else="false" property="jdkBug6558476">
   3.195 +            <and>
   3.196 +                <matches pattern="1\.[56]" string="${java.specification.version}"/>
   3.197 +                <not>
   3.198 +                    <os family="unix"/>
   3.199 +                </not>
   3.200 +            </and>
   3.201 +        </condition>
   3.202 +        <property name="javac.fork" value="${jdkBug6558476}"/>
   3.203 +        <property name="jar.index" value="false"/>
   3.204 +        <property name="jar.index.metainf" value="${jar.index}"/>
   3.205 +        <property name="copylibs.rebase" value="true"/>
   3.206 +        <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
   3.207 +        <condition property="junit.available">
   3.208 +            <or>
   3.209 +                <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
   3.210 +                <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
   3.211 +            </or>
   3.212 +        </condition>
   3.213 +        <condition property="testng.available">
   3.214 +            <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
   3.215 +        </condition>
   3.216 +        <condition property="junit+testng.available">
   3.217 +            <and>
   3.218 +                <istrue value="${junit.available}"/>
   3.219 +                <istrue value="${testng.available}"/>
   3.220 +            </and>
   3.221 +        </condition>
   3.222 +        <condition else="testng" property="testng.mode" value="mixed">
   3.223 +            <istrue value="${junit+testng.available}"/>
   3.224 +        </condition>
   3.225 +        <condition else="" property="testng.debug.mode" value="-mixed">
   3.226 +            <istrue value="${junit+testng.available}"/>
   3.227 +        </condition>
   3.228 +    </target>
   3.229 +    <target name="-post-init">
   3.230 +        <!-- Empty placeholder for easier customization. -->
   3.231 +        <!-- You can override this target in the ../build.xml file. -->
   3.232 +    </target>
   3.233 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
   3.234 +        <fail unless="src.dir">Must set src.dir</fail>
   3.235 +        <fail unless="test.src.dir">Must set test.src.dir</fail>
   3.236 +        <fail unless="build.dir">Must set build.dir</fail>
   3.237 +        <fail unless="dist.dir">Must set dist.dir</fail>
   3.238 +        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
   3.239 +        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
   3.240 +        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
   3.241 +        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
   3.242 +        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
   3.243 +        <fail unless="dist.jar">Must set dist.jar</fail>
   3.244 +    </target>
   3.245 +    <target name="-init-macrodef-property">
   3.246 +        <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
   3.247 +            <attribute name="name"/>
   3.248 +            <attribute name="value"/>
   3.249 +            <sequential>
   3.250 +                <property name="@{name}" value="${@{value}}"/>
   3.251 +            </sequential>
   3.252 +        </macrodef>
   3.253 +    </target>
   3.254 +    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
   3.255 +        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
   3.256 +            <attribute default="${src.dir}" name="srcdir"/>
   3.257 +            <attribute default="${build.classes.dir}" name="destdir"/>
   3.258 +            <attribute default="${javac.classpath}" name="classpath"/>
   3.259 +            <attribute default="${javac.processorpath}" name="processorpath"/>
   3.260 +            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
   3.261 +            <attribute default="${includes}" name="includes"/>
   3.262 +            <attribute default="${excludes}" name="excludes"/>
   3.263 +            <attribute default="${javac.debug}" name="debug"/>
   3.264 +            <attribute default="${empty.dir}" name="sourcepath"/>
   3.265 +            <attribute default="${empty.dir}" name="gensrcdir"/>
   3.266 +            <element name="customize" optional="true"/>
   3.267 +            <sequential>
   3.268 +                <property location="${build.dir}/empty" name="empty.dir"/>
   3.269 +                <mkdir dir="${empty.dir}"/>
   3.270 +                <mkdir dir="@{apgeneratedsrcdir}"/>
   3.271 +                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
   3.272 +                    <src>
   3.273 +                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
   3.274 +                            <include name="*"/>
   3.275 +                        </dirset>
   3.276 +                    </src>
   3.277 +                    <classpath>
   3.278 +                        <path path="@{classpath}"/>
   3.279 +                    </classpath>
   3.280 +                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
   3.281 +                    <compilerarg line="${javac.compilerargs}"/>
   3.282 +                    <compilerarg value="-processorpath"/>
   3.283 +                    <compilerarg path="@{processorpath}:${empty.dir}"/>
   3.284 +                    <compilerarg line="${ap.processors.internal}"/>
   3.285 +                    <compilerarg line="${annotation.processing.processor.options}"/>
   3.286 +                    <compilerarg value="-s"/>
   3.287 +                    <compilerarg path="@{apgeneratedsrcdir}"/>
   3.288 +                    <compilerarg line="${ap.proc.none.internal}"/>
   3.289 +                    <customize/>
   3.290 +                </javac>
   3.291 +            </sequential>
   3.292 +        </macrodef>
   3.293 +    </target>
   3.294 +    <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
   3.295 +        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
   3.296 +            <attribute default="${src.dir}" name="srcdir"/>
   3.297 +            <attribute default="${build.classes.dir}" name="destdir"/>
   3.298 +            <attribute default="${javac.classpath}" name="classpath"/>
   3.299 +            <attribute default="${javac.processorpath}" name="processorpath"/>
   3.300 +            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
   3.301 +            <attribute default="${includes}" name="includes"/>
   3.302 +            <attribute default="${excludes}" name="excludes"/>
   3.303 +            <attribute default="${javac.debug}" name="debug"/>
   3.304 +            <attribute default="${empty.dir}" name="sourcepath"/>
   3.305 +            <attribute default="${empty.dir}" name="gensrcdir"/>
   3.306 +            <element name="customize" optional="true"/>
   3.307 +            <sequential>
   3.308 +                <property location="${build.dir}/empty" name="empty.dir"/>
   3.309 +                <mkdir dir="${empty.dir}"/>
   3.310 +                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
   3.311 +                    <src>
   3.312 +                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
   3.313 +                            <include name="*"/>
   3.314 +                        </dirset>
   3.315 +                    </src>
   3.316 +                    <classpath>
   3.317 +                        <path path="@{classpath}"/>
   3.318 +                    </classpath>
   3.319 +                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
   3.320 +                    <compilerarg line="${javac.compilerargs}"/>
   3.321 +                    <customize/>
   3.322 +                </javac>
   3.323 +            </sequential>
   3.324 +        </macrodef>
   3.325 +    </target>
   3.326 +    <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
   3.327 +        <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
   3.328 +            <attribute default="${src.dir}" name="srcdir"/>
   3.329 +            <attribute default="${build.classes.dir}" name="destdir"/>
   3.330 +            <attribute default="${javac.classpath}" name="classpath"/>
   3.331 +            <sequential>
   3.332 +                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
   3.333 +                    <classpath>
   3.334 +                        <path path="@{classpath}"/>
   3.335 +                    </classpath>
   3.336 +                </depend>
   3.337 +            </sequential>
   3.338 +        </macrodef>
   3.339 +        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
   3.340 +            <attribute default="${build.classes.dir}" name="destdir"/>
   3.341 +            <sequential>
   3.342 +                <fail unless="javac.includes">Must set javac.includes</fail>
   3.343 +                <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
   3.344 +                    <path>
   3.345 +                        <filelist dir="@{destdir}" files="${javac.includes}"/>
   3.346 +                    </path>
   3.347 +                    <globmapper from="*.java" to="*.class"/>
   3.348 +                </pathconvert>
   3.349 +                <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
   3.350 +                <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
   3.351 +                <delete>
   3.352 +                    <files includesfile="${javac.includesfile.binary}"/>
   3.353 +                </delete>
   3.354 +                <delete>
   3.355 +                    <fileset file="${javac.includesfile.binary}"/>
   3.356 +                </delete>
   3.357 +            </sequential>
   3.358 +        </macrodef>
   3.359 +    </target>
   3.360 +    <target if="${junit.available}" name="-init-macrodef-junit-init">
   3.361 +        <condition else="false" property="nb.junit.batch" value="true">
   3.362 +            <and>
   3.363 +                <istrue value="${junit.available}"/>
   3.364 +                <not>
   3.365 +                    <isset property="test.method"/>
   3.366 +                </not>
   3.367 +            </and>
   3.368 +        </condition>
   3.369 +        <condition else="false" property="nb.junit.single" value="true">
   3.370 +            <and>
   3.371 +                <istrue value="${junit.available}"/>
   3.372 +                <isset property="test.method"/>
   3.373 +            </and>
   3.374 +        </condition>
   3.375 +    </target>
   3.376 +    <target name="-init-test-properties">
   3.377 +        <property name="test.binaryincludes" value="&lt;nothing&gt;"/>
   3.378 +        <property name="test.binarytestincludes" value=""/>
   3.379 +        <property name="test.binaryexcludes" value=""/>
   3.380 +    </target>
   3.381 +    <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
   3.382 +        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
   3.383 +            <attribute default="${includes}" name="includes"/>
   3.384 +            <attribute default="${excludes}" name="excludes"/>
   3.385 +            <attribute default="**" name="testincludes"/>
   3.386 +            <attribute default="" name="testmethods"/>
   3.387 +            <element name="customize" optional="true"/>
   3.388 +            <sequential>
   3.389 +                <property name="junit.forkmode" value="perTest"/>
   3.390 +                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
   3.391 +                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
   3.392 +                    <syspropertyset>
   3.393 +                        <propertyref prefix="test-sys-prop."/>
   3.394 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   3.395 +                    </syspropertyset>
   3.396 +                    <formatter type="brief" usefile="false"/>
   3.397 +                    <formatter type="xml"/>
   3.398 +                    <jvmarg value="-ea"/>
   3.399 +                    <customize/>
   3.400 +                </junit>
   3.401 +            </sequential>
   3.402 +        </macrodef>
   3.403 +    </target>
   3.404 +    <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
   3.405 +        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
   3.406 +            <attribute default="${includes}" name="includes"/>
   3.407 +            <attribute default="${excludes}" name="excludes"/>
   3.408 +            <attribute default="**" name="testincludes"/>
   3.409 +            <attribute default="" name="testmethods"/>
   3.410 +            <element name="customize" optional="true"/>
   3.411 +            <sequential>
   3.412 +                <property name="junit.forkmode" value="perTest"/>
   3.413 +                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
   3.414 +                    <batchtest todir="${build.test.results.dir}">
   3.415 +                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
   3.416 +                            <filename name="@{testincludes}"/>
   3.417 +                        </fileset>
   3.418 +                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
   3.419 +                            <filename name="${test.binarytestincludes}"/>
   3.420 +                        </fileset>
   3.421 +                    </batchtest>
   3.422 +                    <syspropertyset>
   3.423 +                        <propertyref prefix="test-sys-prop."/>
   3.424 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   3.425 +                    </syspropertyset>
   3.426 +                    <formatter type="brief" usefile="false"/>
   3.427 +                    <formatter type="xml"/>
   3.428 +                    <jvmarg value="-ea"/>
   3.429 +                    <customize/>
   3.430 +                </junit>
   3.431 +            </sequential>
   3.432 +        </macrodef>
   3.433 +    </target>
   3.434 +    <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
   3.435 +    <target if="${testng.available}" name="-init-macrodef-testng">
   3.436 +        <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
   3.437 +            <attribute default="${includes}" name="includes"/>
   3.438 +            <attribute default="${excludes}" name="excludes"/>
   3.439 +            <attribute default="**" name="testincludes"/>
   3.440 +            <attribute default="" name="testmethods"/>
   3.441 +            <element name="customize" optional="true"/>
   3.442 +            <sequential>
   3.443 +                <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
   3.444 +                    <isset property="test.method"/>
   3.445 +                </condition>
   3.446 +                <union id="test.set">
   3.447 +                    <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
   3.448 +                        <filename name="@{testincludes}"/>
   3.449 +                    </fileset>
   3.450 +                </union>
   3.451 +                <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
   3.452 +                <testng classfilesetref="test.set" failureProperty="tests.failed" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="CaesarovaŠifra" testname="TestNG tests" workingDir="${work.dir}">
   3.453 +                    <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
   3.454 +                    <propertyset>
   3.455 +                        <propertyref prefix="test-sys-prop."/>
   3.456 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   3.457 +                    </propertyset>
   3.458 +                    <customize/>
   3.459 +                </testng>
   3.460 +            </sequential>
   3.461 +        </macrodef>
   3.462 +    </target>
   3.463 +    <target name="-init-macrodef-test-impl">
   3.464 +        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
   3.465 +            <attribute default="${includes}" name="includes"/>
   3.466 +            <attribute default="${excludes}" name="excludes"/>
   3.467 +            <attribute default="**" name="testincludes"/>
   3.468 +            <attribute default="" name="testmethods"/>
   3.469 +            <element implicit="true" name="customize" optional="true"/>
   3.470 +            <sequential>
   3.471 +                <echo>No tests executed.</echo>
   3.472 +            </sequential>
   3.473 +        </macrodef>
   3.474 +    </target>
   3.475 +    <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
   3.476 +        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
   3.477 +            <attribute default="${includes}" name="includes"/>
   3.478 +            <attribute default="${excludes}" name="excludes"/>
   3.479 +            <attribute default="**" name="testincludes"/>
   3.480 +            <attribute default="" name="testmethods"/>
   3.481 +            <element implicit="true" name="customize" optional="true"/>
   3.482 +            <sequential>
   3.483 +                <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
   3.484 +                    <customize/>
   3.485 +                </j2seproject3:junit>
   3.486 +            </sequential>
   3.487 +        </macrodef>
   3.488 +    </target>
   3.489 +    <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
   3.490 +        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
   3.491 +            <attribute default="${includes}" name="includes"/>
   3.492 +            <attribute default="${excludes}" name="excludes"/>
   3.493 +            <attribute default="**" name="testincludes"/>
   3.494 +            <attribute default="" name="testmethods"/>
   3.495 +            <element implicit="true" name="customize" optional="true"/>
   3.496 +            <sequential>
   3.497 +                <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
   3.498 +                    <customize/>
   3.499 +                </j2seproject3:testng>
   3.500 +            </sequential>
   3.501 +        </macrodef>
   3.502 +    </target>
   3.503 +    <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
   3.504 +        <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
   3.505 +            <attribute default="${includes}" name="includes"/>
   3.506 +            <attribute default="${excludes}" name="excludes"/>
   3.507 +            <attribute default="**" name="testincludes"/>
   3.508 +            <attribute default="" name="testmethods"/>
   3.509 +            <sequential>
   3.510 +                <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
   3.511 +                    <customize>
   3.512 +                        <classpath>
   3.513 +                            <path path="${run.test.classpath}"/>
   3.514 +                        </classpath>
   3.515 +                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   3.516 +                        <jvmarg line="${run.jvmargs}"/>
   3.517 +                        <jvmarg line="${run.jvmargs.ide}"/>
   3.518 +                    </customize>
   3.519 +                </j2seproject3:test-impl>
   3.520 +            </sequential>
   3.521 +        </macrodef>
   3.522 +    </target>
   3.523 +    <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
   3.524 +        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   3.525 +            <attribute default="${includes}" name="includes"/>
   3.526 +            <attribute default="${excludes}" name="excludes"/>
   3.527 +            <attribute default="**" name="testincludes"/>
   3.528 +            <attribute default="" name="testmethods"/>
   3.529 +            <element name="customize" optional="true"/>
   3.530 +            <sequential>
   3.531 +                <property name="junit.forkmode" value="perTest"/>
   3.532 +                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
   3.533 +                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
   3.534 +                    <syspropertyset>
   3.535 +                        <propertyref prefix="test-sys-prop."/>
   3.536 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   3.537 +                    </syspropertyset>
   3.538 +                    <formatter type="brief" usefile="false"/>
   3.539 +                    <formatter type="xml"/>
   3.540 +                    <jvmarg value="-ea"/>
   3.541 +                    <jvmarg line="${debug-args-line}"/>
   3.542 +                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   3.543 +                    <customize/>
   3.544 +                </junit>
   3.545 +            </sequential>
   3.546 +        </macrodef>
   3.547 +    </target>
   3.548 +    <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
   3.549 +        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   3.550 +            <attribute default="${includes}" name="includes"/>
   3.551 +            <attribute default="${excludes}" name="excludes"/>
   3.552 +            <attribute default="**" name="testincludes"/>
   3.553 +            <attribute default="" name="testmethods"/>
   3.554 +            <element name="customize" optional="true"/>
   3.555 +            <sequential>
   3.556 +                <property name="junit.forkmode" value="perTest"/>
   3.557 +                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
   3.558 +                    <batchtest todir="${build.test.results.dir}">
   3.559 +                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
   3.560 +                            <filename name="@{testincludes}"/>
   3.561 +                        </fileset>
   3.562 +                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
   3.563 +                            <filename name="${test.binarytestincludes}"/>
   3.564 +                        </fileset>
   3.565 +                    </batchtest>
   3.566 +                    <syspropertyset>
   3.567 +                        <propertyref prefix="test-sys-prop."/>
   3.568 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   3.569 +                    </syspropertyset>
   3.570 +                    <formatter type="brief" usefile="false"/>
   3.571 +                    <formatter type="xml"/>
   3.572 +                    <jvmarg value="-ea"/>
   3.573 +                    <jvmarg line="${debug-args-line}"/>
   3.574 +                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   3.575 +                    <customize/>
   3.576 +                </junit>
   3.577 +            </sequential>
   3.578 +        </macrodef>
   3.579 +    </target>
   3.580 +    <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
   3.581 +        <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
   3.582 +            <attribute default="${includes}" name="includes"/>
   3.583 +            <attribute default="${excludes}" name="excludes"/>
   3.584 +            <attribute default="**" name="testincludes"/>
   3.585 +            <attribute default="" name="testmethods"/>
   3.586 +            <element implicit="true" name="customize" optional="true"/>
   3.587 +            <sequential>
   3.588 +                <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
   3.589 +                    <customize/>
   3.590 +                </j2seproject3:junit-debug>
   3.591 +            </sequential>
   3.592 +        </macrodef>
   3.593 +    </target>
   3.594 +    <target if="${testng.available}" name="-init-macrodef-testng-debug">
   3.595 +        <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   3.596 +            <attribute default="${main.class}" name="testClass"/>
   3.597 +            <attribute default="" name="testMethod"/>
   3.598 +            <element name="customize2" optional="true"/>
   3.599 +            <sequential>
   3.600 +                <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
   3.601 +                    <isset property="test.method"/>
   3.602 +                </condition>
   3.603 +                <condition else="-suitename CaesarovaŠifra -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
   3.604 +                    <matches pattern=".*\.xml" string="@{testClass}"/>
   3.605 +                </condition>
   3.606 +                <delete dir="${build.test.results.dir}" quiet="true"/>
   3.607 +                <mkdir dir="${build.test.results.dir}"/>
   3.608 +                <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
   3.609 +                    <customize>
   3.610 +                        <customize2/>
   3.611 +                        <jvmarg value="-ea"/>
   3.612 +                        <arg line="${testng.debug.mode}"/>
   3.613 +                        <arg line="-d ${build.test.results.dir}"/>
   3.614 +                        <arg line="-listener org.testng.reporters.VerboseReporter"/>
   3.615 +                        <arg line="${testng.cmd.args}"/>
   3.616 +                    </customize>
   3.617 +                </j2seproject3:debug>
   3.618 +            </sequential>
   3.619 +        </macrodef>
   3.620 +    </target>
   3.621 +    <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
   3.622 +        <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
   3.623 +            <attribute default="${main.class}" name="testClass"/>
   3.624 +            <attribute default="" name="testMethod"/>
   3.625 +            <element implicit="true" name="customize2" optional="true"/>
   3.626 +            <sequential>
   3.627 +                <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
   3.628 +                    <customize2/>
   3.629 +                </j2seproject3:testng-debug>
   3.630 +            </sequential>
   3.631 +        </macrodef>
   3.632 +    </target>
   3.633 +    <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
   3.634 +        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   3.635 +            <attribute default="${includes}" name="includes"/>
   3.636 +            <attribute default="${excludes}" name="excludes"/>
   3.637 +            <attribute default="**" name="testincludes"/>
   3.638 +            <attribute default="" name="testmethods"/>
   3.639 +            <attribute default="${main.class}" name="testClass"/>
   3.640 +            <attribute default="" name="testMethod"/>
   3.641 +            <sequential>
   3.642 +                <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
   3.643 +                    <customize>
   3.644 +                        <classpath>
   3.645 +                            <path path="${run.test.classpath}"/>
   3.646 +                        </classpath>
   3.647 +                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   3.648 +                        <jvmarg line="${run.jvmargs}"/>
   3.649 +                        <jvmarg line="${run.jvmargs.ide}"/>
   3.650 +                    </customize>
   3.651 +                </j2seproject3:test-debug-impl>
   3.652 +            </sequential>
   3.653 +        </macrodef>
   3.654 +    </target>
   3.655 +    <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
   3.656 +        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   3.657 +            <attribute default="${includes}" name="includes"/>
   3.658 +            <attribute default="${excludes}" name="excludes"/>
   3.659 +            <attribute default="**" name="testincludes"/>
   3.660 +            <attribute default="" name="testmethods"/>
   3.661 +            <attribute default="${main.class}" name="testClass"/>
   3.662 +            <attribute default="" name="testMethod"/>
   3.663 +            <sequential>
   3.664 +                <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
   3.665 +                    <customize2>
   3.666 +                        <syspropertyset>
   3.667 +                            <propertyref prefix="test-sys-prop."/>
   3.668 +                            <mapper from="test-sys-prop.*" to="*" type="glob"/>
   3.669 +                        </syspropertyset>
   3.670 +                    </customize2>
   3.671 +                </j2seproject3:testng-debug-impl>
   3.672 +            </sequential>
   3.673 +        </macrodef>
   3.674 +    </target>
   3.675 +    <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
   3.676 +    <!--
   3.677 +                pre NB7.2 profiling section; consider it deprecated
   3.678 +            -->
   3.679 +    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
   3.680 +    <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
   3.681 +        <!-- Empty placeholder for easier customization. -->
   3.682 +        <!-- You can override this target in the ../build.xml file. -->
   3.683 +    </target>
   3.684 +    <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
   3.685 +        <!-- Empty placeholder for easier customization. -->
   3.686 +        <!-- You can override this target in the ../build.xml file. -->
   3.687 +    </target>
   3.688 +    <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
   3.689 +        <macrodef name="resolve">
   3.690 +            <attribute name="name"/>
   3.691 +            <attribute name="value"/>
   3.692 +            <sequential>
   3.693 +                <property name="@{name}" value="${env.@{value}}"/>
   3.694 +            </sequential>
   3.695 +        </macrodef>
   3.696 +        <macrodef name="profile">
   3.697 +            <attribute default="${main.class}" name="classname"/>
   3.698 +            <element name="customize" optional="true"/>
   3.699 +            <sequential>
   3.700 +                <property environment="env"/>
   3.701 +                <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
   3.702 +                <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
   3.703 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   3.704 +                    <jvmarg value="${profiler.info.jvmargs.agent}"/>
   3.705 +                    <jvmarg line="${profiler.info.jvmargs}"/>
   3.706 +                    <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
   3.707 +                    <arg line="${application.args}"/>
   3.708 +                    <classpath>
   3.709 +                        <path path="${run.classpath}"/>
   3.710 +                    </classpath>
   3.711 +                    <syspropertyset>
   3.712 +                        <propertyref prefix="run-sys-prop."/>
   3.713 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   3.714 +                    </syspropertyset>
   3.715 +                    <customize/>
   3.716 +                </java>
   3.717 +            </sequential>
   3.718 +        </macrodef>
   3.719 +    </target>
   3.720 +    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
   3.721 +        <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
   3.722 +        <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
   3.723 +    </target>
   3.724 +    <!--
   3.725 +                end of pre NB7.2 profiling section
   3.726 +            -->
   3.727 +    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
   3.728 +        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
   3.729 +            <attribute default="${main.class}" name="name"/>
   3.730 +            <attribute default="${debug.classpath}" name="classpath"/>
   3.731 +            <attribute default="" name="stopclassname"/>
   3.732 +            <sequential>
   3.733 +                <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
   3.734 +                    <classpath>
   3.735 +                        <path path="@{classpath}"/>
   3.736 +                    </classpath>
   3.737 +                </nbjpdastart>
   3.738 +            </sequential>
   3.739 +        </macrodef>
   3.740 +        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
   3.741 +            <attribute default="${build.classes.dir}" name="dir"/>
   3.742 +            <sequential>
   3.743 +                <nbjpdareload>
   3.744 +                    <fileset dir="@{dir}" includes="${fix.classes}">
   3.745 +                        <include name="${fix.includes}*.class"/>
   3.746 +                    </fileset>
   3.747 +                </nbjpdareload>
   3.748 +            </sequential>
   3.749 +        </macrodef>
   3.750 +    </target>
   3.751 +    <target name="-init-debug-args">
   3.752 +        <property name="version-output" value="java version &quot;${ant.java.version}"/>
   3.753 +        <condition property="have-jdk-older-than-1.4">
   3.754 +            <or>
   3.755 +                <contains string="${version-output}" substring="java version &quot;1.0"/>
   3.756 +                <contains string="${version-output}" substring="java version &quot;1.1"/>
   3.757 +                <contains string="${version-output}" substring="java version &quot;1.2"/>
   3.758 +                <contains string="${version-output}" substring="java version &quot;1.3"/>
   3.759 +            </or>
   3.760 +        </condition>
   3.761 +        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
   3.762 +            <istrue value="${have-jdk-older-than-1.4}"/>
   3.763 +        </condition>
   3.764 +        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
   3.765 +            <os family="windows"/>
   3.766 +        </condition>
   3.767 +        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
   3.768 +            <isset property="debug.transport"/>
   3.769 +        </condition>
   3.770 +    </target>
   3.771 +    <target depends="-init-debug-args" name="-init-macrodef-debug">
   3.772 +        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   3.773 +            <attribute default="${main.class}" name="classname"/>
   3.774 +            <attribute default="${debug.classpath}" name="classpath"/>
   3.775 +            <element name="customize" optional="true"/>
   3.776 +            <sequential>
   3.777 +                <java classname="@{classname}" dir="${work.dir}" fork="true">
   3.778 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   3.779 +                    <jvmarg line="${debug-args-line}"/>
   3.780 +                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   3.781 +                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
   3.782 +                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
   3.783 +                    <jvmarg line="${run.jvmargs}"/>
   3.784 +                    <jvmarg line="${run.jvmargs.ide}"/>
   3.785 +                    <classpath>
   3.786 +                        <path path="@{classpath}"/>
   3.787 +                    </classpath>
   3.788 +                    <syspropertyset>
   3.789 +                        <propertyref prefix="run-sys-prop."/>
   3.790 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   3.791 +                    </syspropertyset>
   3.792 +                    <customize/>
   3.793 +                </java>
   3.794 +            </sequential>
   3.795 +        </macrodef>
   3.796 +    </target>
   3.797 +    <target name="-init-macrodef-java">
   3.798 +        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
   3.799 +            <attribute default="${main.class}" name="classname"/>
   3.800 +            <attribute default="${run.classpath}" name="classpath"/>
   3.801 +            <attribute default="jvm" name="jvm"/>
   3.802 +            <element name="customize" optional="true"/>
   3.803 +            <sequential>
   3.804 +                <java classname="@{classname}" dir="${work.dir}" fork="true">
   3.805 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   3.806 +                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
   3.807 +                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
   3.808 +                    <jvmarg line="${run.jvmargs}"/>
   3.809 +                    <jvmarg line="${run.jvmargs.ide}"/>
   3.810 +                    <classpath>
   3.811 +                        <path path="@{classpath}"/>
   3.812 +                    </classpath>
   3.813 +                    <syspropertyset>
   3.814 +                        <propertyref prefix="run-sys-prop."/>
   3.815 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   3.816 +                    </syspropertyset>
   3.817 +                    <customize/>
   3.818 +                </java>
   3.819 +            </sequential>
   3.820 +        </macrodef>
   3.821 +    </target>
   3.822 +    <target name="-init-macrodef-copylibs">
   3.823 +        <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
   3.824 +            <attribute default="${manifest.file}" name="manifest"/>
   3.825 +            <element name="customize" optional="true"/>
   3.826 +            <sequential>
   3.827 +                <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
   3.828 +                <pathconvert property="run.classpath.without.build.classes.dir">
   3.829 +                    <path path="${run.classpath}"/>
   3.830 +                    <map from="${build.classes.dir.resolved}" to=""/>
   3.831 +                </pathconvert>
   3.832 +                <pathconvert pathsep=" " property="jar.classpath">
   3.833 +                    <path path="${run.classpath.without.build.classes.dir}"/>
   3.834 +                    <chainedmapper>
   3.835 +                        <flattenmapper/>
   3.836 +                        <filtermapper>
   3.837 +                            <replacestring from=" " to="%20"/>
   3.838 +                        </filtermapper>
   3.839 +                        <globmapper from="*" to="lib/*"/>
   3.840 +                    </chainedmapper>
   3.841 +                </pathconvert>
   3.842 +                <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
   3.843 +                <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
   3.844 +                    <fileset dir="${build.classes.dir}"/>
   3.845 +                    <manifest>
   3.846 +                        <attribute name="Class-Path" value="${jar.classpath}"/>
   3.847 +                        <customize/>
   3.848 +                    </manifest>
   3.849 +                </copylibs>
   3.850 +            </sequential>
   3.851 +        </macrodef>
   3.852 +    </target>
   3.853 +    <target name="-init-presetdef-jar">
   3.854 +        <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
   3.855 +            <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
   3.856 +                <j2seproject1:fileset dir="${build.classes.dir}"/>
   3.857 +            </jar>
   3.858 +        </presetdef>
   3.859 +    </target>
   3.860 +    <target name="-init-ap-cmdline-properties">
   3.861 +        <property name="annotation.processing.enabled" value="true"/>
   3.862 +        <property name="annotation.processing.processors.list" value=""/>
   3.863 +        <property name="annotation.processing.processor.options" value=""/>
   3.864 +        <property name="annotation.processing.run.all.processors" value="true"/>
   3.865 +        <property name="javac.processorpath" value="${javac.classpath}"/>
   3.866 +        <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
   3.867 +        <condition property="ap.supported.internal" value="true">
   3.868 +            <not>
   3.869 +                <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
   3.870 +            </not>
   3.871 +        </condition>
   3.872 +    </target>
   3.873 +    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
   3.874 +        <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
   3.875 +            <isfalse value="${annotation.processing.run.all.processors}"/>
   3.876 +        </condition>
   3.877 +        <condition else="" property="ap.proc.none.internal" value="-proc:none">
   3.878 +            <isfalse value="${annotation.processing.enabled}"/>
   3.879 +        </condition>
   3.880 +    </target>
   3.881 +    <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
   3.882 +        <property name="ap.cmd.line.internal" value=""/>
   3.883 +    </target>
   3.884 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-test,-init-macrodef-test-debug,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>
   3.885 +    <!--
   3.886 +                ===================
   3.887 +                COMPILATION SECTION
   3.888 +                ===================
   3.889 +            -->
   3.890 +    <target name="-deps-jar-init" unless="built-jar.properties">
   3.891 +        <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
   3.892 +        <delete file="${built-jar.properties}" quiet="true"/>
   3.893 +    </target>
   3.894 +    <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
   3.895 +        <echo level="warn" message="Cycle detected: CaesarovaŠifra was already built"/>
   3.896 +    </target>
   3.897 +    <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
   3.898 +        <mkdir dir="${build.dir}"/>
   3.899 +        <touch file="${built-jar.properties}" verbose="false"/>
   3.900 +        <property file="${built-jar.properties}" prefix="already.built.jar."/>
   3.901 +        <antcall target="-warn-already-built-jar"/>
   3.902 +        <propertyfile file="${built-jar.properties}">
   3.903 +            <entry key="${basedir}" value=""/>
   3.904 +        </propertyfile>
   3.905 +    </target>
   3.906 +    <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
   3.907 +    <target depends="init" name="-check-automatic-build">
   3.908 +        <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
   3.909 +    </target>
   3.910 +    <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
   3.911 +        <antcall target="clean"/>
   3.912 +    </target>
   3.913 +    <target depends="init,deps-jar" name="-pre-pre-compile">
   3.914 +        <mkdir dir="${build.classes.dir}"/>
   3.915 +    </target>
   3.916 +    <target name="-pre-compile">
   3.917 +        <!-- Empty placeholder for easier customization. -->
   3.918 +        <!-- You can override this target in the ../build.xml file. -->
   3.919 +    </target>
   3.920 +    <target if="do.depend.true" name="-compile-depend">
   3.921 +        <pathconvert property="build.generated.subdirs">
   3.922 +            <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
   3.923 +                <include name="*"/>
   3.924 +            </dirset>
   3.925 +        </pathconvert>
   3.926 +        <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
   3.927 +    </target>
   3.928 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
   3.929 +        <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
   3.930 +        <copy todir="${build.classes.dir}">
   3.931 +            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   3.932 +        </copy>
   3.933 +    </target>
   3.934 +    <target if="has.persistence.xml" name="-copy-persistence-xml">
   3.935 +        <mkdir dir="${build.classes.dir}/META-INF"/>
   3.936 +        <copy todir="${build.classes.dir}/META-INF">
   3.937 +            <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
   3.938 +        </copy>
   3.939 +    </target>
   3.940 +    <target name="-post-compile">
   3.941 +        <!-- Empty placeholder for easier customization. -->
   3.942 +        <!-- You can override this target in the ../build.xml file. -->
   3.943 +    </target>
   3.944 +    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
   3.945 +    <target name="-pre-compile-single">
   3.946 +        <!-- Empty placeholder for easier customization. -->
   3.947 +        <!-- You can override this target in the ../build.xml file. -->
   3.948 +    </target>
   3.949 +    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
   3.950 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   3.951 +        <j2seproject3:force-recompile/>
   3.952 +        <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
   3.953 +    </target>
   3.954 +    <target name="-post-compile-single">
   3.955 +        <!-- Empty placeholder for easier customization. -->
   3.956 +        <!-- You can override this target in the ../build.xml file. -->
   3.957 +    </target>
   3.958 +    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
   3.959 +    <!--
   3.960 +                ====================
   3.961 +                JAR BUILDING SECTION
   3.962 +                ====================
   3.963 +            -->
   3.964 +    <target depends="init" name="-pre-pre-jar">
   3.965 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
   3.966 +        <mkdir dir="${dist.jar.dir}"/>
   3.967 +    </target>
   3.968 +    <target name="-pre-jar">
   3.969 +        <!-- Empty placeholder for easier customization. -->
   3.970 +        <!-- You can override this target in the ../build.xml file. -->
   3.971 +    </target>
   3.972 +    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
   3.973 +        <j2seproject1:jar/>
   3.974 +    </target>
   3.975 +    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
   3.976 +        <j2seproject1:jar manifest="${manifest.file}"/>
   3.977 +    </target>
   3.978 +    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
   3.979 +        <j2seproject1:jar manifest="${manifest.file}">
   3.980 +            <j2seproject1:manifest>
   3.981 +                <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
   3.982 +            </j2seproject1:manifest>
   3.983 +        </j2seproject1:jar>
   3.984 +        <echo level="info">To run this application from the command line without Ant, try:</echo>
   3.985 +        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
   3.986 +        <property location="${dist.jar}" name="dist.jar.resolved"/>
   3.987 +        <pathconvert property="run.classpath.with.dist.jar">
   3.988 +            <path path="${run.classpath}"/>
   3.989 +            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
   3.990 +        </pathconvert>
   3.991 +        <echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
   3.992 +    </target>
   3.993 +    <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">
   3.994 +        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
   3.995 +        <touch file="${tmp.manifest.file}" verbose="false"/>
   3.996 +    </target>
   3.997 +    <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">
   3.998 +        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
   3.999 +        <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
  3.1000 +    </target>
  3.1001 +    <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+main.class.available" name="-do-jar-with-libraries-set-main">
  3.1002 +        <manifest file="${tmp.manifest.file}" mode="update">
  3.1003 +            <attribute name="Main-Class" value="${main.class}"/>
  3.1004 +        </manifest>
  3.1005 +    </target>
  3.1006 +    <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-with-libraries-set-splashscreen">
  3.1007 +        <basename file="${application.splash}" property="splashscreen.basename"/>
  3.1008 +        <mkdir dir="${build.classes.dir}/META-INF"/>
  3.1009 +        <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
  3.1010 +        <manifest file="${tmp.manifest.file}" mode="update">
  3.1011 +            <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
  3.1012 +        </manifest>
  3.1013 +    </target>
  3.1014 +    <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen" if="do.mkdist" name="-do-jar-with-libraries-pack">
  3.1015 +        <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
  3.1016 +        <echo level="info">To run this application from the command line without Ant, try:</echo>
  3.1017 +        <property location="${dist.jar}" name="dist.jar.resolved"/>
  3.1018 +        <echo level="info">java -jar "${dist.jar.resolved}"</echo>
  3.1019 +    </target>
  3.1020 +    <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">
  3.1021 +        <delete>
  3.1022 +            <fileset file="${tmp.manifest.file}"/>
  3.1023 +        </delete>
  3.1024 +    </target>
  3.1025 +    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/>
  3.1026 +    <target name="-post-jar">
  3.1027 +        <!-- Empty placeholder for easier customization. -->
  3.1028 +        <!-- You can override this target in the ../build.xml file. -->
  3.1029 +    </target>
  3.1030 +    <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
  3.1031 +    <!--
  3.1032 +                =================
  3.1033 +                EXECUTION SECTION
  3.1034 +                =================
  3.1035 +            -->
  3.1036 +    <target depends="init,compile" description="Run a main class." name="run">
  3.1037 +        <j2seproject1:java>
  3.1038 +            <customize>
  3.1039 +                <arg line="${application.args}"/>
  3.1040 +            </customize>
  3.1041 +        </j2seproject1:java>
  3.1042 +    </target>
  3.1043 +    <target name="-do-not-recompile">
  3.1044 +        <property name="javac.includes.binary" value=""/>
  3.1045 +    </target>
  3.1046 +    <target depends="init,compile-single" name="run-single">
  3.1047 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  3.1048 +        <j2seproject1:java classname="${run.class}"/>
  3.1049 +    </target>
  3.1050 +    <target depends="init,compile-test-single" name="run-test-with-main">
  3.1051 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  3.1052 +        <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
  3.1053 +    </target>
  3.1054 +    <!--
  3.1055 +                =================
  3.1056 +                DEBUGGING SECTION
  3.1057 +                =================
  3.1058 +            -->
  3.1059 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
  3.1060 +        <j2seproject1:nbjpdastart name="${debug.class}"/>
  3.1061 +    </target>
  3.1062 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
  3.1063 +        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
  3.1064 +    </target>
  3.1065 +    <target depends="init,compile" name="-debug-start-debuggee">
  3.1066 +        <j2seproject3:debug>
  3.1067 +            <customize>
  3.1068 +                <arg line="${application.args}"/>
  3.1069 +            </customize>
  3.1070 +        </j2seproject3:debug>
  3.1071 +    </target>
  3.1072 +    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
  3.1073 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
  3.1074 +        <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
  3.1075 +    </target>
  3.1076 +    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
  3.1077 +    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
  3.1078 +        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  3.1079 +        <j2seproject3:debug classname="${debug.class}"/>
  3.1080 +    </target>
  3.1081 +    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
  3.1082 +    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
  3.1083 +        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  3.1084 +        <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
  3.1085 +    </target>
  3.1086 +    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
  3.1087 +    <target depends="init" name="-pre-debug-fix">
  3.1088 +        <fail unless="fix.includes">Must set fix.includes</fail>
  3.1089 +        <property name="javac.includes" value="${fix.includes}.java"/>
  3.1090 +    </target>
  3.1091 +    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
  3.1092 +        <j2seproject1:nbjpdareload/>
  3.1093 +    </target>
  3.1094 +    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
  3.1095 +    <!--
  3.1096 +                =================
  3.1097 +                PROFILING SECTION
  3.1098 +                =================
  3.1099 +            -->
  3.1100 +    <!--
  3.1101 +                pre NB7.2 profiler integration
  3.1102 +            -->
  3.1103 +    <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
  3.1104 +        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
  3.1105 +        <nbprofiledirect>
  3.1106 +            <classpath>
  3.1107 +                <path path="${run.classpath}"/>
  3.1108 +            </classpath>
  3.1109 +        </nbprofiledirect>
  3.1110 +        <profile/>
  3.1111 +    </target>
  3.1112 +    <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
  3.1113 +        <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
  3.1114 +        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
  3.1115 +        <nbprofiledirect>
  3.1116 +            <classpath>
  3.1117 +                <path path="${run.classpath}"/>
  3.1118 +            </classpath>
  3.1119 +        </nbprofiledirect>
  3.1120 +        <profile classname="${profile.class}"/>
  3.1121 +    </target>
  3.1122 +    <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
  3.1123 +        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
  3.1124 +        <nbprofiledirect>
  3.1125 +            <classpath>
  3.1126 +                <path path="${run.classpath}"/>
  3.1127 +            </classpath>
  3.1128 +        </nbprofiledirect>
  3.1129 +        <profile classname="sun.applet.AppletViewer">
  3.1130 +            <customize>
  3.1131 +                <arg value="${applet.url}"/>
  3.1132 +            </customize>
  3.1133 +        </profile>
  3.1134 +    </target>
  3.1135 +    <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
  3.1136 +        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
  3.1137 +        <nbprofiledirect>
  3.1138 +            <classpath>
  3.1139 +                <path path="${run.test.classpath}"/>
  3.1140 +            </classpath>
  3.1141 +        </nbprofiledirect>
  3.1142 +        <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
  3.1143 +            <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
  3.1144 +            <jvmarg value="${profiler.info.jvmargs.agent}"/>
  3.1145 +            <jvmarg line="${profiler.info.jvmargs}"/>
  3.1146 +            <test name="${profile.class}"/>
  3.1147 +            <classpath>
  3.1148 +                <path path="${run.test.classpath}"/>
  3.1149 +            </classpath>
  3.1150 +            <syspropertyset>
  3.1151 +                <propertyref prefix="test-sys-prop."/>
  3.1152 +                <mapper from="test-sys-prop.*" to="*" type="glob"/>
  3.1153 +            </syspropertyset>
  3.1154 +            <formatter type="brief" usefile="false"/>
  3.1155 +            <formatter type="xml"/>
  3.1156 +        </junit>
  3.1157 +    </target>
  3.1158 +    <!--
  3.1159 +                end of pre NB72 profiling section
  3.1160 +            -->
  3.1161 +    <target if="netbeans.home" name="-profile-check">
  3.1162 +        <condition property="profiler.configured">
  3.1163 +            <or>
  3.1164 +                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
  3.1165 +                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
  3.1166 +            </or>
  3.1167 +        </condition>
  3.1168 +    </target>
  3.1169 +    <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
  3.1170 +        <startprofiler/>
  3.1171 +        <antcall target="run"/>
  3.1172 +    </target>
  3.1173 +    <target depends="-profile-check,-profile-single-pre72" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-single" unless="profiler.info.jvmargs.agent">
  3.1174 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  3.1175 +        <startprofiler/>
  3.1176 +        <antcall target="run-single"/>
  3.1177 +    </target>
  3.1178 +    <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
  3.1179 +    <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
  3.1180 +        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
  3.1181 +        <startprofiler/>
  3.1182 +        <antcall target="test-single"/>
  3.1183 +    </target>
  3.1184 +    <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
  3.1185 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  3.1186 +        <startprofiler/>
  3.1187 +        <antcal target="run-test-with-main"/>
  3.1188 +    </target>
  3.1189 +    <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
  3.1190 +        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  3.1191 +        <startprofiler/>
  3.1192 +        <antcall target="run-applet"/>
  3.1193 +    </target>
  3.1194 +    <!--
  3.1195 +                ===============
  3.1196 +                JAVADOC SECTION
  3.1197 +                ===============
  3.1198 +            -->
  3.1199 +    <target depends="init" if="have.sources" name="-javadoc-build">
  3.1200 +        <mkdir dir="${dist.javadoc.dir}"/>
  3.1201 +        <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
  3.1202 +            <and>
  3.1203 +                <isset property="endorsed.classpath.cmd.line.arg"/>
  3.1204 +                <not>
  3.1205 +                    <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
  3.1206 +                </not>
  3.1207 +            </and>
  3.1208 +        </condition>
  3.1209 +        <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
  3.1210 +            <classpath>
  3.1211 +                <path path="${javac.classpath}"/>
  3.1212 +            </classpath>
  3.1213 +            <fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}">
  3.1214 +                <filename name="**/*.java"/>
  3.1215 +            </fileset>
  3.1216 +            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  3.1217 +                <include name="**/*.java"/>
  3.1218 +                <exclude name="*.java"/>
  3.1219 +            </fileset>
  3.1220 +            <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
  3.1221 +        </javadoc>
  3.1222 +        <copy todir="${dist.javadoc.dir}">
  3.1223 +            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
  3.1224 +                <filename name="**/doc-files/**"/>
  3.1225 +            </fileset>
  3.1226 +            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  3.1227 +                <include name="**/doc-files/**"/>
  3.1228 +            </fileset>
  3.1229 +        </copy>
  3.1230 +    </target>
  3.1231 +    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
  3.1232 +        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
  3.1233 +    </target>
  3.1234 +    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
  3.1235 +    <!--
  3.1236 +                =========================
  3.1237 +                TEST COMPILATION SECTION
  3.1238 +                =========================
  3.1239 +            -->
  3.1240 +    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
  3.1241 +        <mkdir dir="${build.test.classes.dir}"/>
  3.1242 +    </target>
  3.1243 +    <target name="-pre-compile-test">
  3.1244 +        <!-- Empty placeholder for easier customization. -->
  3.1245 +        <!-- You can override this target in the ../build.xml file. -->
  3.1246 +    </target>
  3.1247 +    <target if="do.depend.true" name="-compile-test-depend">
  3.1248 +        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
  3.1249 +    </target>
  3.1250 +    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
  3.1251 +        <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/>
  3.1252 +        <copy todir="${build.test.classes.dir}">
  3.1253 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  3.1254 +        </copy>
  3.1255 +    </target>
  3.1256 +    <target name="-post-compile-test">
  3.1257 +        <!-- Empty placeholder for easier customization. -->
  3.1258 +        <!-- You can override this target in the ../build.xml file. -->
  3.1259 +    </target>
  3.1260 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
  3.1261 +    <target name="-pre-compile-test-single">
  3.1262 +        <!-- Empty placeholder for easier customization. -->
  3.1263 +        <!-- You can override this target in the ../build.xml file. -->
  3.1264 +    </target>
  3.1265 +    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
  3.1266 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  3.1267 +        <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
  3.1268 +        <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
  3.1269 +        <copy todir="${build.test.classes.dir}">
  3.1270 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  3.1271 +        </copy>
  3.1272 +    </target>
  3.1273 +    <target name="-post-compile-test-single">
  3.1274 +        <!-- Empty placeholder for easier customization. -->
  3.1275 +        <!-- You can override this target in the ../build.xml file. -->
  3.1276 +    </target>
  3.1277 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
  3.1278 +    <!--
  3.1279 +                =======================
  3.1280 +                TEST EXECUTION SECTION
  3.1281 +                =======================
  3.1282 +            -->
  3.1283 +    <target depends="init" if="have.tests" name="-pre-test-run">
  3.1284 +        <mkdir dir="${build.test.results.dir}"/>
  3.1285 +    </target>
  3.1286 +    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
  3.1287 +        <j2seproject3:test testincludes="**/*Test.java"/>
  3.1288 +    </target>
  3.1289 +    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
  3.1290 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  3.1291 +    </target>
  3.1292 +    <target depends="init" if="have.tests" name="test-report"/>
  3.1293 +    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
  3.1294 +    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
  3.1295 +    <target depends="init" if="have.tests" name="-pre-test-run-single">
  3.1296 +        <mkdir dir="${build.test.results.dir}"/>
  3.1297 +    </target>
  3.1298 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
  3.1299 +        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
  3.1300 +        <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
  3.1301 +    </target>
  3.1302 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
  3.1303 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  3.1304 +    </target>
  3.1305 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
  3.1306 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
  3.1307 +        <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
  3.1308 +        <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
  3.1309 +        <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
  3.1310 +    </target>
  3.1311 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
  3.1312 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  3.1313 +    </target>
  3.1314 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description="Run single unit test." name="test-single-method"/>
  3.1315 +    <!--
  3.1316 +                =======================
  3.1317 +                TEST DEBUGGING SECTION
  3.1318 +                =======================
  3.1319 +            -->
  3.1320 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
  3.1321 +        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
  3.1322 +        <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
  3.1323 +    </target>
  3.1324 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
  3.1325 +        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
  3.1326 +        <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
  3.1327 +        <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
  3.1328 +    </target>
  3.1329 +    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
  3.1330 +        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
  3.1331 +    </target>
  3.1332 +    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
  3.1333 +    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
  3.1334 +    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
  3.1335 +        <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
  3.1336 +    </target>
  3.1337 +    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
  3.1338 +    <!--
  3.1339 +                =========================
  3.1340 +                APPLET EXECUTION SECTION
  3.1341 +                =========================
  3.1342 +            -->
  3.1343 +    <target depends="init,compile-single" name="run-applet">
  3.1344 +        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  3.1345 +        <j2seproject1:java classname="sun.applet.AppletViewer">
  3.1346 +            <customize>
  3.1347 +                <arg value="${applet.url}"/>
  3.1348 +            </customize>
  3.1349 +        </j2seproject1:java>
  3.1350 +    </target>
  3.1351 +    <!--
  3.1352 +                =========================
  3.1353 +                APPLET DEBUGGING  SECTION
  3.1354 +                =========================
  3.1355 +            -->
  3.1356 +    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
  3.1357 +        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  3.1358 +        <j2seproject3:debug classname="sun.applet.AppletViewer">
  3.1359 +            <customize>
  3.1360 +                <arg value="${applet.url}"/>
  3.1361 +            </customize>
  3.1362 +        </j2seproject3:debug>
  3.1363 +    </target>
  3.1364 +    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
  3.1365 +    <!--
  3.1366 +                ===============
  3.1367 +                CLEANUP SECTION
  3.1368 +                ===============
  3.1369 +            -->
  3.1370 +    <target name="-deps-clean-init" unless="built-clean.properties">
  3.1371 +        <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
  3.1372 +        <delete file="${built-clean.properties}" quiet="true"/>
  3.1373 +    </target>
  3.1374 +    <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
  3.1375 +        <echo level="warn" message="Cycle detected: CaesarovaŠifra was already built"/>
  3.1376 +    </target>
  3.1377 +    <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
  3.1378 +        <mkdir dir="${build.dir}"/>
  3.1379 +        <touch file="${built-clean.properties}" verbose="false"/>
  3.1380 +        <property file="${built-clean.properties}" prefix="already.built.clean."/>
  3.1381 +        <antcall target="-warn-already-built-clean"/>
  3.1382 +        <propertyfile file="${built-clean.properties}">
  3.1383 +            <entry key="${basedir}" value=""/>
  3.1384 +        </propertyfile>
  3.1385 +    </target>
  3.1386 +    <target depends="init" name="-do-clean">
  3.1387 +        <delete dir="${build.dir}"/>
  3.1388 +        <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
  3.1389 +    </target>
  3.1390 +    <target name="-post-clean">
  3.1391 +        <!-- Empty placeholder for easier customization. -->
  3.1392 +        <!-- You can override this target in the ../build.xml file. -->
  3.1393 +    </target>
  3.1394 +    <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
  3.1395 +    <target name="-check-call-dep">
  3.1396 +        <property file="${call.built.properties}" prefix="already.built."/>
  3.1397 +        <condition property="should.call.dep">
  3.1398 +            <and>
  3.1399 +                <not>
  3.1400 +                    <isset property="already.built.${call.subproject}"/>
  3.1401 +                </not>
  3.1402 +                <available file="${call.script}"/>
  3.1403 +            </and>
  3.1404 +        </condition>
  3.1405 +    </target>
  3.1406 +    <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
  3.1407 +        <ant antfile="${call.script}" inheritall="false" target="${call.target}">
  3.1408 +            <propertyset>
  3.1409 +                <propertyref prefix="transfer."/>
  3.1410 +                <mapper from="transfer.*" to="*" type="glob"/>
  3.1411 +            </propertyset>
  3.1412 +        </ant>
  3.1413 +    </target>
  3.1414 +</project>
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/java/CaesarovaŠifra/nbproject/genfiles.properties	Sat Jun 22 16:00:39 2013 +0200
     4.3 @@ -0,0 +1,8 @@
     4.4 +build.xml.data.CRC32=c939b5a0
     4.5 +build.xml.script.CRC32=3140f660
     4.6 +build.xml.stylesheet.CRC32=28e38971@1.56.1.46
     4.7 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
     4.8 +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
     4.9 +nbproject/build-impl.xml.data.CRC32=c939b5a0
    4.10 +nbproject/build-impl.xml.script.CRC32=fac7e01a
    4.11 +nbproject/build-impl.xml.stylesheet.CRC32=c6d2a60f@1.56.1.46
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/java/CaesarovaŠifra/nbproject/project.properties	Sat Jun 22 16:00:39 2013 +0200
     5.3 @@ -0,0 +1,71 @@
     5.4 +annotation.processing.enabled=true
     5.5 +annotation.processing.enabled.in.editor=false
     5.6 +annotation.processing.processor.options=
     5.7 +annotation.processing.processors.list=
     5.8 +annotation.processing.run.all.processors=true
     5.9 +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
    5.10 +build.classes.dir=${build.dir}/classes
    5.11 +build.classes.excludes=**/*.java,**/*.form
    5.12 +# This directory is removed when the project is cleaned:
    5.13 +build.dir=build
    5.14 +build.generated.dir=${build.dir}/generated
    5.15 +build.generated.sources.dir=${build.dir}/generated-sources
    5.16 +# Only compile against the classpath explicitly listed here:
    5.17 +build.sysclasspath=ignore
    5.18 +build.test.classes.dir=${build.dir}/test/classes
    5.19 +build.test.results.dir=${build.dir}/test/results
    5.20 +# Uncomment to specify the preferred debugger connection transport:
    5.21 +#debug.transport=dt_socket
    5.22 +debug.classpath=\
    5.23 +    ${run.classpath}
    5.24 +debug.test.classpath=\
    5.25 +    ${run.test.classpath}
    5.26 +# This directory is removed when the project is cleaned:
    5.27 +dist.dir=dist
    5.28 +dist.jar=${dist.dir}/Caesarova_ifra.jar
    5.29 +dist.javadoc.dir=${dist.dir}/javadoc
    5.30 +excludes=
    5.31 +includes=**
    5.32 +jar.compress=false
    5.33 +javac.classpath=
    5.34 +# Space-separated list of extra javac options
    5.35 +javac.compilerargs=
    5.36 +javac.deprecation=false
    5.37 +javac.processorpath=\
    5.38 +    ${javac.classpath}
    5.39 +javac.source=1.7
    5.40 +javac.target=1.7
    5.41 +javac.test.classpath=\
    5.42 +    ${javac.classpath}:\
    5.43 +    ${build.classes.dir}
    5.44 +javac.test.processorpath=\
    5.45 +    ${javac.test.classpath}
    5.46 +javadoc.additionalparam=
    5.47 +javadoc.author=false
    5.48 +javadoc.encoding=${source.encoding}
    5.49 +javadoc.noindex=false
    5.50 +javadoc.nonavbar=false
    5.51 +javadoc.notree=false
    5.52 +javadoc.private=false
    5.53 +javadoc.splitindex=true
    5.54 +javadoc.use=true
    5.55 +javadoc.version=false
    5.56 +javadoc.windowtitle=
    5.57 +main.class=cz.frantovo.p\u0159\u00edklady.Caesar
    5.58 +manifest.file=manifest.mf
    5.59 +meta.inf.dir=${src.dir}/META-INF
    5.60 +mkdist.disabled=false
    5.61 +platform.active=default_platform
    5.62 +run.classpath=\
    5.63 +    ${javac.classpath}:\
    5.64 +    ${build.classes.dir}
    5.65 +# Space-separated list of JVM arguments used when running the project.
    5.66 +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
    5.67 +# To set system properties for unit tests define test-sys-prop.name=value:
    5.68 +run.jvmargs=
    5.69 +run.test.classpath=\
    5.70 +    ${javac.test.classpath}:\
    5.71 +    ${build.test.classes.dir}
    5.72 +source.encoding=UTF-8
    5.73 +src.dir=src
    5.74 +test.src.dir=test
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/java/CaesarovaŠifra/nbproject/project.xml	Sat Jun 22 16:00:39 2013 +0200
     6.3 @@ -0,0 +1,15 @@
     6.4 +<?xml version="1.0" encoding="UTF-8"?>
     6.5 +<project xmlns="http://www.netbeans.org/ns/project/1">
     6.6 +    <type>org.netbeans.modules.java.j2seproject</type>
     6.7 +    <configuration>
     6.8 +        <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
     6.9 +            <name>CaesarovaŠifra</name>
    6.10 +            <source-roots>
    6.11 +                <root id="src.dir"/>
    6.12 +            </source-roots>
    6.13 +            <test-roots>
    6.14 +                <root id="test.src.dir"/>
    6.15 +            </test-roots>
    6.16 +        </data>
    6.17 +    </configuration>
    6.18 +</project>
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/java/CaesarovaŠifra/src/cz/frantovo/příklady/Caesar.java	Sat Jun 22 16:00:39 2013 +0200
     7.3 @@ -0,0 +1,108 @@
     7.4 +package cz.frantovo.příklady;
     7.5 +
     7.6 +/**
     7.7 + * This program is free software: you can redistribute it and/or modify
     7.8 + * it under the terms of the GNU General Public License as published by
     7.9 + * the Free Software Foundation, either version 3 of the License, or
    7.10 + * (at your option) any later version.
    7.11 + *
    7.12 + * This program is distributed in the hope that it will be useful,
    7.13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    7.14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    7.15 + * GNU General Public License for more details.
    7.16 + *
    7.17 + * You should have received a copy of the GNU General Public License
    7.18 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
    7.19 + */
    7.20 +import java.awt.GridLayout;
    7.21 +import java.awt.HeadlessException;
    7.22 +import java.awt.event.ActionEvent;
    7.23 +import java.awt.event.ActionListener;
    7.24 +import java.util.ArrayList;
    7.25 +import java.util.Collections;
    7.26 +import java.util.List;
    7.27 +import javax.swing.JButton;
    7.28 +import javax.swing.JFrame;
    7.29 +import javax.swing.JLabel;
    7.30 +import javax.swing.JTextField;
    7.31 +
    7.32 +/**
    7.33 + * @author Ing. František Kučera (frantovo.cz)
    7.34 + */
    7.35 +public class Caesar extends JFrame {
    7.36 +
    7.37 +	private JTextField prostýText = new JTextField();
    7.38 +	private JTextField šifrovanýText = new JTextField();
    7.39 +	private JButton šifruj = new JButton("Šifruj");
    7.40 +	private JButton dešifruj = new JButton("Dešifruj");
    7.41 +	private static final char[] ABECEDA_ZNAKY = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".toCharArray();
    7.42 +	private static final List<Character> ABECEDA;
    7.43 +	private static final int SKOK = 3;
    7.44 +
    7.45 +	static {
    7.46 +		List<Character> abeceda = new ArrayList<>();
    7.47 +		for (char z : ABECEDA_ZNAKY) {
    7.48 +			abeceda.add(z);
    7.49 +		}
    7.50 +		ABECEDA = Collections.unmodifiableList(abeceda);
    7.51 +	}
    7.52 +
    7.53 +	public static void main(String[] args) {
    7.54 +		Caesar c = new Caesar();
    7.55 +		c.setVisible(true);
    7.56 +	}
    7.57 +
    7.58 +	public Caesar() throws HeadlessException {
    7.59 +		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    7.60 +		setTitle("Caesarova šifra");
    7.61 +		setLocationRelativeTo(null);
    7.62 +		setLayout(new GridLayout(3, 2));
    7.63 +		
    7.64 +		add(new JLabel("Prostý text"));
    7.65 +		add(prostýText);
    7.66 +
    7.67 +		add(new JLabel("Šifrovaný text"));
    7.68 +		add(šifrovanýText);
    7.69 +
    7.70 +		add(šifruj);
    7.71 +		add(dešifruj);
    7.72 +
    7.73 +		šifruj.addActionListener(new ActionListener() {
    7.74 +			@Override
    7.75 +			public void actionPerformed(ActionEvent e) {
    7.76 +				šifrovanýText.setText(posuň(prostýText.getText(), SKOK));
    7.77 +			}
    7.78 +		});
    7.79 +
    7.80 +		dešifruj.addActionListener(new ActionListener() {
    7.81 +			@Override
    7.82 +			public void actionPerformed(ActionEvent e) {
    7.83 +				prostýText.setText(posuň(šifrovanýText.getText(), -SKOK));
    7.84 +			}
    7.85 +		});
    7.86 +
    7.87 +		pack();
    7.88 +	}
    7.89 +
    7.90 +	private static String posuň(String text, int oKolik) {
    7.91 +		StringBuilder posunutý = new StringBuilder(text.length());
    7.92 +
    7.93 +		for (char z : text.toCharArray()) {
    7.94 +			posunutý.append(posuň(z, oKolik));
    7.95 +		}
    7.96 +
    7.97 +		return posunutý.toString();
    7.98 +	}
    7.99 +
   7.100 +	private static char posuň(char znak, int oKolik) {
   7.101 +		int původníPozice = ABECEDA.indexOf(znak);
   7.102 +
   7.103 +		if (původníPozice < 0) {
   7.104 +			return znak;
   7.105 +		} else {
   7.106 +			int nováPozice = (původníPozice + oKolik) % ABECEDA_ZNAKY.length;
   7.107 +			nováPozice = nováPozice < 0 ? ABECEDA_ZNAKY.length + nováPozice : nováPozice;
   7.108 +			return ABECEDA.get(nováPozice);
   7.109 +		}
   7.110 +	}
   7.111 +}