[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ant problem



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">
    <javadoc sourcepath="src" packagenames="fr.test.absolument.*"
     destdir="doc/javadoc" author="true" version="true" access="private"
     windowtitle="${version}" doctitle="${version}" 
     bottom="Copyright &#169; All Rights Reserved." >
      <classpath>
	<fileset dir="lib/">
	  <include name="**/*.jar"/>
        </fileset>
      </classpath>
    </javadoc>
</target>

...

<target name="jcsc-prepare">
    <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 ! 

it is the same problem with jcsc task
i have a problem with variable

could you help me ?


-- 
Lam

"Un autre jour en France, des prières pour l'audience, et quelques
fascisants autour de 15%, Charly défend moi !" (Noir Désir)



Reply to: