https://bz.apache.org/bugzilla/show_bug.cgi?id=65212

--- Comment #8 from Rajesh Putta <rajesh.pu...@appdynamics.com> ---
Hi Stefan,

Thanks for the update. At the moment we have changed our code to reflect as
shown here which is exactly as you mentioned.

 public void executeFixCrlf() throws IllegalOperationException {
        if (isOsWindows()) {
            //If operating system is Windows, then we should not execute
FixCRLF
            return;
        }
        String originalPermissions = getPermissions(executable);

        Path systemTempDirPath = new
File(System.getProperty("java.io.tmpdir")).toPath();

        Project project = new Project();
        project.setProperty(MagicNames.TMPDIR,
String.valueOf(systemTempDirPath));

        fixCRLF.setProject(project);
        fixCRLF.setFile(executable);
        fixCRLF.execute();

        // The CRLF adjustment may mess up the file permissions on the executed
file
        // Apply the original permissions, which were retrieved previously.
        if (log.isDebugEnabled()) {
            String newPermissions = getPermissions(executable);
            log.debug("Permissions after fixcrlf.execute() are " +
newPermissions);
        }

        applyPermissions(originalPermissions);
    }


Can we expect a fix from Ant team to address such issues as the current Ant
version 1.10.9 version creates too many temp directories whose names are
prefixed with ant.

Thanks
Rajesh

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to