All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.ahtutils.report.AntJasperCreatorTask Maven / Gradle / Ivy

There is a newer version: 0.2.5
Show newest version
package net.sf.ahtutils.report;

import java.io.FileNotFoundException;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class AntJasperCreatorTask extends Task
{
	final static Logger logger = LoggerFactory.getLogger(ReportController.class);
	
	private String configFile, reportRoot, targetDir;
	
    public void execute() throws BuildException
    {
    	try {
			ReportCompiler.execute(configFile, reportRoot, targetDir);
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
  	}

	public static void main(String[] args) {
		AntJasperCreatorTask task = new AntJasperCreatorTask();
		task.execute();

	}

	public String getConfigFile() {
		return configFile;
	}

	public void setConfigFile(String configFile) {
		this.configFile = configFile;
	}


	public String getReportRoot() {
		return reportRoot;
	}

	public void setReportRoot(String reportRoot) {
		this.reportRoot = reportRoot;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy