Changeset 278 for trunk/JavaCommons


Ignore:
Timestamp:
12/08/11 10:21:17 (13 years ago)
Author:
sherbold
Message:
  • extended build script to create zip-archives for downloads
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaCommons/build.xml

    r276 r278  
    66        <property name="dist.location" value="dist" /> 
    77        <property name="javadoc.location" value="javadoc" /> 
     8        <property name="downloads.location" value="downloads" /> 
    89        <property name="debuglevel" value="source,lines,vars" /> 
    910        <property name="target" value="1.6" /> 
     
    129130        <!-- Initialization Targets --> 
    130131        <target name="init.build"> 
    131                 <mkdir dir="bin" /> 
     132                <mkdir dir="${build.location}" /> 
    132133        </target> 
    133134        <target name="init.dist"> 
     
    136137                <mkdir dir="${dist.location.jfcmonitor}" /> 
    137138        </target> 
     139        <target name="init.downloads"> 
     140                <mkdir dir="${downloads.location}"/> 
     141        </target> 
    138142        <target depends="init.build" name="init.eventbenchconsole"> 
    139143                <mkdir dir="${build.location.eventbenchconsole}" /> 
     
    159163                <delete dir="${javadoc.location}" /> 
    160164        </target> 
    161         <target depends="clean.build,clean.dist,clean.javadoc" name="clean.all" /> 
     165        <target depends="clean.build,clean.dist,clean.javadoc,clean.junit" name="clean.all" /> 
    162166 
    163167        <!-- Build Targets --> 
     
    260264                </copy> 
    261265        </target> 
     266         
     267 
     268        <target depends="init.downloads,dist" name="createDownloads"> 
     269                <zip destfile="${downloads.location}/eventbench-complete.zip"> 
     270                        <fileset dir="${dist.location}" /> 
     271                </zip> 
     272                <zip destfile="${downloads.location}/eventbench-console.zip"> 
     273                        <fileset dir="${dist.location.main}" /> 
     274                </zip> 
     275                <zip destfile="${downloads.location}/eventbench-jfcmonitor.zip"> 
     276                        <fileset dir="${dist.location.jfcmonitor}" /> 
     277                </zip> 
     278                <zip destfile="${downloads.location}/eventbench-javadoc.zip"> 
     279                        <fileset dir="${dist.location.javadoc}" /> 
     280                </zip> 
     281        </target> 
    262282 
    263283        <!-- Javadoc Targets --> 
     
    311331                </copy> 
    312332        </target> 
     333         
     334        <target name="clean.junit"> 
     335                <delete dir="${test.location.results}" /> 
     336                <delete dir="${test.location.data}" /> 
     337                <delete dir="${test.location.output}" /> 
     338        </target> 
    313339 
    314340        <target depends="init.eventbenchcore-test" name="build.eventbenchcore-test"> 
     
    349375         
    350376        <target depends="junit.eventbenchcore,junit.javahelperlib" name="junit" /> 
    351          
    352         <target depends="dist,junit" name="distAndTest" /> 
    353377</project> 
Note: See TracChangeset for help on using the changeset viewer.