/*
 * This file is part of the DITA Open Toolkit project.
 *
 * Copyright 2007 IBM Corporation
 *
 * See the accompanying LICENSE file for applicable license.
 */
package org.dita.dost.ant;

import static org.dita.dost.ant.ExtensibleAntInvoker.getJob;

import java.io.File;
import java.util.Map;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;
import org.dita.dost.util.Job;

/**
 * Read job configuration and set Ant properties.
 */
public final class JobPropertyTask extends Task {

    private File dir;

    @Override
    public void execute() throws BuildException {
        final Job job = getJob(dir, getProject());
        for (final Map.Entry<String, String> e: job.getProperties().entrySet()) {
            getProject().setProperty(e.getKey(), e.getValue());
        }
    }

    /**
     * Set directory where to read job configuration
     */
    public void setDir(final File dir) {
        this.dir = dir;
    }

}
@@ -73,26 +73,25 @@
 t 20
-07 IBM Corporation
+13 Jarno Elovirta
 %0A *%0A

Correct copyright