You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Alex Egg <eg...@gmail.com> on 2006/07/05 22:58:23 UTC
FixCRLF and Concat classes question
Hi,
I notice that the Concat class constructor called a reset method which reads
a system property called line.separator, like this:
public Concat <javascript:searchRef('Concat')>() {
reset <javascript:searchRef('reset')>();
}
/**
* Reset state to default.
*/
public void reset <javascript:searchRef('reset')>() {
append <javascript:searchRef('append')> = false;
forceOverwrite <javascript:searchRef('forceOverwrite')> = true;
destinationFile <javascript:searchRef('destinationFile')> = null;
encoding <javascript:searchRef('encoding')> = null;
outputEncoding <javascript:searchRef('outputEncoding')> = null;
fixLastLine <javascript:searchRef('fixLastLine')> = false;
filterChains <javascript:searchRef('filterChains')> = null;
footer <javascript:searchRef('footer')> = null;
header <javascript:searchRef('header')> = null;
binary <javascript:searchRef('binary')> = false;
outputWriter <javascript:searchRef('outputWriter')> = null;
textBuffer <javascript:searchRef('textBuffer')> = null;
eolString <javascript:searchRef('eolString')> = System
<javascript:searchRef('System')>.getProperty
<javascript:searchRef('getProperty')>("line.separator");
rc <javascript:searchRef('rc')> = null;
}
Now, when I run my ant build, I specify the property via the command line
like, -Dline.separator=\r\n. However, the file I generate with Concat only
uses LF's as line breaks? Why is this so, and how can I specify the line
breaks I want Concat to use? Does anybody have expiring specif tying line
breaks with Concat, and did it work?
Thanks
Re: Age of files/directories
Posted by Guru Balse <gu...@oracle.com>.
Thanks, Antoine.
Focusing on "PatternSets", I completely missed the "Selectors" part of
the manual :-) duh!
Antoine Levy-Lambert wrote:
> Hello Guru,
>
> use the delete task with nested fileset(s) nesting themselves a date
> selector.
>
> Read the "Concept and Types" section of the ant manual, all the cool
> stuff is there.
>
> Antoine
>
> Guru Balse wrote:
>
>> From a given directory, I wish to delete any directory that is of a
>> certain age (example: more than 7 days old). I could not find any
>> task/macro/addin that will support this requirement.
>>
>> Any suggestions?
>>
>> Thanks in advance.
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Age of files/directories
Posted by Antoine Levy-Lambert <an...@gmx.de>.
Hello Guru,
use the delete task with nested fileset(s) nesting themselves a date
selector.
Read the "Concept and Types" section of the ant manual, all the cool
stuff is there.
Antoine
Guru Balse wrote:
> From a given directory, I wish to delete any directory that is of a
> certain age (example: more than 7 days old). I could not find any
> task/macro/addin that will support this requirement.
>
> Any suggestions?
>
> Thanks in advance.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Age of files/directories
Posted by Guru Balse <gu...@oracle.com>.
From a given directory, I wish to delete any directory that is of a
certain age (example: more than 7 days old). I could not find any
task/macro/addin that will support this requirement.
Any suggestions?
Thanks in advance.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org