ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Ant1.52 javadoc problem
Date Wed, 19 Mar 2003 19:38:34 GMT
You must use a nested <fileset> to specify specifically which source files
to Javadoc. Don't forget to grop you sourcepath attribute when to do so,
otherwise you'll get duplicate classes warning. Learned about that one last
Monday ;-) packagenames, as it name indicates, is for package names, not
source names. --DD

-----Original Message-----
From: Anand Krishniyer [mailto:akrishni@savvion.com] 
Sent: Wednesday, March 19, 2003 1:25 PM
To: Ant Users List
Subject: Re: Ant1.52 javadoc problem

Hi Dominique
Thanks for the quick response.
Yes we have been mentioning the file names in the packagename attribute.
i.e we have several files in the dir ghi and want to generate the javadocs
only for file1,2,3 only. This was working for Ant1.41. Any suggestions?
Thanks in advance.
Anand

Dominique Devienne wrote:

> You have file1, file2, file3 at the end of your package names... Package
> names don't end in file names... Or are file1/2/3 actual directories? --DD
>
>                packagenames="com.abc.def.ghi.file1,
>                                         com.abc.def.ghi.file2,
>                                         com.abc.def.ghi.file3
>                                     ">
>
> -----Original Message-----
> From: Anand Krishniyer [mailto:akrishni@savvion.com]
> Sent: Wednesday, March 19, 2003 12:59 PM
> To: user@ant.apache.org
> Subject: Ant1.52 javadoc problem
>
> Hi
> I recently upgraded to ant1.52 from ant1.41 and all the javadoc scripts
> stopped working. This is a sample of a javadoc task i am using.
>
>  <property name="src.dir" value="../src"/>
>   <javadoc sourcepath="${src.dir}"
>                destdir="${ghiAPI.dir}"
>                public="true"
>                version="true"
>                windowtitle="ghiAPI"
>                doctitle="ghi API Reference Guide"
>                nodeprecated="true"
>                notree="true"
>                classpath="${additional.class}"
>                packagenames="com.abc.def.ghi.file1,
>                                         com.abc.def.ghi.file2,
>                                         com.abc.def.ghi.file3
>                                     ">
>
>       </javadoc>
> This task worked perfectly fine with Ant1.42. now I get the following
> errors
>
>  [javadoc] /home/akrishni/sbm_latest/sbm/src doesn't contain any
> packages, dropp
> ing it.
>
> BUILD FAILED
> file:/home/akrishni/sbm_latest/sbm/buildscripts/buildBIJavadoc.xml:57:
> No source
> files and no packages have been specified.
>         at
> org.apache.tools.ant.taskdefs.Javadoc.execute(Javadoc.java:1534)
>         at org.apache.tools.ant.Task.perform(Task.java:341)
>         at org.apache.tools.ant.Target.execute(Target.java:309)
>         at org.apache.tools.ant.Target.performTasks(Target.java:336)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
>
>         at
> org.apache.tools.ant.Project.executeTargets(Project.java:1255)
>         at org.apache.tools.ant.Main.runBuild(Main.java:609)
>         at org.apache.tools.ant.Main.start(Main.java:196)
>         at org.apache.tools.ant.Main.main(Main.java:235)
>
> I am using java1.3.1_02. I would like to fix this without much change as
> there are several javadoc buildscripts which needs to be changed.
> Has anyone faced similar problems with Ant1.52.
> Thanks in advance.
>
> Anand
>
> ---------------------------------------------------------------------
> 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


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

Mime
View raw message