/[drupal]/contributions/modules/DAST/site-fetch.xml
ViewVC logotype

Diff of /contributions/modules/DAST/site-fetch.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.7, Sat Sep 29 06:07:34 2007 UTC revision 1.8, Mon Mar 17 10:58:49 2008 UTC
# Line 1  Line 1 
1  <?xml version="1.0" encoding="UTF-8"?>  <?xml version="1.0" encoding="UTF-8"?>
2  <!-- <![CDATA[  <!-- <![CDATA[
3  $Id: site-fetch.xml,v 1.11 2007/09/29 06:06:24 allisterbeharry Exp $  $Id: site-fetch.xml,v 1.7 2007/09/29 06:07:34 allisterbeharry Exp $
4   -->   -->
5  <project name="site-fetch" default="main">  <project name="site-fetch" default="main">
6  <!-- ============================================================================================================== -->  <!-- ============================================================================================================== -->
# Line 34  $Id: site-fetch.xml,v 1.11 2007/09/29 06 Line 34  $Id: site-fetch.xml,v 1.11 2007/09/29 06
34    <echo>-------------------------------------------------</echo>    <echo>-------------------------------------------------</echo>
35    <!--(Re)create drupal.dir-->    <!--(Re)create drupal.dir-->
36    <available file="${drupal.dir}" type="dir" property="drupal.dir.DirectoryExists"/>    <available file="${drupal.dir}" type="dir" property="drupal.dir.DirectoryExists"/>
37    <if><isset property="drupal.dir.DirectoryExists"/>    <!-- <available file="${drupal.dir}${php.directory_separator}files${php.directory_separator}.htaccess" type="file" property="drupal.dir.htaccess.Exists"/>
38    <then>    <if><isset property="drupal.dir.DirectoryExists"/><then>
39      <delete dir="${drupal.dir}" includeemptydirs="true" verbose="false" failonerror="true"/>        <delete file="${drupal.dir}${php.directory_separator}files${php.directory_separator}.htaccess" /></then>
40      <echo>${drupal.dir} deleted </echo>    </if> -->
41    </then>  
42      <if><isset property="drupal.dir.DirectoryExists"/><then>
43          <!--Make all files in dir writeable -->
44          <!-- <if><not><equals arg1="${host.fstype}" arg2="WINNT" /></not><then>
45              <warn>Chmoding permissions on the ${drupal.dir} directory only works under UNIX-type filesystems; you will have to change permissions on ${drupal.dir} manually if necessary.</warn>
46            </then>
47            <else>
48              <Chmod Mode="0777">
49                <fileset dir="${drupal.filesDirPath}/">
50                  <include name="**" />
51                </fileset>
52              </Chmod>
53            </else>
54        </if> -->
55        <available file="${drupal.dir}${php.directory_separator}${drupal.settings.location}" type="file" property="drupal.settings.locationExists"/>
56        <if><isset property="drupal.settings.locationExists"/><then>
57            <Chmod Mode="0777" file="${drupal.dir}${php.directory_separator}${drupal.settings.location}" /></then>
58        </if>
59          <delete dir="${drupal.dir}" includeemptydirs="true" verbose="false" failonerror="true"/>
60          <echo>${drupal.dir} deleted </echo>
61        </then>
62    </if>    </if>
63    <mkdir dir="${drupal.dir}"/>    <mkdir dir="${drupal.dir}"/>
   
64  </target>  </target>
65    
66   <!-- =================================   <!-- =================================

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.2