ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Delsaux" <nicolas.dels...@free.fr>
Subject Javadoc task and property usage
Date Mon, 27 Nov 2000 09:42:15 GMT
Hi everybody !
I'm trying to use ant in an automated way : for automating my
javadoc/jar/javac process, I'm making in each of my packages a build file
which includes a more generalized build.
However, I'm always getting an erro for javadoc, which is entitled
[javadoc] javadoc: No package, class, or source file found named
MiriadMatrix.

As I've seen many messsages about the difficulty of writing a good javadoc,
I'm asking the list about help

Nicolas Delsaux

Sorry for my poor English...and

Thanks for ant, Ant Team, this tool is quite impressive and very powerfull.
I'm planning to use it for all our build process. Is there an import/export
tool with JBuilder projects files (also written in XML) ?

Here are joined my buildfiles.

----------------------------------------------------------------------------
---------------------------------------
<?xml version="1.0" encoding="iso-8859-1"?>
<project name="test" default="main" basedir=".">
 <property name="Package" value="MiriadMatrix"/>
 <property name="DocToMake" value="True"/>
 <target name="main">
  <ant dir=".." antfile="../construct.xml"/>
 </target>
</project>
----------------------------------------------------------------------------
---------------------------------------

The construct file contains the following instructions

----------------------------------------------------------------------------
---------------------------------------
<?xml version="1.0" encoding="iso-8859-1"?>
<project name="test" default="construct" basedir=".">
 <target name="init">
  <property name="DocDirectory" value="${Package}/docs/"/>
 </target>

<!-- package compilation unit -->
 <target name="compile" depends="doc,init">
  <javac srcdir="${Package}"
   destdir="."
   includes="*.java">
   <classpath>
    <pathelement location="externals/Jama.jar"/>
   </classpath>
  </javac>
 </target>

<!-- package documentation unit -->
 <target name="doc" if="DocToMake" depends="init">
  <mkdir dir="${DocDirectory}"/>
  <javadoc sourcepath="."
   packagenames="${Package}"
   destdir="${DocDirectory}"
   Private="true"
   Locale="fr_FR"
   Version="true"
   Use="true"
   Author="true"
   failonerror="true"

stylesheetfile="\\indonesie\d\serveurintranet\public\script\style-javadoc.cs
s">
   <link href="http://math.nist.gov/javanumerics/jama/doc/"/>
   <link href="http://java.sun.com/products/jdk/1.2/docs/api/"/>
  </javadoc>
 </target>

<!-- Full project generation. Must include, in a later version, the JAR
task -->
 <target name="construct" depends="compile,doc">
 </target>
</project>
----------------------------------------------------------------------------
---------------------------------------



Mime
View raw message