You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Leif Mortenson <le...@tanukisoftware.com> on 2002/08/14 17:07:46 UTC

[VOTE] Simplified root build.xml

A lot of the build problems that we have been having lately have been due to
people forgetting to set the correct dependencies in the right places. 
 And from
having the projects listed in the wrong order in the root build.xml.

I've gone through way too many times trying to work out the correct order to
build the projects so that they will work.

I would like to commit the attached build file.  It takes advantage of 
Ant's built
in dependency tree to build the subprojects.  Each project has a task 
that depends
on other tasks.

For example:
    <!-- Datasource -->
    <target name="prj-datasource" depends="prj-instrument, prj-pool">
        <ant dir="datasource" target="${subproject-target}"/>
    </target>

When you want to execute a target on all of the subprojects, you do so 
as follows:
    <target name="clean" description="Cleans each of the subprojects">
        <delete dir="${build.dir}" />
        <ant target="build-all-subprojects">
            <property name="subproject-target" value="real-clean"/>
        </ant>
    </target>

This is much simpler than the long lists of projects, which by the way 
were never all
the same.

Anyway, have a look, give it a try.  If there are no objections,  I'll 
go ahead and commit
it tomorrow.

Cheers,
Leif


Re: [VOTE] Simplified root build.xml

Posted by Leif Mortenson <le...@tanukisoftware.com>.
OK, Its committed.  Let me know if you have any problems with it.

Cheers,
Leif

Nicola Ken Barozzi wrote:

>
> Peter Royal wrote:
>
>> On Wednesday 14 August 2002 11:07 am, Leif Mortenson wrote:
>>
>>> I would like to commit the attached build file.  It takes advantage of
>>> Ant's built
>>> in dependency tree to build the subprojects.  Each project has a task
>>> that depends
>>> on other tasks.
>>
>>
>>
>> +1!! Why reinvent the wheel :)
>
>
> +1
>
> This is what Gump does now IIUC, and what I'm trying Gump to do 
> automatically from the gump descriptor in an easy way for normal 
> day2day builds.
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [VOTE] Simplified root build.xml

Posted by Nicola Ken Barozzi <ni...@apache.org>.
Peter Royal wrote:
> On Wednesday 14 August 2002 11:07 am, Leif Mortenson wrote:
> 
>>I would like to commit the attached build file.  It takes advantage of
>>Ant's built
>>in dependency tree to build the subprojects.  Each project has a task
>>that depends
>>on other tasks.
> 
> 
> +1!! Why reinvent the wheel :)

+1

This is what Gump does now IIUC, and what I'm trying Gump to do 
automatically from the gump descriptor in an easy way for normal day2day 
builds.

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [VOTE] Simplified root build.xml

Posted by Peter Royal <pr...@apache.org>.
On Wednesday 14 August 2002 11:07 am, Leif Mortenson wrote:
> I would like to commit the attached build file.  It takes advantage of
> Ant's built
> in dependency tree to build the subprojects.  Each project has a task
> that depends
> on other tasks.

+1!! Why reinvent the wheel :)
-pete

-- 
peter royal -> proyal@apache.org

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>