File sourceFile = new File(this.sourceFilename); System.out.println("Source file: "+sourceFile);
sourceFile = new File(this.sourceFilename);
    public void execute() throws BuildException {        // check required arguments         if (this.sourceFilename == null) {            throw new BuildException("source filename required");        }        if (this.targetFilesets.size() == 0) {        	throw new BuildException("no target filesets specified");        }                // read source properties        Properties sourceProps = new Properties();        try {            File sourceFile = new File(this.sourceFilename);            System.out.println("Source file: "+sourceFile);            InputStream sourceIn = new FileInputStream(sourceFile);            sourceProps.load(sourceIn);        }        catch (FileNotFoundException e) {        	throw new BuildException("source file doesn't exist");        }        catch (IOException e) {        	throw new BuildException("error loading source file");        }                // process files in filesets        Project project = this.getProject();                Iterator filesets = this.targetFilesets.iterator();        while (filesets.hasNext()) {        	FileSet fileset = (FileSet)filesets.next();        	DirectoryScanner scanner = fileset.getDirectoryScanner(project);        	File basedir = scanner.getBasedir();        	String[] filenames = scanner.getIncludedFiles();        	for (int i = 0; i < filenames.length; i++) {        		try {            		File targetFile = new File(basedir, filenames[i]);        			System.out.println("Target file: "+targetFile);        			InputStream targetIn = new FileInputStream(targetFile);        			Properties targetProps = new Properties();        			targetProps.load(targetIn);        			        			compare(sourceProps, targetProps);        		}        		catch (FileNotFoundException e) {        			System.err.println("warning: target file doesn't exist");        		}        		catch (IOException e) {        			System.err.println("warning: error loading target file");        		}        	}        }            } // execute()