ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael B. Allen" <mbal...@erols.com>
Subject RE: Chmod Ant Workn' :)
Date Mon, 04 Sep 2000 06:49:51 GMT
Thanks,

Thanks,

Are you supposed to prepend the srcDir to the files returned by the
directory scanner? The problem is the files[i] are not absolute paths.

    public void execute() throws BuildException {
        try {
<snip>
                } else if(srcFile == null && srcDir != null)


                    DirectoryScanner ds = getDirectoryScanner(srcDir);
                    String[] files = ds.getIncludedFiles();

                    for (int i = 0; i < files.length; i++) {
System.out.println( "chmod on " + files[i] );
                        chmod(files[i]);
                    }
                }
            }
        } catch (IOException ioe) {


> -----Original Message-----
> From: Julian M. Savage [mailto:jsavage@fisci.com]
> Sent: Monday, September 04, 2000 2:18 AM
> To: mballen@erols.com
> Subject: Re: Chmod Ant Workn' :)
>
>
> More like
>
> cvs -d :pserver:anoncvs@jakarta.apache.org:/home/cvspublic
> get jakarta-ant
>
> Julian.


Mime
View raw message