You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by "J. Michael Caine" <jm...@alum.rpi.edu> on 2000/12/01 22:40:04 UTC

root build "all"

i'm currently using a build.xml at the root level of my dev tree to handle
all of my projects.  (i do not want to package everything i do under the
same root for various reasons.)  is there a better way to do this (using
ant, not a shell script) than this?:

(by the way, is ant-dev the right place to post a message like this, or
ant-dev-help, or another?)

<project name="all" default="dist" basedir="/development">

  <target name="init">
    <property name="proj1" value="adapted"/>
    <property name="proj2" value="example"/>
    <property name="proj3" value="jmc"/>
    <property name="proj4" value="RDBIServer"/>
    <property name="sources" value="${basedir}/sources"/>
    <deltree dir="${basedir}/temp"/>
  </target>

  <target name="compile" depends="init">
    <ant antfile="${sources}/${proj1}/build.xml" dir="${basedir}"
target="compile"/>
    <ant antfile="${sources}/${proj2}/build.xml" dir="${basedir}"
target="compile"/>
    <ant antfile="${sources}/${proj3}/build.xml" dir="${basedir}"
target="compile"/>
    <ant antfile="${sources}/${proj4}/build.xml" dir="${basedir}"
target="compile"/>
  </target>

  <target name="dist" depends="compile">
    <ant antfile="${sources}/${proj1}/build.xml" dir="${basedir}"
target="dist"/>
    <ant antfile="${sources}/${proj2}/build.xml" dir="${basedir}"
target="dist"/>
    <ant antfile="${sources}/${proj3}/build.xml" dir="${basedir}"
target="dist"/>
    <ant antfile="${sources}/${proj4}/build.xml" dir="${basedir}"
target="dist"/>
  </target>

  <target name="doc" depends="compile">
    <ant antfile="${sources}/${proj1}/build.xml" dir="${basedir}"
target="doc"/>
    <ant antfile="${sources}/${proj2}/build.xml" dir="${basedir}"
target="doc"/>
    <ant antfile="${sources}/${proj3}/build.xml" dir="${basedir}"
target="doc"/>
    <ant antfile="${sources}/${proj4}/build.xml" dir="${basedir}"
target="doc"/>
  </target>

  <target name="clean" depends="init">
    <ant antfile="${sources}/${proj1}/build.xml" dir="${basedir}"
target="clean"/>
    <ant antfile="${sources}/${proj2}/build.xml" dir="${basedir}"
target="clean"/>
    <ant antfile="${sources}/${proj3}/build.xml" dir="${basedir}"
target="clean"/>
    <ant antfile="${sources}/${proj4}/build.xml" dir="${basedir}"
target="clean"/>
  </target>

</project>


RE: root build "all"

Posted by "J. Michael Caine" <jm...@alum.rpi.edu>.
thank you for your answer (other message).  and i will use ant-user for such
things now!

-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org]
Sent: Monday, December 04, 2000 12:34 AM
To: ant-dev@jakarta.apache.org
Subject: Re: root build "all"


J. Michael Caine <jm...@alum.rpi.edu> wrote:

> (by the way, is ant-dev the right place to post a message like this,
> or ant-dev-help, or another?)

ant-user@jakarta.apache.org seems most appropriate.

Please take a look at the archives, you might find answers to your
questions there. The one at <http://marc.theaimsgroup.com/> is
searchable.

Stefan


RE: root build "all"

Posted by "J. Michael Caine" <jm...@alum.rpi.edu>.
ah, yes, i see... i must have downloaded an old version of ant, somehow, and
i was looking at the local docs.  thanks.

-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org]
Sent: Monday, December 04, 2000 11:50 PM
To: ant-dev@jakarta.apache.org
Subject: Re: root build "all"


J. Michael Caine <jm...@alum.rpi.edu> wrote:

> i've noticed other new users using ant-dev who might should use
> ant-user...  perhaps they followed the same trail i did ~ in
> docs/index.html, in the Feedback section, there is a mailto: for
> ant-dev-subscribe, but no mention of ant-user that i found.

You must be looking at a very old documentation. The docs/index.html
for Ant 1.2 contains a mailto link for ant-user as well, I think it
has been added at the same day ant-user has been created.

Stefan


Re: root build "all"

Posted by Stefan Bodewig <bo...@apache.org>.
J. Michael Caine <jm...@alum.rpi.edu> wrote:

> i've noticed other new users using ant-dev who might should use
> ant-user...  perhaps they followed the same trail i did ~ in
> docs/index.html, in the Feedback section, there is a mailto: for
> ant-dev-subscribe, but no mention of ant-user that i found.

You must be looking at a very old documentation. The docs/index.html
for Ant 1.2 contains a mailto link for ant-user as well, I think it
has been added at the same day ant-user has been created.

Stefan

RE: root build "all"

Posted by "J. Michael Caine" <jm...@alum.rpi.edu>.
i've noticed other new users using ant-dev who might should use ant-user...
perhaps they followed the same trail i did ~ in docs/index.html, in the
Feedback section, there is a mailto: for ant-dev-subscribe, but no mention
of ant-user that i found.  i also don't remember seeing an ant-user among
the options that came with the subscription confirmation email.  perhaps we
should be routed better so we aren't bothering the wrong people with
stuff...?

jmichael

-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org]
Sent: Monday, December 04, 2000 12:34 AM
To: ant-dev@jakarta.apache.org
Subject: Re: root build "all"


J. Michael Caine <jm...@alum.rpi.edu> wrote:

> (by the way, is ant-dev the right place to post a message like this,
> or ant-dev-help, or another?)

ant-user@jakarta.apache.org seems most appropriate.

Please take a look at the archives, you might find answers to your
questions there. The one at <http://marc.theaimsgroup.com/> is
searchable.

Stefan


Re: root build "all"

Posted by Stefan Bodewig <bo...@apache.org>.
J. Michael Caine <jm...@alum.rpi.edu> wrote:

> (by the way, is ant-dev the right place to post a message like this,
> or ant-dev-help, or another?)

ant-user@jakarta.apache.org seems most appropriate.

Please take a look at the archives, you might find answers to your
questions there. The one at <http://marc.theaimsgroup.com/> is
searchable.

Stefan