ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikael Petterson (KI/EAB)" <>
Subject question about excluding packages
Date Wed, 12 Oct 2005 11:41:14 GMT

I want to exclude a package, common, in my java application and then execute javancss
from ant.

How can I exclude the common package in my source tree and then run my javancss.

This is my build.xml (see below).




<project name="bem" default="javancss" basedir=".">
    <target name="javancss">
        <!-- TODO define script. See Help menu or -->
        <property name="src.dir" value="/vobs/rbs/sw/rbssw1/bem_subsys/bemcsd/src"/>
        <property name="javancss.home.dir" location="/home/eraonel/pub/javancss21.41"/>
        <property name="javancss.exec" location="${javancss.home.dir}/bin/javancss"/>
        <property name="opt1" value="-ncss"/>
        <property name="opt2" value="-recursive"/>
        <property name="opt3" value="-all"/>
        <!-- Option 4 is only for xml output -->
        <!--<property name="opt4" value="-xml"/>-->

        <path id="filtered.src.dir">
         <dirset dir="${src.dir}">
          <exclude name="common"/>
        <path id="class.path">
             <fileset dir="${javancss.home.dir}/lib">
                <include name="**/*.jar"/>
        <java classname="javancss.Main" fork="true">
         <arg value="${opt1}"/>
         <arg value="${opt2}"/>
         <arg value="${opt3}"/>
         <!--<arg value="${opt4}"/>-->
         <arg pathref="filtered.src.dir"/>
         <classpath refid="class.path"/> 


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message