Projet

Général

Profil

Paste
Télécharger (1,65 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / themes / bluemasters / build.xml @ ecb492a9

1
<?xml version="1.0" encoding="UTF-8"?>
2
<project name="urbantech" default="help" basedir=".">
3
        <description>
4
                theme build script
5
                        copy this theme into a drupal instance ignoring CVS files
6
        </description>
7
        <!-- set global properties for this build -->
8
        <property name="themename" value="bluemasters" />
9
        <property name="drupalpath" value="c:/server/xampp/htdocs/mt-themes/drupal-base/drupal-6.20/" />
10

    
11
        <target name="help">
12
                <echo>Available targets</echo>
13
                <echo>build</echo>
14
                <echo>       ant build -Ddrupalpath={c:/full/path/to/dist/folder}</echo>
15
                <echo>clean</echo>
16
                <echo>       ant clean -Ddrupalpath={c:/full/path/to/dist/folder}</echo>
17
        </target>
18

    
19
        <target name="-init">
20
                <!-- Create the time stamp -->
21
                <tstamp/>
22
        </target>
23

    
24
        <!--
25
                | create working directories
26
                -->
27
        <target name="-makedirs"> 
28
                <mkdir dir="${drupalpath}/sites/all/themes/${themename}/"/>
29
        </target>
30
        
31
        <!--
32
                | copy files that are common for all distributions
33
                -->
34
        <target name="-copy-common-files">                
35
                
36
        </target>
37
        
38
        <target name="-copy-theme">
39
                <copy todir="${drupalpath}/sites/all/themes/${themename}/">
40
                        <fileset dir=".">
41
                                <include name="**/*.*"/>
42
                                <exclude name="CVS"/>
43
                        </fileset>
44
                </copy>
45
        </target>
46
                
47
        <!--
48
                | Devilerable content preperation. 
49
            -->
50
        <target name="build"
51
        description="generate the distribution" >
52
                <!-- Create the distribution directory -->
53
                <antcall target="-makedirs"/>
54

    
55
                <!-- Copy files -->
56
                <antcall target="-copy-theme"/>
57
                                
58
        </target>        
59
        
60
        <target name="clean"
61
        description="clean up" >
62
                <!-- Delete the ${work} directory trees -->
63
                <delete dir="${drupalpath}/sites/all/themes/${themename}/"/>
64
        </target>                        
65
</project>