Would be great if Bernd or others contributed the necessary changes to
support a unit-test target in the Ant script.  Get at least some minimal
sanity check on things.
[...]
commons-net is not yet included on the lib-list in ant target "unit-test-classpath" in build.xml

Sorry I forgot that (I run unit-tests from eclipse).
I just committed the new build.xml.

what else is needed to run this on the integration machine?

Probably Noel would like to have an ant task to automatically download the 3 needed libraries from the internet so we don't need them in the repository but the automatic build would find them.

I'm not so confident with ant tasks but I think Noel wants something like this:

<!-- Invoke 'ant get-log4j' to get this -->
<property name="log4j.jar" value="${repo.dir}/log4j/log4j-1.2.7.jar"/>

<!-- ============================================================== -->
<!-- Log4j Tasks.                                                   -->
<!-- ============================================================== -->
<target name="check-log4j-init" depends="init">
<available property="log4j.present" classname="org.apache.log4j.Logger">
        <classpath refid="project.class.path"/>
    </available>
</target>

<target name="check-log4j" depends="check-log4j-init" unless="log4j.present">
    <echo>***************************</echo>
    <echo>* Please execute target   *</echo>
    <echo>* 'get-log4j' in the main *</echo>
    <echo>* build.xml build file    *</echo>
    <echo>* to download one and     *</echo>
    <echo>* a half Mb of log4j      *</echo>
    <echo>***************************</echo>
    <fail message="log4j needed. See above."/>
</target>

<!-- Get the jars from the log4j project. -->
<!-- For licensing reasons, we are unable to put these Jars in our CVS or source distributions. -->
<target name="get-log4j" description="Get the log4j.">
    <mkdir dir="${repo.dir}/log4j"/>
    <get src="http://www.ibiblio.org/maven/log4j/jars/log4j-1.2.7.jar";
        dest="${repo.dir}/log4j/log4j-1.2.7.jar"
        verbose="true"
        usetimestamp="true"/>
</target>

This is easier when a jar is available as a single download, but when the jar is inside a tar/zip we need something better:

<!-- Get the jars from the configkit project. -->
<target name="get-configkit" description="Get the Spice ConfigKit distribution from SourceForge.">
    <mkdir dir="${repo.dir}/spice-configkit"/>
<get src="http://osdn.dl.sourceforge.net/sourceforge/spice/spice-configkit-1.1.2.tar.gz";
        dest="${repo.dir}/spice-configkit/spice-configkit.tar.gz"
        verbose="true"
        usetimestamp="true"/>
<gunzip src="${repo.dir}/spice-configkit/spice-configkit.tar.gz" dest="${repo.dir}/spice-configkit"/> <untar src="${repo.dir}/spice-configkit/spice-configkit.tar" dest="${repo.dir}/spice-configkit"/>
</target>

I currently have no much time and I want to work a little on the MimeMessage optimizations proposed by Ofir Gross, so if anyone else could look at this I would really appreciate this.

Stefano

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to