Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8" ?>
- <project name="DrupalDeploy" default="setup">
- <property name="drupal.workingdir" value="./docroot" />
- <property name="drupal.database" value="drupal_phing" />
- <resolvepath propertyName="drupal.workingdir.resolved" file="${drupal.workingdir}" />
- <target name="setup" description="Clone the Drupal repository">
- <!-- Clone drupal core -->
- <delete dir="${drupal.workingdir.resolved}" includeemptydirs="true" verbose="true" failonerror="false" />
- <mkdir dir="${drupal.workingdir.resolved}" />
- <gitclone repository="git@github.com:yogendra-prasad/phing.git" targetPath="${drupal.workingdir.resolved}" />
- <echo message="Git Clone Successfully" />
- <echo message = "Setting up Database" />
- <exec command="mysql --host=localhost --port=44400 --user=root --password=root -e 'drop database if exists ${drupal.database};'" />
- <echo message="The Database is droped" />
- <exec command="mysql --host=localhost --port=44400 --user=root --password=root -e 'create database if not exists ${drupal.database};'" />
- <exec command="mysql --host=localhost --port=44400 --user=root --password=root ${drupal.database} < docroot/Database/drupal_phing.sql" />
- <echo message ="Database imported successfully" />
- <echo message = "Set Up completed !!!!!!" />
- </target>
- </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement