Changeset 1154 for trunk/build.xml

Show
Ignore:
Timestamp:
12/04/07 12:06:05 (1 year ago)
Author:
alban
Message:

add test.gui task

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build.xml

    r942 r1154  
    1616        <ivy-configure /> 
    1717  </target> 
    18    
     18 
    1919  <target name="prepare.version.tstamp"> 
    2020                <tstamp /> 
     
    2929                <property name="project.fullname" value="freecast-${project.version}" /> 
    3030        </target> 
    31          
     31 
    3232        <target name="prepare.libraries.check"> 
    3333                <available property="prepare.library.retrieve.notRequired" file="lib/.touch"/> 
     
    4040                        <exclude name="META-INF/**"/> 
    4141                </patternset> 
    42          
     42 
    4343        <macrodef name="unjar-natives"> 
    4444                <attribute name="platform"/> 
     
    5151                </sequential> 
    5252        </macrodef> 
    53          
    54                 <unjar-natives platform="linux" arch="x86"/>    
    55                 <unjar-natives platform="windows" arch="x86"/>          
    56                 <unjar-natives platform="sunos" arch="x86"/>    
    57                 <unjar-natives platform="sunos" arch="sparc"/>          
    58                  
     53 
     54                <unjar-natives platform="linux" arch="x86"/> 
     55                <unjar-natives platform="windows" arch="x86"/> 
     56                <unjar-natives platform="sunos" arch="x86"/> 
     57                <unjar-natives platform="sunos" arch="sparc"/> 
     58 
    5959                <copy todir="lib/runtime/linux/x86"> 
    6060                        <fileset dir="${track.tritonus.dir}"> 
     
    6767                        </fileset> 
    6868                </copy> 
    69                  
     69 
    7070                <copy todir="lib/runtime"> 
    7171                        <fileset dir="lib/runtime"> 
     
    7474                        <mapper type="regexp" from="jdic-stub-([a-z]+).jar" to="\1/jdic-stub.jar"/> 
    7575                </copy> 
    76                  
     76 
    7777                <touch file="lib/.touch"/> 
    7878        </target> 
    79          
     79 
    8080  <target name="prepare.libraries" depends="prepare.libraries.check, prepare.libraries.retrieve" > 
    8181        <path id="path.build"> 
     
    167167                </thumbnails> 
    168168        </target> 
    169          
     169 
    170170        <target name="build.start" depends="prepare.version"> 
    171171                <property name="build.start.site" value="start.freecast.org"/> 
     
    181181 
    182182                <mkdir dir="build/start/broadcast"/> 
    183                  
     183 
    184184                <echo message="&lt;empty&gt;&lt;/empty&gt;" file="build/empty.xml"/> 
    185                 <style  
     185                <style 
    186186                        style="source/org/kolaka/freecast/start/broadcast/jnlp.xsl" 
    187                         in="build/empty.xml"  
     187                        in="build/empty.xml" 
    188188                        out="build/start/broadcast/freecast-manager.jnlp"> 
    189189                        <param name="codebase" expression="http://${build.start.site}/broadcast"/> 
     
    206206        </target> 
    207207 
     208  <target name="test.gui" depends="build.test" description="Run the unit tests GUI"> 
     209                <java classname="junit.swingui.TestRunner" fork="yes"> 
     210                        <classpath> 
     211                                <pathelement path="build/core/classes" /> 
     212                                <pathelement path="build/test/classes" /> 
     213                                <path refid="path.test" /> 
     214                        </classpath> 
     215                        <sysproperty key="java.library.path" path="${track.tritonus.dir}" /> 
     216                </java> 
     217        </target> 
     218 
     219 
    208220        <target name="dist.jws.check"> 
    209221                <available file="${dist.jws.keystore}" property="dist.jws.possible" /> 
     
    213225                <property name="dist.jws.libfreecast.dir" value="dist/jws" /> 
    214226                <property name="dist.jws.codebase" value="http://jws.freecast.org/${project.version}/"/> 
    215                  
     227 
    216228                <mkdir dir="build/jws"/> 
    217229                <ivy-artifactreport tofile="build/jws/ivy-report.xml" conf="core,runtime"/> 
     
    224236      </filterchain> 
    225237                </loadfile> 
    226                  
     238 
    227239                <copy tofile="${dist.jws.libfreecast.dir}/libfreecast.jnlp" file="source/org/kolaka/freecast/node/swing/libfreecast.jnlp"> 
    228240                        <filterset> 
     
    356368                </copy> 
    357369        </target> 
    358          
     370 
    359371        <target name="dist.start" depends="build.start"> 
    360372                <copy todir="dist/start"> 
     
    365377                </copy> 
    366378        </target> 
    367          
     379 
    368380        <target name="dist.sources" depends="prepare.version"> 
    369381                <copy todir="dist/sources/source"> 
     
    398410                </copy> 
    399411        </target> 
    400          
     412 
    401413        <target name="dist.debian" depends="prepare.version, dist.sources, dist.docs"> 
    402414                <property name="dist.debian.dir" value="dist/debian/${project.fullname}"/> 
     
    424436                        </fileset> 
    425437                </copy> 
    426         </target>  
    427          
     438        </target> 
     439 
    428440        <target name="export.tar.prepare" depends="prepare.version, build.changelog, dist, dist.docs"> 
    429441                <mkdir dir="export" /> 
     
    450462                </tar> 
    451463        </target> 
    452          
     464 
    453465        <target name="export.tar.sources" depends="export.tar.prepare, dist.sources"> 
    454466                <tar tarfile="export/${project.fullname}-src.tar.bz" compression="bzip2"> 
     
    460472                </tar> 
    461473        </target> 
    462          
     474 
    463475        <target name="export.tar" depends="export.tar.bin, export.tar.sources" description="Packages binaries and sources distributions"/> 
    464476 
     
    478490                </exec> 
    479491        </target> 
    480          
     492 
    481493        <target name="export.debian.check"> 
    482494                <uptodate property="export.debian.notRequired" targetfile="export/debian/.touch"> 
     
    484496                </uptodate> 
    485497        </target> 
    486          
     498 
    487499        <target name="export.debian" depends="dist.debian, export.debian.check" unless="export.debian.notRequired"> 
     500          <property name="dpkg-buildpackage.options" value=""/> 
    488501                <exec executable="dpkg-buildpackage" dir="${dist.debian.dir}" failonerror="true"> 
    489                         <arg line="-rfakeroot -I.svn"/> 
     502                        <arg line="-rfakeroot -I.svn ${dpkg-buildpackage.options}"/> 
    490503                </exec> 
    491504                <copy todir="export/debian"> 
     
    567580                </exec> 
    568581        </target> 
    569          
     582 
    570583</project>