On 3/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

You could do the last two instructions in another target.

<available property="loggedin" file="SomeFileOnlyOn_PeopleApacheOrg"/>
<target name="publish" if="loggedin">
    <property name="html.dir"
value="/www/incubator.apache.org/ivy/downloads/latest/"/>
    <delete>
        <fileset dir="${html.dir}">
    </delete>
    <copy todir="${html.dir}">
        <fileset dir="build/distrib"/>
    </copy>
</target>


Nice tip to use the available to be sure we are in the good environment.
Thanks, I will follow your suggestion.

- Xavier

Jan

>-----Ursprüngliche Nachricht-----
>Von: Xavier Hanin [mailto:[EMAIL PROTECTED]
>Gesendet: Donnerstag, 8. März 2007 11:35
>An: [email protected]
>Betreff: Ivy latest version publication
>
>Hi All,
>
>I've created a new snapshot built from the trunk, and improved
>the build
>script to ease this process.
>
>Now to create such a snapshot here are the steps to follow:
>login on people.apache.org
>svn co https://svn.apache.org/repos/asf/incubator/ivy/core/trunk/ ivy
>cd ivy
>ant snapshot
>rm /www/incubator.apache.org/ivy/downloads/latest/*
>cp build/distrib/* /www/incubator.apache.org/ivy/downloads/latest/
>
>the last two steps could be part of the ant build script, but
>I don't know
>if it's a good idea or not, since you need to be logged in on
>apache machine
>to perform it. Is it a problem?
>
>- Xavier
>

Reply via email to