org.openl.conf.ant.AntHelper Maven / Gradle / Ivy
/*
* Created on Jun 10, 2003
*
* Developed by Intelligent ChoicePoint Inc. 2003
*/
package org.openl.conf.ant;
import java.io.File;
import java.util.Iterator;
import java.util.Map;
import java.util.Properties;
import org.apache.tools.ant.BuildLogger;
import org.apache.tools.ant.DefaultLogger;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.ProjectHelper;
/**
* @author snshor
*
*/
public class AntHelper {
Project project;
public static void main(String[] args) {
new AntHelper(args[0], args[1], null);
}
public AntHelper(String antFile, String targetName, Properties props) {
project = new Project();
project.init();
project.addBuildListener(createLogger());
project.setCoreLoader(Thread.currentThread().getContextClassLoader());
if (props != null) {
for (Iterator> iter = props.entrySet().iterator(); iter.hasNext();) {
Map.Entry
© 2015 - 2025 Weber Informatics LLC | Privacy Policy