You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by hetan shah <he...@yahoo.com> on 2000/12/13 01:34:33 UTC

ANT" Excludes.

I sent this mail in the morning and am still waiting for the reply. Can someone please reply this mail.

TIA.

 

Hello,

What would be the best way to exclude a directory and/or everything under that directory in a target ? Here is my setup.

<target name="init">
    <!-- Set up application info -->
    <property name="app.name" value="geoPage"/>
    <property name="app.version" value="0.0.1"/>
    <property name="app.year" value="2000"/>

    <!-- source code and document info -->
    <property name="src.dir"  value="."/>
    <property name="doc.dir"  value="./doc"/>
    <property name="lib.dir"  value="./lib"/>
    <property name="ssi.dir"  value="./geoPage/resources/base"/>

    <!-- package to be javadocs -->
    <property name="packages" value="geoPage.*"/>

    <!-- build info -->
    <!--property name="build.dir"          value="ant.build"/-->
    <property name="build.dir"          value="ant.output"/>
    <property name="build.classes"      value="classes"/>
    <property name="build.lib"          value="${build.dir}/lib"/>
    <property name="build.javadocs"     value="${build.dir}/javadocs"/>
    <property name="build.xmlc.dir"     value="${build.dir}/xmlcout/"/>
    <property name="build.debug"        value="on"/>

    <property name="dist.dir" value="./${app.name}-${app.version}"/>
  </target>

 

 <target name="xmlc" depends="prepare">
    <mkdir dir="${build.xmlc.dir}"/>
    <xmlc srcdir="${src.dir}" sourceout="${build.xmlc.dir}" includes="**/*.html" 
    excludes="${build.xmlc.dir}/jdoc/**">
        <arg name="dom" param1="xerces"/>
        <arg name="ssi"/>
        <arg name="warnings" param1="false"/>
        <arg name="generate" param1="both"/>
    </xmlc>
  </target>

For some reason ant does not exclude anything from the build.xmlc.dir/jdoc directory. Any pointers are much appreciated.

-Hetan






---------------------------------
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.

Re: ANT" Excludes.

Posted by Peter Donald <do...@apache.org>.
At 04:34  12/12/00 -0800, hetan shah wrote:
>I sent this mail in the morning and am still waiting for the reply. Can
>someone please reply this mail. TIA.


give us a bit of time ;)

>What would be the best way to exclude a directory and/or everything under
that 
>directory in a target ? Here is my setup.

hmm - what version of ant are you using (type ant -version). In recent
versions of Ant the target "init" is not treated specially and will not be
called first. In which case you may want xmlc to depend on init.

What could be happening is that the property "build.xmlc.dir" is not
defined before usage which means that ${build.xmlc.dir} will not get
exapnded. Could uyou check this is not the case.

If not could you try run ant with verbose mode "ant -v" and read the logs
to see what it is saying. If you still can't figure it out repost your
question.

Cheers,

Pete

*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |
*-----------------------------------------------------*