Advertisement
Guest User

Untitled

a guest
May 28th, 2017
494
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2.  
  3. <project name="DrupalDeploy" default="setup">
  4. <property name="drupal.workingdir" value="./docroot" />
  5. <property name="drupal.database" value="drupal_phing" />
  6.  
  7. <resolvepath propertyName="drupal.workingdir.resolved" file="${drupal.workingdir}" />
  8. <target name="setup" description="Clone the Drupal repository">
  9. <!-- Clone drupal core -->
  10. <delete dir="${drupal.workingdir.resolved}" includeemptydirs="true" verbose="true" failonerror="false" />
  11. <mkdir dir="${drupal.workingdir.resolved}" />
  12. <gitclone repository="git@github.com:yogendra-prasad/phing.git" targetPath="${drupal.workingdir.resolved}" />
  13. <echo message="Git Clone Successfully" />
  14. <echo message = "Setting up Database" />
  15. <exec command="mysql --host=localhost --port=44400 --user=root --password=root -e 'drop database if exists ${drupal.database};'" />
  16. <echo message="The Database is droped" />
  17. <exec command="mysql --host=localhost --port=44400 --user=root --password=root -e 'create database if not exists ${drupal.database};'" />
  18. <exec command="mysql --host=localhost --port=44400 --user=root --password=root ${drupal.database} < docroot/Database/drupal_phing.sql" />
  19. <echo message ="Database imported successfully" />
  20. <echo message = "Set Up completed !!!!!!" />
  21.  
  22. </target>
  23. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement