Contains PySys extensions for running ant builds from your testcases.
- apama.build.antBuild(parent, buildfile, args=None, workingDir='build', timeout=60, environs=None)Â¶
Run an ant build file with Apama environment properties set, typically to generate a project artifact such as a Java plugin or adapter.
Runs in a âbuildâ subdirectory of the parentâs output directory.
Be careful to ensure that the ant build file generates its output under its working directory, or under an explicitly specified directory that is located inside the test output directory.
parent â a ProcessUser object (such as a BaseTest)
buildfile â absolute path to the ant build.xml to run
args â an optional list of arguments to pass to ant, such as targets to build or -Dprop=value properties.
workingDir â the working directory for ant, which can be relative to the parentâs output directory. Will be created if it doesnât exist.
timeout â The timeout to run ant
environs â a dictionary of environment variables (key, value) for ANT execution.
Exception â if the ant build does not complete successfully.