| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!-- <![CDATA[ |
<!-- <![CDATA[ |
| 3 |
$Id: do_testing-site.xml,v 1.2 2007/12/07 23:21:16 allisterbeharry Exp $ |
$Id: do_testing-site.xml,v 1.3 2008/03/08 01:38:11 allisterbeharry Exp $ |
| 4 |
]]> --> |
]]> --> |
| 5 |
|
|
| 6 |
<!-- ==================================================================================================== --> |
<!-- ==================================================================================================== --> |
| 17 |
<taskdef name="CVS" classname="phing.tasks.system.CVSTask"/> |
<taskdef name="CVS" classname="phing.tasks.system.CVSTask"/> |
| 18 |
<taskdef name="warn" classname="phing.tasks.system.WarnTask"/> |
<taskdef name="warn" classname="phing.tasks.system.WarnTask"/> |
| 19 |
<taskdef name="DumpProperties" classname="DumpPropertiesTask"/> |
<taskdef name="DumpProperties" classname="DumpPropertiesTask"/> |
| 20 |
|
|
| 21 |
|
<target name="clean-files" depends="configure" description="--> standalone task to remove the files directory under drupal.dir"> |
| 22 |
|
<echo>-------------------------------------------------</echo> |
| 23 |
|
<echo> +++++ Running default-site.xml clean-files +++++</echo> |
| 24 |
|
<echo>-------------------------------------------------</echo> |
| 25 |
|
<available file="${drupal.filesDirPath}" type="dir" property="drupal.filesDirPathExists"/> |
| 26 |
|
<if><isset property="drupal.filesDirPathExists"/><then> |
| 27 |
|
<delete dir="${drupal.filesDirPath}" includeemptydirs="true" verbose="false" failonerror="true"/> |
| 28 |
|
<echo>${drupal.filesDirPath} deleted </echo> |
| 29 |
|
</then> |
| 30 |
|
</if> |
| 31 |
|
</target> |
| 32 |
|
|
| 33 |
<!-- ================================= |
<!-- ================================= |
| 34 |
target: main |
target: main |
| 35 |
================================= --> |
================================= --> |
| 37 |
|
|
| 38 |
<!--Clean site directory if requested --> |
<!--Clean site directory if requested --> |
| 39 |
<if><equals arg1="${build.run.clean}" arg2="yes"/><then> |
<if><equals arg1="${build.run.clean}" arg2="yes"/><then> |
| 40 |
<phing phingfile="${dast.home}${php.directory_separator}src${php.directory_separator}site-fetch.xml" inheritAll = "true" |
<phing phingfile="${dast.home}${php.directory_separator}site-fetch.xml" inheritAll = "true" |
| 41 |
target="clean" haltonfailure="true" /> |
target="clean" haltonfailure="true" /> |
| 42 |
</then> |
</then> |
| 43 |
</if> |
</if> |
| 44 |
|
|
| 45 |
<!--Fetch the Drupal core for the site --> |
<!--Fetch the Drupal core for the site --> |
| 46 |
<phing phingfile="${dast.home}${php.directory_separator}src${php.directory_separator}site-fetch.xml" inheritAll = "true" |
<phing phingfile="${dast.home}${php.directory_separator}site-fetch.xml" inheritAll = "true" |
| 47 |
target="fetchCore" haltonfailure="true"> |
target="fetchCore" haltonfailure="true"> |
| 48 |
<property name="drupal.core.Cvs.Revision" value="DRUPAL-5" /> |
<property name="drupal.core.Cvs.Revision" value="DRUPAL-5" /> |
| 49 |
</phing> |
</phing> |
| 50 |
|
|
| 51 |
<!--Fetch the codefilter, devel, and comment_upload modules --> |
<!--Fetch the cvslog, codefilter, devel, project, project_issue and comment_upload modules --> |
| 52 |
<phing phingfile="${dast.home}${php.directory_separator}src${php.directory_separator}site-fetch.xml" inheritAll = "true" |
<phing phingfile="${dast.home}${php.directory_separator}site-fetch.xml" inheritAll = "true" |
| 53 |
target="fetchModules" haltonfailure="true"> |
target="fetchModules" haltonfailure="true"> |
| 54 |
<property name="drupal.modules.list" value="codefilter,devel,comment_upload" /> |
<property name="drupal.modules.list" value="cvslog,codefilter,devel,project,project_issue,comment_upload" /> |
| 55 |
<property name="drupal.modules.Cvs.Revision" value="DRUPAL-5" /> |
<property name="drupal.modules.Cvs.Revision" value="DRUPAL-5" /> |
|
</phing> |
|
|
|
|
|
<!--Fetch the cvslog, prject and project_issue modules --> |
|
|
<phing phingfile="${dast.home}${php.directory_separator}src${php.directory_separator}site-fetch.xml" inheritAll = "true" |
|
|
target="fetchModules" haltonfailure="true"> |
|
|
<property name="drupal.modules.list" value="cvslog,project,project_issue" /> |
|
|
<property name="drupal.modules.Cvs.Revision" value="HEAD" /> |
|
| 56 |
</phing> |
</phing> |
| 57 |
|
|
| 58 |
<!--Create the site database --> |
<!--Create the site database --> |
| 59 |
<phing phingfile="${dast.home}${php.directory_separator}src${php.directory_separator}site-configure.xml" inheritAll = "true" |
<phing phingfile="${dast.home}${php.directory_separator}site-configure.xml" inheritAll = "true" |
| 60 |
target="create-database" haltonfailure="true"/> |
target="create-database" haltonfailure="true"/> |
| 61 |
|
|
| 62 |
|
<!--Create and set permissions on the files directory if requested--> |
| 63 |
|
<if><equals arg1="${drupal.createfilesDir}" arg2="yes"/><then> |
| 64 |
|
<phing phingfile="${dast.home}${php.directory_separator}site-configure.xml" inheritAll = "true" |
| 65 |
|
target="create-files-dir" haltonfailure="true"/></then> |
| 66 |
|
</if> |
| 67 |
|
|
| 68 |
<!--Set the db-url, fetch and start the installation profile --> |
<!--Set the db-url, fetch and start the installation profile --> |
| 69 |
<phing phingfile="${dast.home}${php.directory_separator}src${php.directory_separator}site-install.xml" inheritAll = "true" |
<phing phingfile="${dast.home}${php.directory_separator}site-install.xml" inheritAll = "true" |
| 70 |
target="set-db-url" haltonfailure="true"/> |
target="set-db-url" haltonfailure="true"/> |
| 71 |
<phing phingfile="${dast.home}${php.directory_separator}src${php.directory_separator}site-install.xml" inheritAll = "true" |
<phing phingfile="${dast.home}${php.directory_separator}site-install.xml" inheritAll = "true" |
| 72 |
target="fetch-profile" haltonfailure="true"/> |
target="fetch-profile" haltonfailure="true"/> |
| 73 |
<phing phingfile="${dast.home}${php.directory_separator}src${php.directory_separator}site-install.xml" inheritAll = "true" |
<phing phingfile="${dast.home}${php.directory_separator}site-install.xml" inheritAll = "true" |
| 74 |
target="run-installer" haltonfailure="true"/> |
target="run-installer" haltonfailure="true"/> |
| 75 |
|
|
| 76 |
</target> |
</target> |