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

patterntesting.tool.aspectj.AjcXml Maven / Gradle / Ivy

Go to download

PatternTesting Tools (patterntesting-tools) is the container for tools around PatternTesting like the Ant extensions and Maven plugin.

The newest version!
/* 
 *========================================================================
 * 
 * Copyright 2001-2004 Vincent Massol & Matt Smith.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express orimplied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 *========================================================================
 */
package patterntesting.tool.aspectj;

import java.io.File;

import org.apache.tools.ant.Project;
import org.apache.tools.ant.Target;

/**
 * Allow to use the {@link AjcXmlTask} Ant task from a java application.
 *
 * @author Vincent Massol
 *
 * @version $Id: AjcXml.java,v 1.2 2009/12/30 13:33:04 oboehm Exp $
 */
public class AjcXml extends AjcXmlTask
{
    /**
     * Create default Ant objects to be able to run the task outside of the
     * Ant engine.
     */
    @SuppressWarnings("deprecation")
	public AjcXml()
    {
        super();
        project = new Project();
        project.init();
        taskType = "ajcxml";
        taskName = "ajcxml";
        target = new Target();
    }

    /**
     * The example on the patterntesting page uses
     * 
compiler.setDestdir("target/classes");
* so we should provide it as additional method. * * @param dirname as String */ public void setDestdir(String dirname) { super.setDestdir(new File(dirname)); } /** * The example on the patterntesting page uses *
compiler.setResultFile("result.xml");
* so we should provide it as additional method. * * @param filename as String */ public void setResultFile(String filename) { super.setResultFile(new File(filename)); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy