Location: PHPKode > projects > Bolt > vendor/guzzle/guzzle/phing/imports/dependencies.xml
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="../../" default="install-dependencies">

    <property name="cmd.composer" value="" />
    <property name="cmd.git" value="" />
    <property name="cmd.testserver" value="" />

    <!--
    Our custom tasks
    -->
    <taskdef name="composerlint" classname="phing.tasks.ComposerLintTask" />
    <taskdef name="testserver" classname="phing.tasks.NodeServerTask" />
    <taskdef name="guzzlesubsplit" classname="phing.tasks.GuzzleSubSplitTask" />
    <taskdef name="guzzlepear" classname="phing.tasks.GuzzlePearPharPackageTask" />

    <!--
    Handle locating composer (global) or composer.phar, and
    if necessary, installing composer.phar locally.
    -->
    <target name="install-composer" description="Installs composer locally if it can't be found in build.properties or global install.">
        <if>
            <contains string="${cmd.composer}" substring="composer" />
            <then>
                <echo>Using composer at ${cmd.composer}</echo>
            </then>
        <else>
            <exec command="which composer" outputProperty="cmd.composer" />
            <if>
                <contains string="${cmd.composer}" substring="composer" />
                <then>
                    <echo>Using composer at ${cmd.composer}</echo>
                </then>

                <elseif>
                    <available file="${project.basedir}/composer.phar" />
                    <then>
                        <echo>Composer is installed locally</echo>
                        <property name="cmd.composer" value="${php.interpreter} ${project.basedir}/composer.phar" override="true"/>
                    </then>
                </elseif>

                <else>
                    <echo message="Installing composer locally" />
                    <exec command="curl -s http://getcomposer.org/installer | php" passthru="true" />
                    <property name="cmd.composer" value="${php.interpreter} ${project.basedir}/composer.phar" override="true"/>
                </else>
            </if>
        </else>
        </if>
        <echo message="cmd.composer is ${cmd.composer}"/>
    </target>

    <target name="find-git">
        <if>
            <contains string="${cmd.git}" substring="git" />
            <then>
                <echo>using git at ${cmd.git}</echo>
            </then>
        <else>
            <exec command="which git" outputProperty="cmd.git" />
            <echo>found git at ${cmd.git}</echo>
        </else>
        </if>
    </target>

    <target name="install-dependencies" depends="install-composer">
        <exec command="${cmd.composer} install --dev" passthru="true" />
    </target>

    <target name="update-dependencies" depends="install-composer">
        <exec command="${cmd.composer} update --dev" passthru="true" />
    </target>

    <target name="clean-dependencies">
        <delete dir="${project.basedir}/vendor"/>
        <delete file="${project.basedir}/composer.lock" />
    </target>

</project>
Return current item: Bolt