Ant Javadoc setting : JavaDoc Document « Ant « Java

Home
Java
1.2D Graphics GUI
2.3D
3.Advanced Graphics
4.Ant
5.Apache Common
6.Chart
7.Class
8.Collections Data Structure
9.Data Type
10.Database SQL JDBC
11.Design Pattern
12.Development Class
13.EJB3
14.Email
15.Event
16.File Input Output
17.Game
18.Generics
19.GWT
20.Hibernate
21.I18N
22.J2EE
23.J2ME
24.JDK 6
25.JNDI LDAP
26.JPA
27.JSP
28.JSTL
29.Language Basics
30.Network Protocol
31.PDF RTF
32.Reflection
33.Regular Expressions
34.Scripting
35.Security
36.Servlets
37.Spring
38.Swing Components
39.Swing JFC
40.SWT JFace Eclipse
41.Threads
42.Tiny Application
43.Velocity
44.Web Services SOA
45.XML
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
SCJP
Java » Ant » JavaDoc DocumentScreenshots 
Ant Javadoc setting
 

<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.-->
<project name="actions" default="default" basedir=".">
    <description>Builds, tests, and runs the project Actions.</description>
    <import file="nbproject/build-impl.xml"/>
    <import file="nbproject/profiler-build-impl.xml"/>
    
    <target name="-post-compile-test">
        <copy file="test/actions/ActionsXML1.xml" todir="build/classes/test"/>
        <copy file="test/actions/Bundle1.properties" todir="build/classes/test"/>
    </target>
    
    <target name="-post-compile-test-single" depends="-post-compile-test"/>
    

    <target name="cleanjavadoc" description="Delete javadoc files from the web site area">
        <!-- Delete all the javadoc files, so no stale files for deleted 
         classes can possibly be around (though nobody should really be 
         deleting any classes-->
        <delete failonerror="false">
            <fileset dir="www/javadoc" includes="**/*.html"/>
        </delete>
    </target>    
    
    <target name="javadoc">
        <mkdir dir="dist/javadoc"/>
        <property file="${basedir}/nbproject/project.properties"/>
        <property file="${basedir}/nbproject/private/private.properties"/>
        <javadoc overview="${basedir}/doc/api/overview.html" 
                 destdir="dist/javadoc" 
                 source="1.5" 
                 notree="${javadoc.notree}" 
                 use="${javadoc.use}" 
                 nonavbar="${javadoc.nonavbar}" 
                 noindex="${javadoc.noindex}" 
                 splitindex="${javadoc.splitindex}" 
                 author="${javadoc.author}" 
                 version="${javadoc.version}" 
                 windowtitle="${javadoc.windowtitle}" 
                 private="${javadoc.private}" 
                 failonerror="true" stylesheetfile="doc/api/stylesheet.css"
                 >
            <classpath>
                <path path="${javac.classpath}"/>
            </classpath>

            <packageset dir="src" defaultexcludes="yes">
              <include name="actions/**" />
              <exclude name="actions/ui/**" />
              <exclude name="actions/borrowed/**"/>
            </packageset>            
        </javadoc>
        <copy file="doc/api/actions.dtd" tofile="dist/javadoc/actions.dtd"/>
        <copy file="doc/api/actionsDoc.html" tofile="dist/javadoc/actionsDoc.html"/>
    </target>
    
    <target name="-post-jar">
        <echo message="Copying jar to JNN dev dir"/>
        <delete failonerror="false" file="../jnn_new/jnn/lib/Actions.jar"/>
        <delete failonerror="false" file="../jnn_new/jnn/jnn.app/Contents/Resources/Java/lib/Actions.jar"/>
        <copy failonerror="true" file="dist/Actions.jar" todir="../jnn_new/jnn/lib/"/>
        <copy failonerror="true" file="dist/Actions.jar" todir="../jnn_new/jnn/jnn.app/Contents/Resources/Java/lib/"/>
    </target>
    
    <target name="release" depends="jar,cleanjavadoc,javadoc" description="Prepare a new release">
        <copy file="dist/Actions.jar" todir="www"/>
        <zip destfile="www/ActionsAPI.zip" basedir="dist/javadoc" update="false" whenempty="fail" compress="true"/>
        <mkdir dir="www/javadoc"/>
        <copy todir="www/javadoc">
            <fileset dir="dist/javadoc" includes="**"/>
        </copy>
    </target> 
    
</project>

   
  
Related examples in the same category
1.Checking that the documentation is up to date
2.Generate Javadocs for the application
3.Generate Javadocs for the application, using offline package-list files
4.Assemble the documentation
5.Zip the documentation
6.Generate Javadoc from Ant
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.