[Qt-jambi-interest] Should I merge the build branch into the master branch?

Francis Galiegue fgaliegue at gmail.com
Mon Dec 21 12:51:29 CET 2009


On Mon, Dec 21, 2009 at 11:06 AM, Francis Galiegue <fgaliegue at gmail.com> wrote:
[...]
>
> I have a workaround for this: I can modify the build system to check
> whether ant-contrib is present in a subdirectory of the build tree,
> fail and tell where to download it otherwise. That's the easy solution
> for me, and a pain in the <beep> for the user. Or better, I can write
> a Java program to download it directly into this directory if it
> doesn't exist. That's less easy for me, easy for the users, and it's
> doable.
>

Well, in fact, this will be easier: there's a "get" task that can
donwload a file, heh. Sample build.xml:

<project name="dl" default="doit" basedir=".">

    <property name="tmpdir" value="tmp"/>
    <property name="extjar" value="extjar"/>
    <property name="url"
        value="http://downloads.sourceforge.net/project/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3-bin.zip"/>

    <target name="dl">
        <mkdir dir="${tmpdir}"/>
        <get src="${url}" dest="${tmpdir}/ant-contrib.zip" usetimestamp="true"
            verbose="true"/>
    </target>

    <target name="extract" depends="dl">
        <unzip src="${tmpdir}/ant-contrib.zip" dest="${tmpdir}"/>
    </target>

    <target name="docopy" depends="extract">
        <mkdir dir="${extjar}"/>
        <copy file="${tmpdir}/ant-contrib/ant-contrib-1.0b3.jar"
            tofile="${extjar}/ant-contrib.jar"/>
    </target>

    <target name="doit" depends="docopy">
        <taskdef resource="net/sf/antcontrib/antlib.xml"
            classpath="${extjar}/ant-contrib.jar"/>
        <var name="a" value="b"/>
        <var name="a" value="c"/>
        <echo message="a is ${a}"/>
    </target>
</project>

I now need to integrate this into the build system.

I also think there should be a separate distclean target along with
clean: clean wouldn't get rid of ant-contrib.jar, and the like... So
much to do :p

-- 
Francis Galiegue, fgaliegue at gmail.com
"It seems obvious [...] that at least some 'business intelligence'
tools invest so much intelligence on the business side that they have
nothing left for generating SQL queries" (Stéphane Faroult, in "The
Art of SQL", ISBN 0-596-00894-5)




More information about the Qt-jambi-interest mailing list