ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <sflo...@nc.rr.com>
Subject Re: Passing list of classes to exclude from build as macrodef attribute
Date Fri, 09 Mar 2012 20:53:55 GMT

I'm fairly certain you may be able to avoid the duplication...

>From the documentation for javac,

"This task forms an implicit FileSet and supports most attributes of 
<fileset> (dir becomes srcdir) as well as the nested <include>, <exclude>

and <patternset> elements."

You can probably come up with a way to reuse the notation...  I'd have to 
give it some more thought...

On Fri, 9 Mar 2012, Noam Postavsky wrote:

> On Fri, Mar 9, 2012 at 10:18 AM, Scot P. Floess <sfloess@nc.rr.com> wrote:
>> <jpp-javac-convert>
>>    <additional>
>>        <exclude .../>
>>    </additional>
>>
>>    <post>
>>        <delete dir="foo"/>
>>    </post>
>> </jpp-javac-convert>
>>
>>
>> Arguably, a little uglier notation...
>
> I'm not worried about notation, but I'd like to avoid repetition;
> using this method I would need to do repeat every excluded class name
> twice: once for the source, and once for the class file.
>
> <jpp-javac-convert>
>  <exclude-src>
>     <exclude name="**/Class1.java" />
>     ...
>  </exclude-src>
>  <rm-class>
>     <delete file="**/Class1.class" />
>     ...
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Scot P. Floess             RHCT  (Certificate Number 605010084735240)
Chief Architect FlossWare  http://sourceforge.net/projects/flossware
                            http://flossware.sourceforge.net
                            https://github.com/organizations/FlossWare

Mime
View raw message