Lam wrote: > hi
> i have a little problem with ant task > i try this : > <target name="init"> > ... > <property name="jcsc-dir" value="/usr/local/src/jcsc"/> > </target> > ... > <target name="javadoc" depends="javadoc-prepare" description="Make javadoc"> Add dependancy to init here. > <javadoc sourcepath="src" packagenames="fr.test.absolument.*" > destdir="doc/javadoc" author="true" version="true" access="private" > windowtitle="${version}" doctitle="${version}" > bottom="Copyright © All Rights Reserved." > > <classpath> > <fileset dir="lib/"> > <include name="**/*.jar"/> > </fileset> > </classpath> > </javadoc> > </target> > ... > <target name="jcsc-prepare"> Add depends="init" here. > <mkdir dir="doc/jcsc"/> > <copy todir="/doc/jcsc"> > <fileset dir="${jcsc-dir}"/> > </copy> > <copy file="/usr/local/src/jcsc/html/xml/index.html" todir="doc/jcsc/"/> > </target> > <taskdef name="jcsc" classname="rj.tools.jcsc.ant.JCSCTask" /> > <target name="jcsc" depends="jcsc-prepare" description="Check coding"> > <jcsc rules="etc/jcsc.jcsc" startpackage="fr" destdir="doc/jcsc" worstcount="20"> > <fileset dir="src" includes="**/*.java"/> > </jcsc> > </target> > ant javadoc is ok > but if i replace in javadoc task > destdir="doc/javadoc" > by > destdir="${doc}/javadoc" , with <property name="doc" value="doc"/> in > init target, i can't make javadoc ! See above, you should depend on the init target. Regards, Andreas -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]