You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Mikael Petterson (KI/EAB)" <mi...@ericsson.com> on 2005/10/12 13:41:14 UTC

question about excluding packages

Hi,

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).

cheers,

//mikael


build.xml
===============

<project name="bem" default="javancss" basedir=".">
    <target name="javancss">
        <!-- TODO define script. See Help menu or http://ant.apache.org/ -->
        <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"/>
        </dirset>
        </path>
        
        <path id="class.path">
             <fileset dir="${javancss.home.dir}/lib">
                <include name="**/*.jar"/>
             </fileset>             
        </path>
        
        <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"/> 
       </java>

        
    </target>
</project>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org