Changeset 9f7ec39


Ignore:
Timestamp:
Jan 8, 2018 2:46:26 PM (3 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
ce49c00
Parents:
25d16b13
Message:

Build: Add buildSusiMailJar target for testing
More test targets

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/susimail/build.xml

    r25d16b13 r9f7ec39  
    5454        </javac>
    5555    </target>
    56     <target name="jar" depends="compile, war" />
     56
     57    <!-- jar (not war) for testing only -->
     58    <target name="jar" depends="compile, bundle, warUpToDate, listChangedFiles" >
     59        <!-- set if unset -->
     60        <property name="workspace.changes.tr" value="" />
     61        <copy file="src/susimail.properties" todir="src/WEB-INF/classes" />
     62        <jar destfile="susimail.jar"
     63             basedir="src/WEB-INF/classes">
     64            <manifest>
     65                <attribute name="Implementation-Version" value="${full.version}" />
     66                <attribute name="Built-By" value="${build.built-by}" />
     67                <attribute name="Build-Date" value="${build.timestamp}" />
     68                <attribute name="Base-Revision" value="${workspace.version}" />
     69                <attribute name="Workspace-Changes" value="${workspace.changes.tr}" />
     70                <attribute name="X-Compile-Source-JDK" value="${javac.version}" />
     71                <attribute name="X-Compile-Target-JDK" value="${javac.version}" />
     72            </manifest>
     73        </jar>
     74    </target>
    5775
    5876    <target name="listChangedFiles" depends="warUpToDate" if="shouldListChanges" >
     
    153171        <delete dir="src/WEB-INF/classes"/>
    154172        <delete file="susimail.war"/>
     173        <delete file="susimail.jar"/>
    155174        <delete dir="build"/>
    156175    </target>
  • build.xml

    r25d16b13 r9f7ec39  
    312312        <ant dir="apps/susimail/" target="war" />
    313313        <copy file="apps/susimail/susimail.war" todir="build/" />
     314    </target>
     315
     316    <!-- jar (not war) for testing only -->
     317    <target name="buildSusiMailJar" depends="buildCore, buildJetty" >
     318        <ant dir="apps/susimail/" target="jar" />
     319        <copy file="apps/susimail/susimail.jar" todir="build/" />
    314320    </target>
    315321
     
    18081814        <ant dir="router/java/" target="scalatest.test" />
    18091815    </target>
    1810     <target name="test" depends="buildProperties, jbigi" >
    1811         <!-- both junit and scala -->
     1816    <!-- both junit and scala -->
     1817    <target name="test" depends="testCore, testRouter, testMinistreaming, testStreaming" />
     1818    <target name="testCore" depends="buildProperties, jbigi" >
    18121819        <ant dir="core/java/" target="test" />
     1820    </target>
     1821    <target name="testRouter" depends="buildProperties, jbigi" >
    18131822        <ant dir="router/java/" target="test" />
     1823    </target>
     1824    <target name="testMinistreaming" depends="buildProperties, jbigi" >
    18141825        <ant dir="apps/ministreaming/java/" target="test" />
     1826    </target>
     1827    <target name="testStreaming" depends="buildProperties" >
    18151828        <ant dir="apps/streaming/java/" target="test" />
    18161829    </target>
Note: See TracChangeset for help on using the changeset viewer.