ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "juan.velez" <>
Subject How to include a file excluded by an "exclude"
Date Wed, 10 Jun 2009 19:20:58 GMT

I am trying to create a war file whose WEBINF folder must not have any
*.properties file except for one defined by property ${}. I
searched the forum and someone had asked a similar question and the answer
was to user selectors. I tried such but with no luck. Any ideas?

        <war destfile="${build.dist}/${}"

	        <fileset dir="${}"> 
                <include name="**/index.html"/>
                <include name="**/status.jsp"/>
      		    <exclude name="**/vssver2.scc"/>   
            <webinf dir="${}/WEB-INF">
                <exclude name="**/web.xml" />
                <!-- Exclude all properties files. The following does not
work as it fails with
doesn't support the nested "not" element. -->
                <exclude name="*.properties">
name="${}/WEB-INF/${}" />
                <!-- Exclude all bsc.application-base.xml files -->
                <exclude name="*.application-base.xml" />
                <exclude name="**/vssver2.scc"/>
                <include name="**" />

            <lib dir="${build.lib}">
                <!-- Exclude the Oracle JDBC Driver library -->
                <exclude name="${ojdbc14.jar}" />
                <!-- Exclude the Tomcat 6.0 Servlet API library -->
                <exclude name="${servlet-api.jar}" />
                <exclude name="**/vssver2.scc"/>

View this message in context:
Sent from the Ant - Users mailing list archive at

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

View raw message