Skip to content

Commit 9c1f4d9

Browse files
committed
provide a magic property that overrides temp directory
1 parent 45fd589 commit 9c1f4d9

31 files changed

Lines changed: 214 additions & 58 deletions

WHATSNEW

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ Other changes:
1010
* rmic has been removed from Java 15. The task will now throw an
1111
exception if you try to use it while running Java 15 or newer.
1212

13+
* a new property ant.tmpdir provides improved control over the
14+
location Ant uses to create temporary files
15+
1316
Changes from Ant 1.9.13 TO Ant 1.9.14
1417
=====================================
1518

manual/Tasks/cab.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ <h3>Description</h3>
4141
(<code>dir</code> becomes <code>basedir</code>) as well as the nested
4242
<code>&lt;include&gt;</code>, <code>&lt;exclude&gt;</code> and
4343
<code>&lt;patternset&gt;</code> elements.</p>
44+
45+
<p>On non-Unix platforms this task writes the list of files to archive
46+
to the <a href="../running.html#tmpdir">temporary directory</a>.</p>
47+
4448
<h3>Parameters</h3>
4549
<table border="1" cellpadding="2" cellspacing="0">
4650
<tr>

manual/Tasks/cvstagdiff.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ <h3>Description</h3>
3333
for certain other cvs clients - like CVSNT for example - and some
3434
operation may fail when using such an incompatible client.
3535
</p>
36+
<p>This task captures the output of the CVS command in a file inside of
37+
the <a href="../running.html#tmpdir">temporary directory</a>.</p>
3638
<h3>Parameters</h3>
3739
<table border="1" cellpadding="2" cellspacing="0">
3840
<tr>

manual/Tasks/ejb.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,6 +1613,9 @@ <h3><a name="ejbjar_jonas">JOnAS (Java Open Application Server) element</a></h3>
16131613
as well as the iplanet element (for example, suffix). Refer to the appropriate
16141614
documentation for more details.</p>
16151615

1616+
<p>This task creates a directory for scratch data inside of
1617+
the <a href="../running.html#tmpdir">temporary directory</a>.</p>
1618+
16161619
<h3> Parameters:</h3>
16171620

16181621
<table border="1" cellspacing="0" cellpadding="2">

manual/Tasks/exec.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ <h4>OpenVMS Users</h4>
9797
<code>&lt;arg&gt;</code> elements is executed exactly as specified
9898
inside a temporary DCL script. This has some implications:
9999
<ul>
100+
<li>the DCL script will be created inside
101+
the <a href="../running.html#tmpdir">temporary directory</a>.</li>
100102
<li>paths have to be written in VMS style</li>
101103
<li>if your <code>executable</code> points to a DCL script remember to
102104
prefix it with an <code>@</code>-sign

manual/Tasks/fixcrlf.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ <h3>Description</h3>
5858
The output file is only written if it is a new file, or if it
5959
differs from the existing file. This prevents spurious
6060
rebuilds based on unchanged files which have been regenerated
61-
by this task.
61+
by this task. In order to assess whether a file has changed, this
62+
task will create a pre-processed version of the source file inside of
63+
the <a href="../running.html#tmpdir">temporary directory</a>.
6264
</p>
6365

6466
<p>

manual/Tasks/ftp.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,12 @@ <h3>Parameters</h3>
150150
<td valign="top">set to <code>"true"</code>
151151
to make ant calculate the time difference between client and server.<br>
152152
<em>requires write access in the remote directory</em><br>
153-
Since ant 1.6</td>
153+
Since ant 1.6<br/>
154+
If this is set to <code>true</code> then Ant will create an empty
155+
file inside of the <a href="../running.html#tmpdir">temporary
156+
directory</a> and transfer it to the remote server - deleting it on
157+
both sides once the difference has been determined.
158+
</td>
154159
<td valign="top" align="center">No</td>
155160
</tr>
156161
<a name="timestampGranularity"/>

manual/Tasks/javadoc.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,11 @@ <h3>Parameters</h3>
451451
the package names specified via the packagenames attribute or
452452
nested package elements. <em>Since Ant 1.7.0</em>, also applies
453453
to all the other command line options.
454-
(<code>yes</code> | <code>no</code>). Default is no.</td>
454+
(<code>yes</code> | <code>no</code>). Default is no.<br/>
455+
If enabled, the file will be written to
456+
the <a href="../running.html#tmpdir">temporary
457+
directory</a>.</p>
458+
</td>
455459
<td align="center" valign="top">all</td>
456460
<td valign="top" align="center">No</td>
457461
</tr>

manual/Tasks/replaceregexp.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ <h3>Description</h3>
3131

3232
<p>The output file is only written if it differs from the existing
3333
file. This prevents spurious rebuilds based on unchanged files which
34-
have been regenerated by this task.</p>
34+
have been regenerated by this task. In order to assess whether a file
35+
has changed, this task will create a pre-processed version of the
36+
source file inside of the <a href="../running.html#tmpdir">temporary
37+
directory</a>.</p>
3538

3639
<p>Similar to <a href="../Types/mapper.html#regexp-mapper">regexp
3740
type mappers</a> this task needs a supporting regular expression

manual/Types/selectors.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,10 @@ <h4><a name="modified">Modified Selector</a></h4>
728728
to (<b>attention!</b>) copy the content into a local file for computing the
729729
hashvalue.</p>
730730

731+
<p>If the source resource is not a filesystem resource the
732+
modified selector will download it to
733+
the <a href="../running.html#tmpdir">temporary directory</a>.</p>
734+
731735
<table border="1" cellpadding="2" cellspacing="0">
732736
<tr>
733737
<td valign="top"><b>Attribute</b></td>

0 commit comments

Comments
 (0)