[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/vendor/propel-generator/ -> build.xml-local (source)

   1  <!--
   2      Use this file to faciliate easy per-project building.
   3      
   4      Simply create a build.properties file in this directory,
   5      that contains any needed (i.e. to override) values for this project.
   6      
   7      Call this build script and specify the name of the project and
   8      (optionally) the name of the target you wish to execute (default is
   9      'main' target) of build-propel.xml.
  10  
  11      Normal use:
  12      $> phing
  13      
  14      Specific target: 
  15      $> phing -Dtarget=insert-sql
  16  
  17  -->
  18  <project name="propel-project-builder" default="main" basedir=".">
  19  
  20  <!-- set to this dir -->    
  21  <property name="project.dir" value="."/>
  22  
  23  <!-- set a default target if none provided -->
  24  <property name="target" value="main"/>
  25  
  26  <target name="buildpropescheck">
  27    <available file="./build.properties" property="projBuildPopertiesExists"/>  
  28  </target>
  29  
  30  <target name="init">
  31      <echo msg="Loading project-specific props from ./build.properties"/>
  32      <property file="./build.properties"/>
  33  </target>
  34  
  35  <target name="checkproject" unless="propel.project">
  36      <fail msg="Build failed. Please make sure that propel.project is set to your project-name in local build.properties"/>
  37  </target>
  38  <target name="checkhome" unless="propel.home">
  39      <fail msg="Build failed. Please make sure that propel.home is set to the propel-generator-dir in local build.properties"/>
  40  </target>
  41  <target name="checkschemadir" unless="propel.schema.dir">
  42      <fail msg="Build failed. Please make sure that propel.schema.dir is set to '.' in local build.properties"/>
  43  </target>
  44  <target name="checkconfdir" unless="propel.conf.dir">
  45      <fail msg="Build failed. Please make sure that propel.conf.dir is set to '.' in local build.properties"/>
  46  </target>
  47  <target name="checkoutputdir" unless="propel.output.dir">
  48      <fail msg="Build failed. Please make sure that propel.output.dir is set to a directory of your choice (e.g. './build/') local build.properties"/>
  49  </target>
  50  <target name="configure" depends="init,checkproject,checkhome,checkschemadir,checkconfdir,checkoutputdir">
  51      <property name="project" value="{$propel.project}"/>
  52  </target>
  53  
  54  <target name="main" depends="configure" 
  55    description="The main target. Includes project-specific build.properties and calls the build-propel.xml script">    
  56  
  57   <phing phingfile="$propel.home}/build-propel.xml" target="$target}"/>
  58   
  59  </target>
  60  
  61  <!-- 
  62   Convenience mappings to build-propel.xml main targets 
  63   
  64   This makes it possible to use this buildfile w/o needing to specify
  65   target as a property, e.g.:
  66   
  67   $> phing -Dproject=bookstore insert-sql
  68   
  69   The main reason for this is just consistency w/ old build-propel.xml file
  70   (primarily for documentation & user confusion avoidance reasons).  There are relatively
  71   few & infrequently changing main targets of build-propel.xml, so it's a non-
  72   issue as far as maintenance is concerned.
  73  -->
  74  
  75  <target name="convert-props" depends="configure">
  76      <phing phingfile="$propel.home}/build-propel.xml" target="convert-props"/>
  77  </target>
  78  
  79  <target name="create-db" depends="configure">
  80      <phing phingfile="$propel.home}/build-propel.xml" target="create-db"/>
  81  </target>
  82  
  83  <target name="creole" depends="configure">
  84      <phing phingfile="$propel.home}/build-propel.xml" target="creole"/>
  85  </target>
  86  
  87  <target name="datadtd" depends="configure">
  88      <phing phingfile="$propel.home}/build-propel.xml" target="datadtd"/>
  89  </target>
  90  
  91  <target name="datadump" depends="configure">
  92      <phing phingfile="$propel.home}/build-propel.xml" target="datadump"/>
  93  </target>
  94  
  95  <target name="datasql" depends="configure">
  96      <phing phingfile="$propel.home}/build-propel.xml" target="datasql"/>
  97  </target>
  98  
  99  <target name="insert-sql" depends="configure">
 100      <phing phingfile="$propel.home}/build-propel.xml" target="insert-sql"/>
 101  </target>
 102  
 103  <target name="om" depends="configure">
 104      <phing phingfile="$propel.home}/build-propel.xml" target="om"/>
 105  </target>
 106  
 107  <target name="new-om" depends="configure">
 108      <phing phingfile="$propel.home}/build-propel.xml" target="new-om"/>
 109  </target>
 110  
 111  <target name="sql" depends="configure">
 112      <phing phingfile="$propel.home}/build-propel.xml" target="sql"/>
 113  </target>
 114  
 115  <target name="old-sql" depends="configure">
 116      <phing phingfile="$propel.home}/build-propel.xml" target="old-sql"/>
 117  </target>
 118  
 119  <target name="graphviz" depends="configure">
 120      <phing phingfile="$propel.home}/build-propel.xml" target="graphviz"/>
 121  </target>
 122  
 123  
 124  </project>


Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7