~ubuntu-branches/ubuntu/maverick/ant/maverick

« back to all changes in this revision

Viewing changes to src/main/org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.java

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-09-30 14:47:45 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080930144745-0x8uzivd9t15dua3
Tags: 1.7.1-0ubuntu1
* New upstream version (bug fix release).
  - mainly a bugfix release.
  - has extended support for Java6 features.
  - <script> now has support for JavaFX.
  - release notes: http://apache.linux-mirror.org/ant/README.html
* Remove debian/patches/05_ant-bug433444.patch. Obsoleted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
 */
56
56
 
57
57
public class NetCommand {
58
 
 
 
58
    private static final int DEFAULT_RESPONSE_THRESHOLD = 64;
59
59
    private static final FileUtils FILE_UTILS = FileUtils.getFileUtils();
60
60
    // CheckStyle:VisibilityModifier OFF - bc
61
61
 
115
115
    /**
116
116
     * internal threshold for auto-switch
117
117
     */
118
 
    private int automaticResponseFileThreshold = 64;
 
118
    private int automaticResponseFileThreshold = DEFAULT_RESPONSE_THRESHOLD;
119
119
 
120
120
    /**
121
121
     *  constructor
346
346
            //afterwards
347
347
            FileOutputStream fos = null;
348
348
 
349
 
            temporaryCommandFile = FILE_UTILS.createTempFile("cmd", ".txt", null);
 
349
            temporaryCommandFile = FILE_UTILS.createTempFile("cmd", ".txt", null, false, true);
350
350
            owner.log("Using response file " + temporaryCommandFile, Project.MSG_VERBOSE);
351
351
 
352
352
            try {