ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sujan Digumarti <Sujan.Diguma...@india.techspan.com>
Subject RE: I need help
Date Wed, 01 May 2002 08:31:23 GMT
The duplicate class problem occurs if the same java file is lying at two
different places in the source directory. 

If your not calling the build.xml in PROJECT F, then the files inside that
shouldn't get compiled.

I think there is a problem with  build.xml files you are using for the other
projects, just check to see you are not explicitly compiling PROJECT F
files.

Rgds,
Sujan

-----Original Message-----
From: sato [mailto:sato@grandsphere.com]
Sent: Wednesday, May 01, 2002 1:38 PM
To: Ant Users List
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

----- Original Message -----
From: "Sujan Digumarti" <Sujan.Digumarti@india.techspan.com>
To: "'Ant Users List'" <ant-user@jakarta.apache.org>
Sent: Wednesday, May 01, 2002 3:49 PM
Subject: RE: I need help


> Send the exact error to understand your problem better.
> Also use the -verbose option to see whats going on.
> -----Original Message-----
> From: sato [mailto:sato@grandsphere.com]
> Sent: Wednesday, May 01, 2002 12:19 PM
> To: Ant Users List
> Subject: I need help
>
>
> hello people,
> I have been using ANT for about one week, pretty much begginer, and
> I could not find out how to compile certain projects on the same directory
> for some projects I do not want to compile some projects after I get a
bunch
> of projects
> using ant CVS.
> I meant that I would like to compile PROJECT A PROJECT B PROJECT C PROJECT
> E.
> but not I do not want to compile  PROJECT F, just leave it.
> I did not mention PROJECT F in build.xml but ANT check out PROJECT F and
get
> me error
> which says "Duplication error".
> Anybody knows how to fix this?
> Please help me this.
>
>
>
> Here is directory trees of mine :
> /xxx/hoge/ PROJECT A
>                 PROJECT B
>                 PROJECT C
>                 PROJECT D
>                 PROJECT E
>                 PROJECT F
>
> 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>
>
> thank you for your kind.
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


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

--
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