[ 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/pear/ -> pear-build.xml (source)

   1  <!--
   2      Use this file to faciliate easy per-project building using 
   3      PEAR-installed Propel-generator.
   4  
   5      This Phing script is invoked via the shell script propel-gen (.bat
   6      for Windows).  Normally you should not need to edit this script or
   7      be aware of it in any way.
   8      
   9      Normal use:
  10      $> propel-gen /path/to/my/project
  11      
  12      Specific target: 
  13      $> propel-gen insert-sql /path/to/my/project 
  14  
  15  -->
  16  <project name="propel-project-builder" default="main" basedir=".">
  17  
  18  <!-- set a default target if none provided -->
  19  <property name="target" value="main"/>
  20  
  21  <property name="propel.project.dir" value="$project.dir}"/>
  22  <resolvepath propertyName="propel.project.dir" file="$propel.project.dir}" dir="$application.startdir}"/>
  23  
  24  <target name="projdircheckExists">
  25    <condition property="projDirExists">
  26        <and>
  27          <not>
  28              <equals arg1="$propel.project.dir}" arg2="" trim="true"/>
  29          </not>
  30          <available file="$propel.project.dir}/build.properties"/>
  31      </and>
  32    </condition>
  33  </target>
  34  
  35  <target name="projdircheck" depends="projdircheckExists" unless="projDirExists">
  36      <echo message="====================================================="/>
  37      <echo message="Project directory not specified or invalid. You must "/>
  38      <echo message="specify the path to your project directory and your "/>
  39      <echo message="project directory must contain your build.properties "/>
  40      <echo message="and schema.xml files.                                "/>
  41      <echo message=" "/>
  42      <echo message="Usage: "/>
  43      <echo message=" "/>
  44      <echo message="$&gt; propel-gen /path/to/projectdir [target]"/>
  45      <echo message=" "/>
  46      <echo message="====================================================="/>    
  47      <fail message="No project directory specified."/>
  48  </target>
  49  
  50  <target name="configure" depends="projdircheck">
  51      <echo msg="Loading project-specific props from $project.dir}/build.properties"/>
  52      <property file="$propel.project.dir}/build.properties"/>
  53  </target>
  54  
  55  <target name="main" depends="configure" 
  56    description="The main target. Includes project-specific build.properties and calls the build-propel.xml script">    
  57  
  58   <!--<property file="$project.dir}/build.properties"/>-->
  59   <phing phingfile="build-propel.xml" target="$target}"/>
  60   
  61  </target>
  62  
  63  
  64  <!-- 
  65   Convenience mappings to build-propel.xml main targets 
  66   
  67   This makes it possible to use this buildfile w/o needing to specify
  68   target as a property, e.g.:
  69   
  70   $> phing -Dproject=bookstore insert-sql
  71   
  72   The main reason for this is just consistency w/ old build-propel.xml file
  73   (primarily for documentation & user confusion avoidance reasons).  There are relatively
  74   few & infrequently changing main targets of build-propel.xml, so it's a non-
  75   issue as far as maintenance is concerned.
  76  -->
  77  
  78  <target name="convert-props" depends="configure">
  79      <phing phingfile="build-propel.xml" target="convert-props"/>
  80  </target>
  81  
  82  <target name="create-db" depends="configure">
  83      <phing phingfile="build-propel.xml" target="create-db"/>
  84  </target>
  85  
  86  <target name="creole" depends="configure">
  87      <phing phingfile="build-propel.xml" target="creole"/>
  88  </target>
  89  
  90  <target name="datadtd" depends="configure">
  91      <phing phingfile="build-propel.xml" target="datadtd"/>
  92  </target>
  93  
  94  <target name="datadump" depends="configure">
  95      <phing phingfile="build-propel.xml" target="datadump"/>
  96  </target>
  97  
  98  <target name="datasql" depends="configure">
  99      <phing phingfile="build-propel.xml" target="datasql"/>
 100  </target>
 101  
 102  <target name="insert-sql" depends="configure">
 103      <phing phingfile="build-propel.xml" target="insert-sql"/>
 104  </target>
 105  
 106  <target name="om" depends="configure">
 107      <phing phingfile="build-propel.xml" target="om"/>
 108  </target>
 109  
 110  <target name="sql" depends="configure">
 111      <phing phingfile="build-propel.xml" target="sql"/>
 112  </target>
 113  
 114  </project>


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