FreeHEP API
Version v1.2.2

org.freehep.ant
Class FreeHepCommand

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--org.apache.tools.ant.taskdefs.ExecTask
                    |
                    +--org.freehep.ant.FreeHepCommand

public class FreeHepCommand
extends org.apache.tools.ant.taskdefs.ExecTask

Reads a set a property files, listed in the "commands" property of the FreeHepCommand tag, and executes the commands listed in the property "command", if any of the files in the property "depends" are newer than the any of the files in the property "targets". If targets or depends are not specified the command is always executed. The command itself can contain multiple command lines using a semicolon to separate the commands.

Version:
$Id: FreeHepCommand.java,v 1.1 2003/06/12 15:56:47 duns Exp $
Author:
Mark Donszelmann

Field Summary
 
Fields inherited from class org.apache.tools.ant.taskdefs.ExecTask
cmdl, failOnError, newEnvironment
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
FreeHepCommand()
           
 
Method Summary
 void execute()
          Executes the tasks based on the proeprty files
 void setCommands(String str)
           
 
Methods inherited from class org.apache.tools.ant.taskdefs.ExecTask
addEnv, checkConfiguration, createArg, createHandler, createWatchdog, isValidOs, logFlush, maybeSetResultPropertyValue, prepareExec, runExec, runExecute, setAppend, setCommand, setDir, setExecutable, setFailIfExecutionFails, setFailonerror, setNewenvironment, setOs, setOutput, setOutputproperty, setResultProperty, setTimeout, setTimeout, setVMLauncher
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FreeHepCommand

public FreeHepCommand()
Method Detail

setCommands

public void setCommands(String str)

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Executes the tasks based on the proeprty files

Overrides:
execute in class org.apache.tools.ant.taskdefs.ExecTask
org.apache.tools.ant.BuildException

FreeHEP API
Version v1.2.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.