| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!-- <![CDATA[ |
<!-- <![CDATA[ |
| 3 |
$Id: site-configure.xml,v 1.6 2007/09/29 06:06:24 allisterbeharry Exp $ |
$Id: site-configure.xml,v 1.10 2008/03/08 13:13:37 allisterbeharry Exp $ |
| 4 |
]]> --> |
]]> --> |
| 5 |
|
|
| 6 |
<!-- ==================================================================================================== --> |
<!-- ==================================================================================================== --> |
| 49 |
<delete file="${dast.tmp}${php.directory_separator}${drupal.database.CreateScript}" /> |
<delete file="${dast.tmp}${php.directory_separator}${drupal.database.CreateScript}" /> |
| 50 |
</then></if> |
</then></if> |
| 51 |
</target> |
</target> |
| 52 |
|
|
| 53 |
|
<!--Create the files subdirectory and set permission--> |
| 54 |
|
<!-- ================================= |
| 55 |
|
target: create-files-dir |
| 56 |
|
================================= --> |
| 57 |
|
<target name="create-files-dir" depends="configure-create-files-dir" description="--> Create the Drupal files directory "> |
| 58 |
|
<mkdir dir="${drupal.filesDirPath}"/> |
| 59 |
|
<echo> Created directory ${drupal.filesDirPath}.</echo> |
| 60 |
|
<!-- |
| 61 |
|
<php function = "chmod" returnProperty="chmodfilesDirResult" > |
| 62 |
|
<param value = "${drupal.filesDirPath}" /> |
| 63 |
|
<param value = "${drupal.filesDirPermision}" /> |
| 64 |
|
</php> |
| 65 |
|
<if><equals arg1="${build.testing}" arg2="yes" /><then> |
| 66 |
|
<echo>PHP chmod returned: ${chmodfilesDirResult}</echo></then> |
| 67 |
|
</if> |
| 68 |
|
<if><equals arg1="${chmodfilesDirResult}" arg2="1"/><then> |
| 69 |
|
<echo>chmoded ${drupal.filesDirPath} to ${drupal.filesDirPermission}.</echo></then> |
| 70 |
|
<else> |
| 71 |
|
<warn>Could not chmod ${drupal.filesDirPath} to ${drupal.filesDirPermission}. You will have to change permissions on this directory manually.</warn> |
| 72 |
|
</else> |
| 73 |
|
</if> |
| 74 |
|
--> |
| 75 |
|
<!-- |
| 76 |
|
<if><or><equals arg1="${host.fstype}" arg2="UNIX" /><equals arg1="${build.usechmod}" arg2="yes" /></or><then> |
| 77 |
|
<exec command="chmod ${drupal.filesDirPermission} "${drupal.filesDirPath}"" |
| 78 |
|
Output="${build.log.defaultdir}${php.directory_separator}site-configure-create-filesdir-output.log" Error="${build.log.defaultdir}${php.directory_separator}site-configure-create-filesdir.log" |
| 79 |
|
dir="${dast.tmp}" escape="false" passthru="false" checkreturn="true"/> |
| 80 |
|
<echo>chmoded ${drupal.filesDirPath} to ${drupal.filesDirPermission}.</echo> |
| 81 |
|
</then> |
| 82 |
|
<else> |
| 83 |
|
<warn>Changing permissions on the files directory only works under UNIX-type filesystems; you will have to change permissions on ${drupal.filesDirPath} manually</warn> |
| 84 |
|
</else> |
| 85 |
|
</if> |
| 86 |
|
--> |
| 87 |
|
<!--Make files dir writeable--> |
| 88 |
|
<if><not><equals arg1="${host.fstype}" arg2="UNIX" /></not><then> |
| 89 |
|
<warn>Chmoding permissions on the ${drupal.filesDirPath} directory only works under UNIX-type filesystems; you will have to change permissions on ${drupal.dir} manually if necessary.</warn> |
| 90 |
|
</then> |
| 91 |
|
<else> |
| 92 |
|
<Chmod Mode="0777"> |
| 93 |
|
<fileset dir="${drupal.filesDirPath}/"> |
| 94 |
|
<include name="**" /> |
| 95 |
|
</fileset> |
| 96 |
|
</Chmod> |
| 97 |
|
</else> |
| 98 |
|
</if> |
| 99 |
|
</target> |
| 100 |
|
|
| 101 |
<!-- ================================= |
<!-- ================================= |
| 102 |
target: create-apachehttpd-site |
target: create-apachehttpd-site |
| 103 |
================================= --> |
================================= --> |
| 142 |
</ApacheHttpdConfSection> |
</ApacheHttpdConfSection> |
| 143 |
</ApacheHttpdConf> |
</ApacheHttpdConf> |
| 144 |
|
|
| 145 |
<!--Set our directory properties --> |
<!--Set our vdir directory properties --> |
| 146 |
<ApacheHttpdConf File="${apachehttpd.site.vhost.conf}"> |
<ApacheHttpdConf File="${apachehttpd.site.vhost.conf}"> |
| 147 |
|
|
| 148 |
</ApacheHttpdConf> |
</ApacheHttpdConf> |
| 270 |
</target> |
</target> |
| 271 |
|
|
| 272 |
<!-- ================================= |
<!-- ================================= |
| 273 |
|
target: configure-create-files-dir |
| 274 |
|
================================= --> |
| 275 |
|
<target name="configure-create-files-dir" depends="configure" description="--> Configures the create-files-dir task with properties from a properties file."> |
| 276 |
|
<if><not><isset property="drupal.filesDirPath"/></not><then> |
| 277 |
|
<fail>drupal.filesDirPath property not set, check the properties files for omissions or bad syntax</fail> |
| 278 |
|
</then> |
| 279 |
|
</if> |
| 280 |
|
<if><not><isset property="drupal.filesDirPath"/></not><then> |
| 281 |
|
<fail>drupal.filesDirPath property not set, check the properties files for omissions or bad syntax</fail> |
| 282 |
|
</then> |
| 283 |
|
</if> |
| 284 |
|
<if><not><isset property="drupal.filesDirPermission"/></not><then> |
| 285 |
|
<fail>drupal.filesDirPath property not set, check the properties files for omissions or bad syntax</fail> |
| 286 |
|
</then> |
| 287 |
|
</if> |
| 288 |
|
</target> |
| 289 |
|
|
| 290 |
|
|
| 291 |
|
<!-- ================================= |
| 292 |
target: configure-create-database |
target: configure-create-database |
| 293 |
================================= --> |
================================= --> |
| 294 |
<target name="configure-create-database" depends="configure" description="--> Configures the create-database target with properties from properties file."> |
<target name="configure-create-database" depends="configure" description="--> Configures the create-database target with properties from properties file."> |