You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Baz <ba...@goodconsultants.com> on 2004/02/07 06:39:59 UTC

Comment in my Ant build structure please? and

All,

Would anyone please comment my ant build structure? I am trying to have
build.xml in different level of the tree so that it can be built from top
and also individual and also dependently. Here it goes:

/src/client
            /build.xml
/src/server
            /build.xml
            /common.xml
            /x86.properties
            /sparc.properties
            /src
                /java
                        /xServer/build.xml
                        /yServer/build.xml

Here are the list of items i need comments on:

1. There are three main build.xml. /src/server/build.xml calls different
targets of /src/server/src/java/xServer/build.xml and
/src/server/src/java/yServer/build.xml with <subant> and specific targets.

2.  xServer/build.xml and yServer/build.xml use <import
file="../../../common.xml"> to import file common.xml. common.xml contains
all functions like generic targets such as "compile" and "test". Developers
can declare their own "compile" target in xServer/build.xml if they want.

How is this structure?

Thanks

B.



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Question about property files... Re: Comment in my Ant build structure please? and

Posted by Baz <ba...@goodconsultants.com>.
All,

How can i use a property file? Meaning, can i load a property files from
other directories? How?

The reason i asked is because when I do it in cygwin with the structure i
mentioned in the email. xServer/build.xml IMPORTs../../../common.xml and
common.xml LOADs x86.properties file. When I do a "ant -v", it indicates
that it is looking for a property file in Windows' user directory instead of
../../../ directory and of course, the properties are not filled out.

What is the correct way to do it if I am going to use the following
structure?

Thanks

B.


----- Original Message ----- 
From: "Baz" <ba...@goodconsultants.com>
To: "Ant Users List" <us...@ant.apache.org>
Sent: Friday, February 06, 2004 9:39 PM
Subject: Comment in my Ant build structure please? <import> and <subant>


> All,
>
> Would anyone please comment my ant build structure? I am trying to have
> build.xml in different level of the tree so that it can be built from top
> and also individual and also dependently. Here it goes:
>
> /src/client
>             /build.xml
> /src/server
>             /build.xml
>             /common.xml
>             /x86.properties
>             /sparc.properties
>             /src
>                 /java
>                         /xServer/build.xml
>                         /yServer/build.xml
>
> Here are the list of items i need comments on:
>
> 1. There are three main build.xml. /src/server/build.xml calls different
> targets of /src/server/src/java/xServer/build.xml and
> /src/server/src/java/yServer/build.xml with <subant> and specific targets.
>
> 2.  xServer/build.xml and yServer/build.xml use <import
> file="../../../common.xml"> to import file common.xml. common.xml contains
> all functions like generic targets such as "compile" and "test".
Developers
> can declare their own "compile" target in xServer/build.xml if they want.
>
> How is this structure?
>
> Thanks
>
> B.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Comment in my Ant build structure please? and

Posted by Baz ¤Ñª° <sk...@yahoo.com>.
All,

Is it such a bad design that nobody wants to comment? :((

B.

--- In apache-ant@yahoogroups.com, "Baz" <ba...@g...> wrote:
> All,
> 
> Would anyone please comment my ant build structure? I am trying to 
have
> build.xml in different level of the tree so that it can be built from top
> and also individual and also dependently. Here it goes:
> 
> /src/client
>             /build.xml
> /src/server
>             /build.xml
>             /common.xml
>             /x86.properties
>             /sparc.properties
>             /src
>                 /java
>                         /xServer/build.xml
>                         /yServer/build.xml
> 
> Here are the list of items i need comments on:
> 
> 1. There are three main build.xml. /src/server/build.xml calls different
> targets of /src/server/src/java/xServer/build.xml and
> /src/server/src/java/yServer/build.xml with <subant> and specific 
targets.
> 
> 2.  xServer/build.xml and yServer/build.xml use <import
> file="../../../common.xml"> to import file common.xml. common.xml 
contains
> all functions like generic targets such as "compile" and "test". 
Developers
> can declare their own "compile" target in xServer/build.xml if they 
want.
> 
> How is this structure?
> 
> Thanks
> 
> B.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@a...
> For additional commands, e-mail: user-help@a...


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


RE: Comment in my Ant build structure please? and

Posted by Ray Tayek <rt...@freightgate.com>.

> -----Original Message-----
> From: Baz [mailto:barry@goodconsultants.com] 
> Sent: Friday, February 06, 2004 9:40 PM
> To: Ant Users List
> Subject: Comment in my Ant build structure please? <import> 
> and <subant>
>...
> Would anyone please comment my ant build structure? I am 
> trying to have build.xml in different level of the tree so 
> that it can be built from top and also individual and also 
> dependently. Here it goes:
> 
> /src/client
>             /build.xml
> /src/server
>             /build.xml
>             /common.xml
>             /x86.properties
>             /sparc.properties
>             /src
>                 /java
>                         /xServer/build.xml
>                         /yServer/build.xml
>

i like this idea (i really believe that the build file for com.foo.bar
belongs in com/foo/bar). but as you have discovered you need lot's of
"../../..."'s and noone seems to do this. i am trying to figure out how to
introduce ant and junit into an org. seems like most people put the build
file at too level. naict, they must have the src tree in cvs and projects in
a separate tree.

please keep us informed of how this works out.

thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org