ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikael Petterson (KI/EAB)" <mikael.petter...@ericsson.com>
Subject question about excluding packages
Date Wed, 12 Oct 2005 11:41:14 GMT
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


Mime
View raw message