cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject cvs commit: xml-cocoon2/src/blocks/databases build.xml
Date Thu, 20 Feb 2003 20:25:35 GMT
stefano     2003/02/20 12:25:35

  Added:       src/blocks/databases build.xml
  Log:
  each block can now have it's own (optional) build that is picked up by the xslt-generated
block build ant file
  
  Revision  Changes    Path
  1.1                  xml-cocoon2/src/blocks/databases/build.xml
  
  Index: build.xml
  ===================================================================
  <project default="main" basedir=".">
  
        <target name="main" depends="prepare-jdbc, prepare-database-connection"/>
        
        <target name="prepare-database-connection" depends="prepare-database-connection-pw,prepare-database-connection-no-pw">
          <filter token="db_driver" value="${webapp.samples.database.driver}"/>
          <filter token="db_url" value="${webapp.samples.database.url}"/>
          <filter token="db_user" value="${webapp.samples.database.user}"/>
        </target>
  
        <target name="prepare-database-connection-pw" if="webapp.samples.database.password">
          <filter token="db_password" value="{string('${webapp.samples.database.password}')}"/>
        </target>
  
        <target name="prepare-database-connection-no-pw" unless="webapp.samples.database.password">
          <filter token="db_password" value=""/>
        </target>
  
        <target name="prepare-jdbc" depends="filter-jdbc,nofilter-jdbc"/>
  
        <target name="filter-jdbc" unless="jdbc3.present">
          <filter token="JDBC3_START" value="${line.separator} /* Start JDBC3 specific
code "/>
          <filter token="JDBC3_END" value=" End JDBC3 specific code */"/>
        </target>
  
        <target name="nofilter-jdbc" if="jdbc3.present">
          <filter token="JDBC3_START" value="Start JDBC3 specific code"/>
          <filter token="JDBC3_END" value="End JDBC3 specific code"/>
        </target>
  
  </project>
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message