Hey,

  I know this is late, but, how about creating a target to create
javadoc?

Douglas WF Acheson
--- Jeff Rancier <[EMAIL PROTECTED]> wrote:
> Good idea.
>   -----Original Message-----
>   From: Jason Stell [mailto:[EMAIL PROTECTED]]
>   Sent: Wednesday, June 20, 2001 10:53 AM
>   To: [EMAIL PROTECTED]
>   Subject: jde-ant Buildfile template
> 
> 
>   I'm playing around with adding some buildfile creation
> functionality to
> jde-ant and am soliciting input/comments on a standard template for
> an Ant
> buildfile. Currently, my template produces something like the
> following:
>     <?xml version="1.0"?>
>     <!--
>        Ant Buildfile
>        Filename: build.xml
>        Created: Wed Jun 20 10:44:51 2001
>        Author: Jason Stell
>     -->
> 
>     <project name="project" default="compile"
>              basedir="f:/java/project/">
>       <!-- Location of source files -->
>       <property name="src.dir"
>                 value="./src"/>
>       <!-- Location to place build files -->
>       <property name="build.dir"
>                 value="./build"/>
>       <!-- Location of libraries -->
>       <property name="lib.dir"
>                 value="./lib"/>
> 
>       <!-- Pattern for source files -->
>       <patternset id="src.patterns">
>         <include name="**/*.java"/>
>       </patternset>
> 
>       <!-- Pattern for build files used in cleanup -->
>       <patternset id="clean.patterns">
>         <include name="**/*.class"/>
>       </patternset>
> 
>       <!-- Pattern for library files -->
>       <patternset id="lib.patterns">
>         <include name="**/*.jar"/>
>         <include name="**/*.zip"/>
>       </patternset>
> 
>       <!-- Class path item for library files -->
>       <path id="lib.class.path">
>         <fileset dir="${lib.dir}">
>           <patternset refid="lib.patterns"/>
>         </fileset>
>       </path>
> 
>       <!-- Class path for building -->
>       <path id="build.class.path">
>         <path refid="lib.class.path"/>
>         <pathelement path="${build.dir}"/>
>       </path>
> 
> 
>       <!-- Internal target for setup and initialization -->
>       <target name="init">
>         <tstamp/>
>         <mkdir dir="${build.dir}"/>
>       </target>
> 
> 
>       <!-- Source Compilation Target -->
>       <target name="compile"
>               description="Compile source files"
>               depends="init">
>         <echo message="Compiling sources in ${src.dir} to
> ${build.dir} "/>
>         <javac srcdir="${src.dir}"
>                destdir="${build.dir}"
>                failonerror="no">
>           <patternset refid="src.patterns"/>
>           <classpath>
>             <path refid="build.class.path"/>
>           </classpath>
>         </javac>
>       </target>
> 
> 
>       <!-- Cleanup Target -->
>       <target name="clean"
>               description="Remove built files"
>               depends="init">
>         <echo message="Removing build files from ${build.dir} "/>
>         <delete verbose="true">
>           <fileset dir="${build.dir}">
>             <patternset refid="clean.patterns"/>
>           </fileset>
>         </delete>
>       </target>
>     </project>
> 
>   ... Just a basic buildfile with 'compile' and 'clean' targets.  Of
> course,
> this will be using the same template mechanism (tempo) as jde-gen, so
> anyone
> can customize the appropriate variable. I just wanted to provide a
> default
> template that would be relatively useful. Any comments/input?
> 
>   Regards
>   Jason
> 
> 


=====
Douglas WF Acheson

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Reply via email to