ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: I need help
Date Wed, 01 May 2002 17:14:27 GMT

----- Original Message -----
From: "sato" <sato@grandsphere.com>
To: "Ant Users List" <ant-user@jakarta.apache.org>
Sent: Wednesday, May 01, 2002 1:07 AM
Subject: Re: I need help


> Thank you so much for your reply, Sujan.
> That was not "error" but "duplicate classes"
> what it says about when you run ANT is this.
>     [javac] /xxx/hoge/PROJECT F/packageName/updateMemberBean.java:16:
> duplicate clas
> s: PACKAGE A.updateMemberBean
>     [javac] public class updateMemberBean implements SessionBean {
>     [javac]
>
> It seems that ANT check out every PROJECT under /xxx/hoge directory
> when ANT compile PROJECTS which is on build.xml.
> I would think this is why "duplicate class" .
> In Project F we have same kinds of classes . that's why I do not want to
> compile PROJECT F
> even I get all PROJECTs I do not want to compile PROJECT F
>
> Thanks
>

> > Here is a build.xml source about compiling part:
> >   <target name="build_all">
> >     <ant dir="/xxx/hoge" antfile="projectA/build.xml"/>
> >     <ant dir="/xxx/hoge" antfile="projectB/build.xml"/>
> >     <ant dir="/xxx/hoge" antfile="projectC/build.xml"/>
> >     <ant dir="/xxx/hoge" antfile="projectD/build.xml"/>
> >     <ant dir="/xxx/hoge" antfile="projectE/build.xml"/>
> >   </target>
> >

you arent using the ant call right. You are starting the sub project build
files in your base directory, so it is pulling in projectF stuff

Use
   <ant dir="projectA"/>



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


Mime
View raw message