ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From garrett smith <javadevm...@yahoo.com>
Subject Re: Command line flag to toggle javadoc
Date Tue, 22 Oct 2002 01:42:00 GMT
That isn't working for me -- a javadoc target. I get a build, but no javadoc.

[localhost:reg/WEB-INF/classes] garrett% ant javadoc

But I don't get any javadoc, see:

Buildfile: build.xml

build:

BUILD SUCCESSFUL

Total time: 2 seconds
[localhost:reg/WEB-INF/classes] garrett% 

Well, I don't know. Here's the whole file, so if someone wants to point out my
mistake.

<?xml version="1.0"?>
  
<project name="login" default="build" basedir=".">

 <property environment="env"/>
 
    <target name="build">

        <javac 
        	srcdir="."
			debug="true"
			optimize="false"
			includes="**/*.java">
			
			<classpath>
				<pathelement location="/development/tomcat/common/lib/servlet.jar"/>
				<pathelement location="/development/tomcat/common/lib/jdbc2_0-stdext.jar"/>
			</classpath>
		</javac>
    </target>
    
    <target name="javadoc" depends='build'>
	  <javadoc packagenames="com.dhtmlkitchen.*"
			   sourcepath="../classes"
 			   defaultexcludes="yes"
			   destdir="../../docs/api"
			   author="true"
			   version="true"
			   use="true"
			   windowtitle="Registration Application">
		   
		<doctitle><![CDATA[<h1>Registration Application</h1>]]></doctitle>
		<bottom><![CDATA[<i>Copyright &#169; 2002 Garrett Smith. All Rights
Reserved.</i>]]></bottom>
		<group title="JSP Custom Tags and Utilites"
packages="com.dhtmlkitchen.util:com.dhtmlkitchen.tags"/>
		<group title="Servlets and Beans" packages="com.dhtmlkitchen"/>
		<group title="For Sending Formatted Email" packages="com.dhtmlkitchen.mail"/>
		<group title="Database Routines for Looking up Users"
packages="com.dhtmlkitchen.db"/>
		<link href="http://developer.java.sun.com/developer/products/xml/docs/api/"/>
		<classpath>
			<pathelement location="/development/tomcat/common/lib/servlet.jar"/>
			<pathelement location="/development/tomcat/common/lib/jdbc2_0-stdext.jar"/>
		</classpath>
	  </javadoc>
    </target>

    		
	<target name="jar" depends="build">
	  <jar jarfile="registration.jar" basedir="." />
	</target>
	
	
</project>


Garrett

--- Jacob Kjome <hoju@visi.com> wrote:
> Hello garrett,
> 
> Put <javadoc> in its own target and make sure that the default target
> doesn't depend on that target.  That way, you only run javadoc when
> you explicitly want to by calling "ant javadoc".
> 
> Jake
> 
> Monday, October 21, 2002, 11:36:56 AM, you wrote:
> 
> gs> Hey,
> 
> gs> How can I set a flag to determine if javadoc is run or not when I run
> ant. What
> gs> I do now is just comment it out with an xml comment, like this:
> 
> gs> <!--  <javadoc packagenames="com.dhtmlkitchen.*" -->
> gs> ... et c.
> 
> gs> Then when I want javadoc, I uncomment it. Show me a better way.
> 
> gs> =====
> gs> Garrett Needs A Job
> 
> gs> __________________________________________________
> gs> Do you Yahoo!?
> gs> Y! Web Hosting - Let the expert host your web site
> gs> http://webhosting.yahoo.com/
> 
> gs> --
> gs> To unsubscribe, e-mail:  
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> gs> For additional commands, e-mail:
> <mailto:ant-user-help@jakarta.apache.org>
> 
> 
> 
> -- 
> Best regards,
>  Jacob                            mailto:hoju@visi.com
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
> 


=====
Garrett Needs A Job

__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

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