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:[EMAIL PROTECTED]
> Sent: Monday, September 04, 2000 2:18 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Chmod Ant Workn' :)
>
>
> More like
>
> cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic
> get jakarta-ant
>
> Julian.

Reply via email to