ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pritesh saharey <prit...@sqatester.com>
Subject Re: javadoc task
Date Tue, 18 Mar 2003 08:31:14 GMT

suppose if your java source are inside src dir and your packaging is like this org.fun.make.sita,that
means like this

src-org-fun-make-sita-+-neha.java
		      |
		      +-sudha.java
		      |
		      +-riya.java
					  
and your build.xml is at the top level of src dir like this,

mike-+-src/org/fun/make/sita (iam considering your packing should be like this org.fun.make.sita)
	 |
	 +-build.xml
	 
then in your build.xml file write javdoc task like this 
<target name="create-apidoc" depends="init"
			description="Creats javadoc">
			<!--iam considering you had already written code for making dir in your build file and
you had created apidoc dir in it-->
		<javadoc destdir="${build.apidoc.dir}" 
				sourcepath="src"
				packagenames="org.*" 
				windowtitle="Mike api-doc"
				defaultexcludes="yes">
				<doctitle><![CDATA[<h1>Mike API</h1>]]></doctitle>
				<bottom><![CDATA[<i>Copyright &#169; 2003 Mike corp. All Rights Reserved.</i>]]></bottom>
				
		</javadoc>
	</target>
 and if you want to skip src dir and want to like this 
mike-+-org/fun/make/sita 
	 |
	 +-build.xml
	 
	 then just make a small change in your javadoc task put "." inseted of "src" like this in
sourcepath="."
	 
	 i think this will solve your problem.
//+++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++
--- Mike McNally <m5@works.com> wrote:
>I'm confused about the semantics of the "packageset" element in
>the javadoc task.  When I set up a package set such that it
>includes the top-level directory for the packages I'm interested
>in, it does not work because it skips that directory when making
>the package names.  On the other hand, if I set up the packageset
>with a "dir" that points to the parent of the top level of the
>package, then it thinks it's found no packages at all.
>
>
>--
>[ you are my main foo ] Mike McNally -- m5@works.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org

_____________________________________________________________
Join SQAtester.com Community  ---> http://www.sqatester.com/testersarea/joinus.htm

_____________________________________________________________
Select your own custom email address for FREE! Get you@yourchoice.com w/No Ads, 6MB, POP &
more! http://www.everyone.net/selectmail?campaign=tag

Mime
View raw message