Changeset 2075


Ignore:
Timestamp:
08/13/12 14:00:14 (12 years ago)
Author:
zastrow
Message:
 
Location:
SRUAggregator/trunk
Files:
2 added
9 edited

Legend:

Unmodified
Added
Removed
  • SRUAggregator/trunk/build/web/index.zul

    r2016 r2075  
    33    <window  id="mainWindow" contentStyle="background:white;" height="100%" apply="clarind.fcs.Aggregator">
    44        <borderlayout sclass="complex-layout"  width="1000px">
    5         <!-- Kopf -->
     5            <!-- Kopf -->
    66            <north height="100px">
    77               
    88            </north>
    99           
    10         <!-- Linke Sidebar -->
     10            <!-- Linke Sidebar -->
    1111            <west width="200px"  flex="true" splittable="true" margins="0,5,0,0">
    1212 
    1313            </west>
    1414     
    15        <!-- Center - Inhalt -->
     15            <!-- Center - Inhalt -->
    1616            <center autoscroll="true">
    1717                <panel >
     
    1919                        <textbox id="searchString" value="Elefant" />
    2020                        <button id="searchButton" forward ="onExecuteSearch" label="Search" />     
     21                       
     22                        <separator />
     23                        <label>Language:</label>
     24                        <combobox id="languageSelect" width="150px">
     25                            <!--<template name="model"> -->
     26                            <comboitem label="German" />
     27                            <comboitem label="English" />
     28                            <comboitem label="Dutch" />
     29                            <comboitem label="-More to come-" />
     30                            <!-- </template> -->
     31                        </combobox>
    2132                       
    2233                        <separator />
     
    3849                                    </row>
    3950                                   
    40                                      <row>
     51                                    <row>
    4152                                        <checkbox id="ids3" label="Corpus 3" />
    4253                                        <checkbox id="ids4" label="Corpus 4" />
    4354                                    </row>
    4455                                   
    45                                      <row>
     56                                    <row>
    4657                                        <checkbox id="ids5" label="Corpus 5" />
    4758                                        <checkbox id="ids6" label="Corpus 6" />
    4859                                    </row>
    4960                                   
    50                                      <row>
     61                                    <row>
    5162                                        <checkbox id="ids7" label="Corpus 7" />
    5263                                        <checkbox id="ids8" label="Corpus 8" />
    5364                                    </row>
    5465                                   
    55                                      <row>
     66                                    <row>
    5667                                        <checkbox id="ids9" label="Corpus 9" />
    5768                                        <checkbox id="ids10" label="Corpus 10" />
     
    7990                                    </row>
    8091                                   
    81                                      <row>
     92                                    <row>
    8293                                        <checkbox id="tue3" label="Corpus 3" />
    8394                                        <checkbox id="tue4" label="Corpus 4" />
    8495                                    </row>
    8596                                   
    86                                      <row>
     97                                    <row>
    8798                                        <checkbox id="tue5" label="Corpus 5" />
    8899                                        <checkbox id="tue6" label="Corpus 6" />
    89100                                    </row>
    90101                                   
    91                                      <row>
     102                                    <row>
    92103                                        <checkbox id="tue7" label="Corpus 7" />
    93104                                        <checkbox id="tue8" label="Corpus 8" />
    94105                                    </row>
    95106                                   
    96                                      <row>
     107                                    <row>
    97108                                        <checkbox id="tue9" label="Corpus 9" />
    98109                                        <checkbox id="tue10" label="Corpus 10" />
     
    107118            </center>
    108119           
    109         <!-- Rechte Sidebar --> 
     120            <!-- Rechte Sidebar --> 
    110121            <east width="200px" flex="true" splittable="true" margins="0,5,0,0">
    111122           
    112123            </east>
    113124           
    114          <!-- Fusszeile -->   
     125            <!-- Fusszeile -->   
    115126            <south height="100px">
    116127               
  • SRUAggregator/trunk/nbproject/build-impl.xml

    r2016 r2075  
    1212        - debugging
    1313        - javadoc
    14         - junit compilation
    15         - junit execution
    16         - junit debugging
     14        - test compilation
     15        - test execution
     16        - test debugging
    1717        - cleanup
    1818
     
    188188        </condition>
    189189        <property name="javac.fork" value="${jdkBug6558476}"/>
     190        <condition property="junit.available">
     191            <or>
     192                <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
     193                <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
     194            </or>
     195        </condition>
     196        <condition property="testng.available">
     197            <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
     198        </condition>
     199        <condition property="junit+testng.available">
     200            <and>
     201                <istrue value="${junit.available}"/>
     202                <istrue value="${testng.available}"/>
     203            </and>
     204        </condition>
     205        <condition else="testng" property="testng.mode" value="mixed">
     206            <istrue value="${junit+testng.available}"/>
     207        </condition>
     208        <condition else="" property="testng.debug.mode" value="-mixed">
     209            <istrue value="${junit+testng.available}"/>
     210        </condition>
    190211    </target>
    191212    <target depends="init" name="-init-cos" unless="deploy.on.save">
     
    346367        </macrodef>
    347368    </target>
    348     <target name="-init-macrodef-junit">
     369    <target if="${junit.available}" name="-init-macrodef-junit-init">
     370        <condition else="false" property="nb.junit.batch" value="true">
     371            <and>
     372                <istrue value="${junit.available}"/>
     373                <not>
     374                    <isset property="test.method"/>
     375                </not>
     376            </and>
     377        </condition>
     378        <condition else="false" property="nb.junit.single" value="true">
     379            <and>
     380                <istrue value="${junit.available}"/>
     381                <isset property="test.method"/>
     382            </and>
     383        </condition>
     384    </target>
     385    <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
    349386        <macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
    350387            <attribute default="${includes}" name="includes"/>
    351388            <attribute default="${excludes}" name="excludes"/>
    352389            <attribute default="**" name="testincludes"/>
     390            <attribute default="" name="testmethods"/>
     391            <element name="customize" optional="true"/>
    353392            <sequential>
    354393                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
    355                     <batchtest todir="${build.test.results.dir}">
    356                         <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
    357                             <filename name="@{testincludes}"/>
    358                         </fileset>
    359                     </batchtest>
    360                     <classpath>
    361                         <path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/>
    362                     </classpath>
     394                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
    363395                    <syspropertyset>
    364396                        <propertyref prefix="test-sys-prop."/>
     
    367399                    <formatter type="brief" usefile="false"/>
    368400                    <formatter type="xml"/>
    369                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
    370401                    <jvmarg value="-ea"/>
    371                     <jvmarg line="${runmain.jvmargs}"/>
     402                    <customize/>
    372403                </junit>
    373404            </sequential>
    374405        </macrodef>
    375406    </target>
     407    <target if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
     408        <macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
     409            <attribute default="${includes}" name="includes"/>
     410            <attribute default="${excludes}" name="excludes"/>
     411            <attribute default="**" name="testincludes"/>
     412            <attribute default="" name="testmethods"/>
     413            <element name="customize" optional="true"/>
     414            <sequential>
     415                <property name="run.jvmargs.ide" value=""/>
     416                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
     417                    <batchtest todir="${build.test.results.dir}">
     418                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
     419                            <filename name="@{testincludes}"/>
     420                        </fileset>
     421                    </batchtest>
     422                    <syspropertyset>
     423                        <propertyref prefix="test-sys-prop."/>
     424                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
     425                    </syspropertyset>
     426                    <formatter type="brief" usefile="false"/>
     427                    <formatter type="xml"/>
     428                    <jvmarg value="-ea"/>
     429                    <jvmarg line="${run.jvmargs.ide}"/>
     430                    <customize/>
     431                </junit>
     432            </sequential>
     433        </macrodef>
     434    </target>
     435    <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
     436    <target if="${testng.available}" name="-init-macrodef-testng">
     437        <macrodef name="testng" uri="http://www.netbeans.org/ns/web-project/2">
     438            <attribute default="${includes}" name="includes"/>
     439            <attribute default="${excludes}" name="excludes"/>
     440            <attribute default="**" name="testincludes"/>
     441            <attribute default="" name="testmethods"/>
     442            <element name="customize" optional="true"/>
     443            <sequential>
     444                <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
     445                    <isset property="test.method"/>
     446                </condition>
     447                <union id="test.set">
     448                    <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
     449                        <filename name="@{testincludes}"/>
     450                    </fileset>
     451                </union>
     452                <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
     453                <testng classfilesetref="test.set" failureProperty="tests.failed" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="Aggregator" testname="TestNG tests" workingDir="${basedir}">
     454                    <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
     455                    <propertyset>
     456                        <propertyref prefix="test-sys-prop."/>
     457                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
     458                    </propertyset>
     459                    <customize/>
     460                </testng>
     461            </sequential>
     462        </macrodef>
     463    </target>
     464    <target name="-init-macrodef-test-impl">
     465        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/web-project/2">
     466            <attribute default="${includes}" name="includes"/>
     467            <attribute default="${excludes}" name="excludes"/>
     468            <attribute default="**" name="testincludes"/>
     469            <attribute default="" name="testmethods"/>
     470            <element implicit="true" name="customize" optional="true"/>
     471            <sequential>
     472                <echo>No tests executed.</echo>
     473            </sequential>
     474        </macrodef>
     475    </target>
     476    <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
     477        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/web-project/2">
     478            <attribute default="${includes}" name="includes"/>
     479            <attribute default="${excludes}" name="excludes"/>
     480            <attribute default="**" name="testincludes"/>
     481            <attribute default="" name="testmethods"/>
     482            <element implicit="true" name="customize" optional="true"/>
     483            <sequential>
     484                <webproject2:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
     485                    <customize/>
     486                </webproject2:junit>
     487            </sequential>
     488        </macrodef>
     489    </target>
     490    <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
     491        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/web-project/2">
     492            <attribute default="${includes}" name="includes"/>
     493            <attribute default="${excludes}" name="excludes"/>
     494            <attribute default="**" name="testincludes"/>
     495            <attribute default="" name="testmethods"/>
     496            <element implicit="true" name="customize" optional="true"/>
     497            <sequential>
     498                <webproject2:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
     499                    <customize/>
     500                </webproject2:testng>
     501            </sequential>
     502        </macrodef>
     503    </target>
     504    <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
     505        <macrodef name="test" uri="http://www.netbeans.org/ns/web-project/2">
     506            <attribute default="${includes}" name="includes"/>
     507            <attribute default="${excludes}" name="excludes"/>
     508            <attribute default="**" name="testincludes"/>
     509            <attribute default="" name="testmethods"/>
     510            <sequential>
     511                <webproject2:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
     512                    <customize>
     513                        <classpath>
     514                            <path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/>
     515                        </classpath>
     516                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
     517                        <jvmarg line="${runmain.jvmargs}"/>
     518                    </customize>
     519                </webproject2:test-impl>
     520            </sequential>
     521        </macrodef>
     522    </target>
     523    <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
     524        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/web-project/2">
     525            <attribute default="${includes}" name="includes"/>
     526            <attribute default="${excludes}" name="excludes"/>
     527            <attribute default="**" name="testincludes"/>
     528            <attribute default="" name="testmethods"/>
     529            <element name="customize" optional="true"/>
     530            <sequential>
     531                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
     532                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
     533                    <syspropertyset>
     534                        <propertyref prefix="test-sys-prop."/>
     535                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
     536                    </syspropertyset>
     537                    <formatter type="brief" usefile="false"/>
     538                    <formatter type="xml"/>
     539                    <jvmarg value="-ea"/>
     540                    <jvmarg line="${debug-args-line}"/>
     541                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
     542                    <customize/>
     543                </junit>
     544            </sequential>
     545        </macrodef>
     546    </target>
     547    <target if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
     548        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/web-project/2">
     549            <attribute default="${includes}" name="includes"/>
     550            <attribute default="${excludes}" name="excludes"/>
     551            <attribute default="**" name="testincludes"/>
     552            <attribute default="" name="testmethods"/>
     553            <element name="customize" optional="true"/>
     554            <sequential>
     555                <property name="run.jvmargs.ide" value=""/>
     556                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
     557                    <batchtest todir="${build.test.results.dir}">
     558                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
     559                            <filename name="@{testincludes}"/>
     560                        </fileset>
     561                    </batchtest>
     562                    <syspropertyset>
     563                        <propertyref prefix="test-sys-prop."/>
     564                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
     565                    </syspropertyset>
     566                    <formatter type="brief" usefile="false"/>
     567                    <formatter type="xml"/>
     568                    <jvmarg value="-ea"/>
     569                    <jvmarg line="${run.jvmargs.ide}"/>
     570                    <jvmarg line="${debug-args-line}"/>
     571                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
     572                    <customize/>
     573                </junit>
     574            </sequential>
     575        </macrodef>
     576    </target>
     577    <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
     578        <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/web-project/2">
     579            <attribute default="${includes}" name="includes"/>
     580            <attribute default="${excludes}" name="excludes"/>
     581            <attribute default="**" name="testincludes"/>
     582            <attribute default="" name="testmethods"/>
     583            <element implicit="true" name="customize" optional="true"/>
     584            <sequential>
     585                <webproject2:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
     586                    <customize/>
     587                </webproject2:junit-debug>
     588            </sequential>
     589        </macrodef>
     590    </target>
     591    <target if="${testng.available}" name="-init-macrodef-testng-debug">
     592        <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/web-project/2">
     593            <attribute default="${main.class}" name="testClass"/>
     594            <attribute default="" name="testMethod"/>
     595            <element name="customize2" optional="true"/>
     596            <sequential>
     597                <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
     598                    <isset property="test.method"/>
     599                </condition>
     600                <condition else="-suitename Aggregator -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
     601                    <matches pattern=".*\.xml" string="@{testClass}"/>
     602                </condition>
     603                <delete dir="${build.test.results.dir}" quiet="true"/>
     604                <mkdir dir="${build.test.results.dir}"/>
     605                <webproject1:debug args="${testng.cmd.args}" classname="org.testng.TestNG" classpath="${debug.test.classpath}:${j2ee.platform.embeddableejb.classpath}">
     606                    <customize>
     607                        <customize2/>
     608                        <jvmarg value="-ea"/>
     609                        <arg line="${testng.debug.mode}"/>
     610                        <arg line="-d ${build.test.results.dir}"/>
     611                        <arg line="-listener org.testng.reporters.VerboseReporter"/>
     612                    </customize>
     613                </webproject1:debug>
     614            </sequential>
     615        </macrodef>
     616    </target>
     617    <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
     618        <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/web-project/2">
     619            <attribute default="${main.class}" name="testClass"/>
     620            <attribute default="" name="testMethod"/>
     621            <element implicit="true" name="customize2" optional="true"/>
     622            <sequential>
     623                <webproject2:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
     624                    <customize2/>
     625                </webproject2:testng-debug>
     626            </sequential>
     627        </macrodef>
     628    </target>
     629    <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
     630        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/web-project/2">
     631            <attribute default="${includes}" name="includes"/>
     632            <attribute default="${excludes}" name="excludes"/>
     633            <attribute default="**" name="testincludes"/>
     634            <attribute default="" name="testmethods"/>
     635            <attribute default="${main.class}" name="testClass"/>
     636            <attribute default="" name="testMethod"/>
     637            <sequential>
     638                <webproject2:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
     639                    <customize>
     640                        <classpath>
     641                            <path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/>
     642                        </classpath>
     643                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
     644                        <jvmarg line="${runmain.jvmargs}"/>
     645                    </customize>
     646                </webproject2:test-debug-impl>
     647            </sequential>
     648        </macrodef>
     649    </target>
     650    <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
     651        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/web-project/2">
     652            <attribute default="${includes}" name="includes"/>
     653            <attribute default="${excludes}" name="excludes"/>
     654            <attribute default="**" name="testincludes"/>
     655            <attribute default="" name="testmethods"/>
     656            <attribute default="${main.class}" name="testClass"/>
     657            <attribute default="" name="testMethod"/>
     658            <sequential>
     659                <webproject2:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
     660                    <customize2>
     661                        <syspropertyset>
     662                            <propertyref prefix="test-sys-prop."/>
     663                            <mapper from="test-sys-prop.*" to="*" type="glob"/>
     664                        </syspropertyset>
     665                    </customize2>
     666                </webproject2:testng-debug-impl>
     667            </sequential>
     668        </macrodef>
     669    </target>
     670    <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
    376671    <target name="-init-macrodef-java">
    377672        <macrodef name="java" uri="http://www.netbeans.org/ns/web-project/1">
     
    512807        <property name="ap.cmd.line.internal" value=""/>
    513808    </target>
    514     <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-check" name="profile-init"/>
     809    <!--
     810                pre NB7.2 profiling section; consider it deprecated
     811            -->
     812    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
    515813    <target name="-profile-pre-init">
    516814        <!-- Empty placeholder for easier customization. -->
     
    521819        <!-- You can override this target in the ../build.xml file. -->
    522820    </target>
    523     <target depends="-profile-pre-init, init, -profile-post-init" name="-profile-init-check">
     821    <target depends="-profile-pre-init, init, -profile-post-init" if="profiler.info.jvmargs.agent" name="-profile-init-check">
    524822        <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
    525823        <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
    526824    </target>
    527     <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-java,-init-macrodef-nbjpda,-init-macrodef-nbjsdebug,-init-macrodef-debug,-init-taskdefs,-init-ap-cmdline" name="init"/>
     825    <!--
     826                end of pre NB7.2 profiling section
     827            -->
     828    <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-java,-init-macrodef-nbjpda,-init-macrodef-nbjsdebug,-init-macrodef-debug,-init-taskdefs,-init-ap-cmdline" name="init"/>
    528829    <!--
    529830                COMPILATION SECTION
     
    8201121    </target>
    8211122    <target if="do.debug.server" name="connect-debugger" unless="is.debugged">
    822         <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
     1123        <condition property="listeningcp" value="sourcepath">
     1124            <istrue value="${j2ee.compile.on.save}"/>
     1125        </condition>
     1126        <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" listeningcp="${listeningcp}" name="${name}" transport="${jpda.transport}">
    8231127            <classpath>
    8241128                <path path="${debug.classpath}:${j2ee.platform.classpath}"/>
     
    8651169            =================
    8661170            -->
    867     <target description="Profile a J2EE project in the IDE." name="profile">
     1171    <!--
     1172                pre NB7.2 profiling section; consider it deprecated
     1173            -->
     1174    <target description="Profile a J2EE project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
    8681175        <condition else="start-profiled-server" property="profiler.startserver.target" value="start-profiled-server-extraargs">
    8691176            <isset property="profiler.info.jvmargs.extra"/>
     
    8711178        <antcall target="${profiler.startserver.target}"/>
    8721179        <antcall target="run"/>
    873         <antcall target="start-loadgen"/>
    874     </target>
    875     <target name="start-profiled-server">
     1180        <antcall target="-profile-start-loadgen"/>
     1181    </target>
     1182    <target if="profiler.info.jvmargs.agent" name="start-profiled-server">
    8761183        <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
    8771184            <jvmarg value="${profiler.info.jvmargs.agent}"/>
     
    8791186        </nbstartprofiledserver>
    8801187    </target>
    881     <target name="start-profiled-server-extraargs">
     1188    <target if="profiler.info.jvmargs.agent" name="start-profiled-server-extraargs">
    8821189        <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
    8831190            <jvmarg value="${profiler.info.jvmargs.extra}"/>
     
    8861193        </nbstartprofiledserver>
    8871194    </target>
    888     <target if="profiler.loadgen.path" name="start-loadgen">
     1195    <target if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
     1196        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
     1197        <nbprofiledirect>
     1198            <classpath>
     1199                <path path="${run.test.classpath}"/>
     1200                <path path="${j2ee.platform.classpath}"/>
     1201            </classpath>
     1202        </nbprofiledirect>
     1203        <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
     1204            <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
     1205            <jvmarg value="${profiler.info.jvmargs.agent}"/>
     1206            <jvmarg line="${profiler.info.jvmargs}"/>
     1207            <test name="${profile.class}"/>
     1208            <classpath>
     1209                <path path="${run.test.classpath}"/>
     1210                <path path="${j2ee.platform.classpath}"/>
     1211            </classpath>
     1212            <syspropertyset>
     1213                <propertyref prefix="test-sys-prop."/>
     1214                <mapper from="test-sys-prop.*" to="*" type="glob"/>
     1215            </syspropertyset>
     1216            <formatter type="brief" usefile="false"/>
     1217            <formatter type="xml"/>
     1218        </junit>
     1219    </target>
     1220    <target if="netbeans.home" name="-profile-check">
     1221        <condition property="profiler.configured">
     1222            <or>
     1223                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
     1224                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
     1225            </or>
     1226        </condition>
     1227    </target>
     1228    <target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest" name="-do-profile">
     1229        <startprofiler/>
     1230        <nbstartserver profilemode="true"/>
     1231        <nbdeploy clientUrlPart="${client.urlPart}" forceRedeploy="true" profilemode="true"/>
     1232        <antcall target="debug-display-browser"/>
     1233        <antcall target="-profile-start-loadgen"/>
     1234    </target>
     1235    <target depends="-profile-check,-profile-pre72" description="Profile a J2EE project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
     1236        <antcall target="-do-profile"/>
     1237    </target>
     1238    <target depends="-profile-test-single-pre72" name="profile-test-single"/>
     1239    <target depends="-profile-check" if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs.agent">
     1240        <startprofiler/>
     1241        <antcall target="test-single"/>
     1242    </target>
     1243    <target if="profiler.loadgen.path" name="-profile-start-loadgen">
    8891244        <loadgenstart path="${profiler.loadgen.path}"/>
    8901245    </target>
     
    9201275    <!--
    9211276               
    922                 JUNIT COMPILATION SECTION
     1277                TEST COMPILATION SECTION
    9231278            -->
    9241279    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
     
    9591314    <!--
    9601315               
    961                 JUNIT EXECUTION SECTION
     1316                TEST EXECUTION SECTION
    9621317            -->
    9631318    <target depends="init" if="have.tests" name="-pre-test-run">
     
    9651320    </target>
    9661321    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
    967         <webproject2:junit testincludes="**/*Test.java"/>
     1322        <webproject2:test testincludes="**/*Test.java"/>
    9681323    </target>
    9691324    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
     
    9781333    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
    9791334        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
    980         <webproject2:junit excludes="" includes="${test.includes}"/>
     1335        <webproject2:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
    9811336    </target>
    9821337    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
     
    9841339    </target>
    9851340    <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"/>
     1341    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
     1342        <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
     1343        <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
     1344        <webproject2:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
     1345    </target>
     1346    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
     1347        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
     1348    </target>
     1349    <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"/>
    9861350    <!--
    9871351               
    988                 JUNIT DEBUGGING SECTION
     1352                TEST DEBUGGING SECTION
    9891353            -->
    990     <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
     1354    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
    9911355        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
    992         <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
    993         <delete file="${test.report.file}"/>
    994         <!-- must exist, otherwise the XML formatter would fail -->
    995         <mkdir dir="${build.test.results.dir}"/>
    996         <webproject1:debug args="${test.class}" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}:${j2ee.platform.embeddableejb.classpath}">
    997             <customize>
    998                 <arg value="showoutput=true"/>
    999                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
    1000                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
    1001             </customize>
    1002         </webproject1:debug>
     1356        <webproject2:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
     1357    </target>
     1358    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
     1359        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
     1360        <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
     1361        <webproject2:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
    10031362    </target>
    10041363    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
     
    10061365    </target>
    10071366    <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
     1367    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
    10081368    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
    10091369        <webproject1:nbjpdareload dir="${build.test.classes.dir}"/>
    10101370    </target>
    10111371    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
    1012     <!--
    1013         =========================
    1014         TESTS PROFILING  SECTION
    1015         =========================
    1016         -->
    1017     <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single">
    1018         <nbprofiledirect>
    1019             <classpath>
    1020                 <path path="${run.test.classpath}"/>
    1021                 <path path="${j2ee.platform.classpath}"/>
    1022             </classpath>
    1023         </nbprofiledirect>
    1024         <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
    1025             <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
    1026             <jvmarg value="${profiler.info.jvmargs.agent}"/>
    1027             <jvmarg line="${profiler.info.jvmargs}"/>
    1028             <test name="${profile.class}"/>
    1029             <classpath>
    1030                 <path path="${run.test.classpath}"/>
    1031                 <path path="${j2ee.platform.classpath}"/>
    1032             </classpath>
    1033             <syspropertyset>
    1034                 <propertyref prefix="test-sys-prop."/>
    1035                 <mapper from="test-sys-prop.*" to="*" type="glob"/>
    1036             </syspropertyset>
    1037             <formatter type="brief" usefile="false"/>
    1038             <formatter type="xml"/>
    1039         </junit>
    1040     </target>
    10411372    <!--
    10421373               
  • SRUAggregator/trunk/nbproject/genfiles.properties

    r2016 r2075  
    55# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
    66nbproject/build-impl.xml.data.CRC32=e938706e
    7 nbproject/build-impl.xml.script.CRC32=413d9755
    8 nbproject/build-impl.xml.stylesheet.CRC32=b7883b1f@1.36.1.1
     7nbproject/build-impl.xml.script.CRC32=14072480
     8nbproject/build-impl.xml.stylesheet.CRC32=4e9cae83@1.38.1.1
  • SRUAggregator/trunk/nbproject/private/private.properties

    r2016 r2075  
    1 deploy.ant.properties.file=/Users/zastrow/.netbeans/7.1/tomcat70.properties
     1deploy.ant.properties.file=/Users/zastrow/Library/Application Support/NetBeans/7.2/tomcat70.properties
    22j2ee.server.home=/Users/zastrow/Downloads/apache-tomcat-7.0.22
    33j2ee.server.instance=tomcat70:home=/Users/zastrow/Downloads/apache-tomcat-7.0.22
    44javac.debug=true
    55javadoc.preview=true
    6 user.properties.file=/Users/zastrow/.netbeans/7.1/build.properties
     6user.properties.file=/Users/zastrow/Library/Application Support/NetBeans/7.2/build.properties
  • SRUAggregator/trunk/nbproject/private/private.xml

    r2016 r2075  
    22<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
    33    <editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"/>
    4     <open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/1">
    5         <file>file:/Users/zastrow/Documents/ClarinD/schrauber/Aggregator/trunk/web/index.zul</file>
    6         <file>file:/Users/zastrow/Documents/ClarinD/schrauber/Aggregator/trunk/src/java/clarind/fcs/Aggregator.java</file>
    7     </open-files>
     4    <editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
    85</project-private>
  • SRUAggregator/trunk/nbproject/project.properties

    r2016 r2075  
    2929includes=**
    3030j2ee.compile.on.save=true
     31j2ee.copy.static.files.on.save=true
    3132j2ee.deploy.on.save=true
    3233j2ee.platform=1.6-web
  • SRUAggregator/trunk/src/java/clarind/fcs/Aggregator.java

    r2016 r2075  
    88import org.zkoss.zul.Row;
    99import org.zkoss.zul.Checkbox;
     10import org.zkoss.zul.Combobox;
    1011
    1112public class Aggregator extends GenericAutowireComposer {
    12    
     13
    1314    private Textbox searchString;
    1415    private Rows rowsIds;
    15         private Rows rowsTue;
     16    private Rows rowsTue;
     17    private Combobox languageSelect;
    1618
    1719    public void onExecuteSearch(Event ev) {
     
    1921            String display = "SearchString: " + searchString.getText() + "\n";
    2022           
     23            display = display + "Language: " + languageSelect.getSelectedItem().getLabel() + "\n";
     24
    2125            int i, i2;
    22            
     26
    2327            // ----- IDS:
    24            
     28
    2529            display = display + "IDS:\n";
    26            
    27                 for(i=0; i<rowsIds.getChildren().size(); i++){
    28                     Row r = (Row)rowsIds.getChildren().get(i);
    29                    
    30                     for(i2=0; i2<r.getChildren().size();i2++){
    31                         Checkbox cb = (Checkbox)r.getChildren().get(i2);
    32                         if(cb.isChecked()) display = display + cb.getLabel() + "\n";
    33                     } // for i2...
    34                    
    35                 } // for i ...
    36                
    37                
    38                 // ----- TÃŒbingen:
    39                
    40                 display = display + "TÃŒbingen:\n";
    41            
    42                 for(i=0; i<rowsTue.getChildren().size(); i++){
    43                     Row r = (Row)rowsTue.getChildren().get(i);
    44                    
    45                     for(i2=0; i2<r.getChildren().size();i2++){
    46                         Checkbox cb = (Checkbox)r.getChildren().get(i2);
    47                         if(cb.isChecked()) display = display + cb.getLabel() + "\n";
    48                     } // for i2...
    49                    
    50                 } // for i ...
    51                        
     30
     31            for (i = 0; i < rowsIds.getChildren().size(); i++) {
     32                Row r = (Row) rowsIds.getChildren().get(i);
     33
     34                for (i2 = 0; i2 < r.getChildren().size(); i2++) {
     35                    Checkbox cb = (Checkbox) r.getChildren().get(i2);
     36                    if (cb.isChecked()) {
     37                        display = display + cb.getLabel() + "\n";
     38                    }
     39                } // for i2...
     40
     41            } // for i ...
     42
     43
     44            // ----- TÃŒbingen:
     45
     46            display = display + "TÃŒbingen:\n";
     47
     48            for (i = 0; i < rowsTue.getChildren().size(); i++) {
     49                Row r = (Row) rowsTue.getChildren().get(i);
     50
     51                for (i2 = 0; i2 < r.getChildren().size(); i2++) {
     52                    Checkbox cb = (Checkbox) r.getChildren().get(i2);
     53                    if (cb.isChecked()) {
     54                        display = display + cb.getLabel() + "\n";
     55                    }
     56                } // for i2...
     57
     58            } // for i ...
     59
    5260            Messagebox.show(display);
    53            
     61
    5462        } catch (Exception ex) {
    5563            System.out.println(ex.getMessage());
  • SRUAggregator/trunk/web/index.zul

    r2016 r2075  
    33    <window  id="mainWindow" contentStyle="background:white;" height="100%" apply="clarind.fcs.Aggregator">
    44        <borderlayout sclass="complex-layout"  width="1000px">
    5         <!-- Kopf -->
     5            <!-- Kopf -->
    66            <north height="100px">
    77               
    88            </north>
    99           
    10         <!-- Linke Sidebar -->
     10            <!-- Linke Sidebar -->
    1111            <west width="200px"  flex="true" splittable="true" margins="0,5,0,0">
    1212 
    1313            </west>
    1414     
    15        <!-- Center - Inhalt -->
     15            <!-- Center - Inhalt -->
    1616            <center autoscroll="true">
    1717                <panel >
     
    1919                        <textbox id="searchString" value="Elefant" />
    2020                        <button id="searchButton" forward ="onExecuteSearch" label="Search" />     
     21                       
     22                        <separator />
     23                        <label>Language:</label>
     24                        <combobox id="languageSelect" width="150px">
     25                            <!--<template name="model"> -->
     26                            <comboitem label="German" />
     27                            <comboitem label="English" />
     28                            <comboitem label="Dutch" />
     29                            <comboitem label="-More to come-" />
     30                            <!-- </template> -->
     31                        </combobox>
    2132                       
    2233                        <separator />
     
    3849                                    </row>
    3950                                   
    40                                      <row>
     51                                    <row>
    4152                                        <checkbox id="ids3" label="Corpus 3" />
    4253                                        <checkbox id="ids4" label="Corpus 4" />
    4354                                    </row>
    4455                                   
    45                                      <row>
     56                                    <row>
    4657                                        <checkbox id="ids5" label="Corpus 5" />
    4758                                        <checkbox id="ids6" label="Corpus 6" />
    4859                                    </row>
    4960                                   
    50                                      <row>
     61                                    <row>
    5162                                        <checkbox id="ids7" label="Corpus 7" />
    5263                                        <checkbox id="ids8" label="Corpus 8" />
    5364                                    </row>
    5465                                   
    55                                      <row>
     66                                    <row>
    5667                                        <checkbox id="ids9" label="Corpus 9" />
    5768                                        <checkbox id="ids10" label="Corpus 10" />
     
    7990                                    </row>
    8091                                   
    81                                      <row>
     92                                    <row>
    8293                                        <checkbox id="tue3" label="Corpus 3" />
    8394                                        <checkbox id="tue4" label="Corpus 4" />
    8495                                    </row>
    8596                                   
    86                                      <row>
     97                                    <row>
    8798                                        <checkbox id="tue5" label="Corpus 5" />
    8899                                        <checkbox id="tue6" label="Corpus 6" />
    89100                                    </row>
    90101                                   
    91                                      <row>
     102                                    <row>
    92103                                        <checkbox id="tue7" label="Corpus 7" />
    93104                                        <checkbox id="tue8" label="Corpus 8" />
    94105                                    </row>
    95106                                   
    96                                      <row>
     107                                    <row>
    97108                                        <checkbox id="tue9" label="Corpus 9" />
    98109                                        <checkbox id="tue10" label="Corpus 10" />
     
    107118            </center>
    108119           
    109         <!-- Rechte Sidebar --> 
     120            <!-- Rechte Sidebar --> 
    110121            <east width="200px" flex="true" splittable="true" margins="0,5,0,0">
    111122           
    112123            </east>
    113124           
    114          <!-- Fusszeile -->   
     125            <!-- Fusszeile -->   
    115126            <south height="100px">
    116127               
Note: See TracChangeset for help on using the changeset viewer.