org.apache.maven.artifact.ant.util
Class AntUtil

java.lang.Object
  extended by org.apache.maven.artifact.ant.util.AntUtil

public class AntUtil
extends Object

Utility stuff for dealing with Ant.


Constructor Summary
AntUtil()
           
 
Method Summary
static void copyProperties(Hashtable<String,String> props, org.apache.tools.ant.Project project)
          Copies all properties from the given table to the new project - omitting those that have already been set in the new project as well as properties named basedir or ant.file.
static void copyProperties(org.apache.tools.ant.Project fromProject, org.apache.tools.ant.Project toProject)
          Copies all properties from the given project to the new project - omitting those that have already been set in the new project as well as properties named basedir or ant.file.
static void copyReferences(Hashtable<String,String> refs, org.apache.tools.ant.Project project)
          Copy references from a hashtable to a project.
static void copyReferences(org.apache.tools.ant.Project fromProject, org.apache.tools.ant.Project toProject)
          Copy references from one project to another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntUtil

public AntUtil()
Method Detail

copyProperties

public static void copyProperties(org.apache.tools.ant.Project fromProject,
                                  org.apache.tools.ant.Project toProject)
Copies all properties from the given project to the new project - omitting those that have already been set in the new project as well as properties named basedir or ant.file.

Parameters:
fromProject - copy from
toProject - copy to

copyProperties

public static void copyProperties(Hashtable<String,String> props,
                                  org.apache.tools.ant.Project project)
Copies all properties from the given table to the new project - omitting those that have already been set in the new project as well as properties named basedir or ant.file.

Parameters:
props - properties Hashtable to copy to the new project.
project - the project where the properties are added

copyReferences

public static void copyReferences(org.apache.tools.ant.Project fromProject,
                                  org.apache.tools.ant.Project toProject)
Copy references from one project to another.

Parameters:
fromProject -
toProject -

copyReferences

public static void copyReferences(Hashtable<String,String> refs,
                                  org.apache.tools.ant.Project project)
Copy references from a hashtable to a project. Will not overwrite existing references.

Parameters:
refs -
project -


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.