Skip to content

Files

This branch is 52 commits ahead of byo/MMP:master.

phing

MPPTask is additional class for MPP package which allows to use it as Phing task.

Phing build.xml example:

<?xml version="1.0"?>

<project name="MyTest" description="Simple phing build file" default="migrate" >
    <target name="migrate" description="Some description">
        <taskdef name="MMPTask" classname="MMPTask" classpath="./libs/MMP/phing" />
        <MMPTask
                host="localhost"
                user="root"
                password=""
                db="db_test"
                savedir="db"
                verbose="Off"
                versiontable="db_revisions"
                aliastable="db_alias"
                aliasprefix="project_v"
                exclude_tables="authors, books"
                config_file="config.ini"
                action="migrate"
                action_options="now"
            />
    </target>
</project>

Options:
All of them are the same with MMP options (https://github.com/idler/MMP/wiki/Description) except listed bellow.

config_file    - name of the MMP configuration file. Not required if connection options determined.
action         - the same with MMP commands. Required.
action_options - the same with MMP commands parameters. Depends on action.