TDK newapp build file

"Mohd Amin" <[email protected]> Sat, 30 Nov 2002 22:35:44 +0800
Newsgroups gmane.comp.jakarta.turbine.tdk.devel
Message-ID <[email protected]>
------=_NextPart_000_0013_01C298C0.D1E39150
Content-Type: multipart/alternative;
	boundary="----=_NextPart_001_0014_01C298C0.D1E39150"


------=_NextPart_001_0014_01C298C0.D1E39150
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

The build file for newapps updated to support Windows XP.

--Amin--

------=_NextPart_001_0014_01C298C0.D1E39150
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>
<DIV><FONT face=3DArial size=3D2>The build file for newapps updated to =
support=20
Windows XP.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>--Amin--</FONT></DIV></DIV></BODY></HTML>

------=_NextPart_001_0014_01C298C0.D1E39150--

------=_NextPart_000_0013_01C298C0.D1E39150
Content-Type: text/xml;
	name="build.xml"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="build.xml"

<?xml version=3D"1.0"?>

<!-- Build file for application -->
<project name=3D"peer" default=3D"compile" basedir=3D".">

  <!-- Build classpath -->
  <path id=3D"classpath">
    <fileset dir=3D"../lib">
      <include name=3D"**/*.jar"/>
    </fileset>
    <fileset dir=3D"../../../../bin">
      <include name=3D"**/servlet*.jar"/>
    </fileset>
  </path>

  <!-- Give user a chance to override without editing this file=20
  (and without typing -D each time it compiles it) -->   =20
 =20
  <property file=3D"build.properties"/>
  <property file=3D"${user.home}/build.properties"/>
  <property name=3D"build.properties" value=3D"build.properties"/>
 =20
  <property name=3D"final.name" value=3D"${project}-${version}"/>
  <property name=3D"final.dir" value=3D"../${final.name}/"/>
 =20
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- I N I T  T A S K  T A R G E T                                    =
-->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- Taskdefs are defined inside this target as Ant seems to have     =
-->
  <!-- problems defining them at the top level.                         =
-->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->

  <target name=3D"init-tasks">
   =20
    <taskdef name=3D"torque-sql"=20
      classname=3D"org.apache.turbine.torque.TorqueSQLTask">
      <classpath refid=3D"classpath"/>
    </taskdef>
   =20
    <taskdef name=3D"torque-om"=20
      classname=3D"org.apache.turbine.torque.TorqueObjectModelTask">
      <classpath refid=3D"classpath"/>
    </taskdef>

    <taskdef name=3D"torque-create-db"
      classname=3D"org.apache.turbine.torque.TorqueCreateDatabase">
      <classpath refid=3D"classpath"/>
    </taskdef>

    <taskdef name=3D"sql-xml"=20
      classname=3D"org.apache.turbine.torque.TorqueSQLTransformTask">
      <classpath refid=3D"classpath"/>
    </taskdef>
   =20
    <taskdef name=3D"texen"=20
      classname=3D"org.apache.velocity.texen.ant.TexenTask">
      <classpath refid=3D"classpath"/>
    </taskdef>
 =20
  </target>

  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- I N I T  T A R G E T                                             =
-->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- You will probably only run this target once. It will generate    =
-->
  <!-- your sources for you and compile them.                           =
-->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->

  <target name=3D"init" description=3D"--> generates the full =
application">

    <antcall target=3D"create-database"/>
   =20
    <antcall target=3D"turbine-sql"/>
    <antcall target=3D"turbine-id-table-sql"/>
    <antcall target=3D"turbine-id-table-init-sql"/>
    <antcall target=3D"turbine-security-sql"/>
    <antcall target=3D"turbine-insert-sql"/>
   =20
    <antcall target=3D"project-sql"/>
    <antcall target=3D"project-id-table-init-sql"/>
    <antcall target=3D"project-insert-sql"/>
    <antcall target=3D"project-om"/>
   =20
    <antcall target=3D"update-tr-props"/>
    <antcall target=3D"compile"/>
 =20
  </target>

  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- C R E A T E  T A R G E T  D A T A B A S E                        =
-->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- Create the target database by executing a generated script       =
-->
  <!-- that is capable of performing the task.                          =
-->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
 =20
  <target name=3D"create-database" depends=3D"init-tasks,ext"=20
          unless=3D"database.manual.creation"
          description=3D"--> generates the target database">
   =20
    <property name=3D"script" value=3D"create-database.${ext}"/>
   =20
    <echo message=3D"${script}"/>
   =20
    <torque-create-db
      controlTemplate=3D"sql/db-init/Control.vm"
      outputDirectory=3D"${outputDirectory}/sql"
      templatePath=3D"${templatePath}"
      outputFile=3D"${script}"
      targetPlatform=3D"${platform}"
      targetDatabase=3D"${database}"
      databaseName=3D"${project}"
      databaseUser=3D"${databaseUser}"
      databasePassword=3D"${databasePassword}"
      databaseHost=3D"${databaseHost}"
    />
   =20
    <chmod file=3D"${outputDirectory}/sql/${script}" perm=3D"+x"/>
    <exec executable=3D"${fullPathOutputDirectory}/sql/${script}"=20
          failonerror=3D"yes"/>
   =20
  </target>

  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- G E N E R A T E  P R O J E C T  S Q L                            =
-->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- Generate the SQL for your project, these are in addition         =
-->
  <!-- to the base Turbine tables! The tables you require for your      =
-->
  <!-- project should be specified in project-schema.xml.               =
-->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->

  <target name=3D"project-sql" depends=3D"init-tasks"
          description=3D"--> generates the sql-script for your project">

    <echo message=3D"+------------------------------------------+"/>
    <echo message=3D"|                                          |"/>
    <echo message=3D"| Generating SQL for YOUR Turbine project! |"/>
    <echo message=3D"| Woo hoo!                                 |"/>
    <echo message=3D"|                                          |"/>
    <echo message=3D"+------------------------------------------+"/>

    <torque-sql
      contextProperties=3D"${build.properties}"
      controlTemplate=3D"${SQLControlTemplate}"
      outputDirectory=3D"${outputDirectory}/sql"
      templatePath=3D"${templatePath}"
      outputFile=3D"report.${project}.sql.generation"
      xmlFile=3D"${schemaDirectory}/${project}-schema.xml"
      targetDatabase=3D"${database}"
    />

  </target>

  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- G E N E R A T E  P R O J E C T  P E E R  B A S E D  O M          =
-->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- Generate the Peer-based object model for your project.           =
-->
  <!-- These are in addition to the base Turbine OM!                    =
-->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->

  <target name=3D"project-om" depends=3D"init-tasks"
          description=3D"--> generates the peer-based object model for =
your project">

    <echo message=3D"+------------------------------------------+"/>
    <echo message=3D"|                                          |"/>
    <echo message=3D"| Generating Peer-based Object Model for   |"/>
    <echo message=3D"| YOUR Turbine project! Woo hoo!           |"/>
    <echo message=3D"|                                          |"/>
    <echo message=3D"+------------------------------------------+"/>

    <torque-om
      contextProperties=3D"${build.properties}"
      controlTemplate=3D"${OMControlTemplate}"
      outputDirectory=3D"${outputDirectory}/java"
      templatePath=3D"${templatePath}"
      outputFile=3D"report.${project}.om.generation"
      targetPackage=3D"${targetPackage}.om"
      xmlFile=3D"${schemaDirectory}/${project}-schema.xml"
    />

  </target>
 =20
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- G E N E R A T E  T U R B I N E  S Q L                            =
-->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- Generate the SQL required for the Turbine base system.           =
-->
  <!-- You will probably do this once for your development, but         =
-->
  <!-- may do this repeatedly when you deploy and want your app         =
-->
  <!-- app to run with multiple DBs.                                    =
-->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->

  <target name=3D"turbine-sql" depends=3D"init-tasks"
          description=3D"--> generates the sql-script for the Turbine =
base system">

    <echo message=3D"+------------------------------------------+"/>
    <echo message=3D"|                                          |"/>
    <echo message=3D"| Generating SQL for Turbine base system!  |"/>
    <echo message=3D"|                                          |"/>
    <echo message=3D"+------------------------------------------+"/>

    <torque-sql
      controlTemplate=3D"${SQLControlTemplate}"
      outputDirectory=3D"${outputDirectory}/sql"
      templatePath=3D"${templatePath}"
      outputFile=3D"turbine-schema.sql"
      xmlFile=3D"${schemaDirectory}/turbine-schema.xml"
      targetDatabase=3D"${database}"
    />

  </target>

  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- G E N E R A T E  P R O J E C T  S Q L                            =
-->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- Generate the SQL for your project, these are in addition         =
-->
  <!-- to the base Turbine tables! The tables you require for your      =
-->
  <!-- project should be specified in project-schema.xml.               =
-->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->

  <target name=3D"turbine-id-table-sql" depends=3D"init-tasks">

    <echo message=3D"+------------------------------------------+"/>
    <echo message=3D"|                                          |"/>
    <echo message=3D"| Generating SQL for YOUR Turbine project! |"/>
    <echo message=3D"| Woo hoo!                                 |"/>
    <echo message=3D"|                                          |"/>
    <echo message=3D"+------------------------------------------+"/>

    <torque-sql
      controlTemplate=3D"${SQLControlTemplate}"
      outputDirectory=3D"${outputDirectory}/sql"
      templatePath=3D"${templatePath}"
      outputFile=3D"id-table-schema.sql"
      xmlFile=3D"${schemaDirectory}/id-table-schema.xml"
      targetDatabase=3D"${database}"
    />

  </target>

  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- G E N E R A T E  T U R B I N E  I D  B R O K E R  I N I T  S Q L =
-->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->

  <target name=3D"turbine-id-table-init-sql" depends=3D"init-tasks">

    <echo message=3D"+------------------------------------------+"/>
    <echo message=3D"|                                          |"/>
    <echo message=3D"| Generating TURBINE initialization SQL    |"/>
    <echo message=3D"| for ID Broker system!                    |"/>
    <echo message=3D"|                                          |"/>
    <echo message=3D"+------------------------------------------+"/>

    <torque-sql
      =
contextProperties=3D"bin/torque/templates/sql/id-table/turbine.props"
      controlTemplate=3D"${idTableControlTemplate}"
      outputDirectory=3D"${outputDirectory}/sql"
      templatePath=3D"${templatePath}"
      outputFile=3D"turbine-id-table-init.sql"
      xmlFile=3D"${schemaDirectory}/turbine-schema.xml"
      targetDatabase=3D"${database}"
    />

  </target>

  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- G E N E R A T E  P R O J E C T  I D  B R O K E R  I N I T  S Q L =
-->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->

  <target name=3D"project-id-table-init-sql" depends=3D"init-tasks">

    <echo message=3D"+------------------------------------------+"/>
    <echo message=3D"|                                          |"/>
    <echo message=3D"| Generating PROJECT initialization SQL    |"/>
    <echo message=3D"| for ID Broker system!                    |"/>
    <echo message=3D"|                                          |"/>
    <echo message=3D"+------------------------------------------+"/>

    <torque-sql
      =
contextProperties=3D"bin/torque/templates/sql/id-table/project.props"
      controlTemplate=3D"${idTableControlTemplate}"
      outputDirectory=3D"${outputDirectory}/sql"
      templatePath=3D"${templatePath}"
      outputFile=3D"${project}-id-table-init.sql"
      xmlFile=3D"${schemaDirectory}/${project}-schema.xml"
      targetDatabase=3D"${database}"
    />

  </target>

  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- T U R B I N E  S E C U R I T Y  S Y S T E M  S Q L               =
-->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->

  <target name=3D"turbine-security-sql" depends=3D"init-tasks">

    <echo message=3D"+------------------------------------------+"/>
    <echo message=3D"|                                          |"/>
    <echo message=3D"| Generating Turbine security system SQL!  |"/>
    <echo message=3D"|                                          |"/>
    <echo message=3D"+------------------------------------------+"/>
   =20
    <!-- This could probably be a simple texen task -->
   =20
    <torque-sql
      =
contextProperties=3D"bin/torque/templates/sql/id-table/project.props"
      controlTemplate=3D"${securityControlTemplate}"
      outputDirectory=3D"${outputDirectory}/sql"
      templatePath=3D"${templatePath}"
      outputFile=3D"turbine-security.sql"
      xmlFile=3D"${schemaDirectory}/${project}-schema.xml"
      targetDatabase=3D"${database}"
    />

  </target>

  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- I N S E R T  T U R B I N E  S Q L                                =
-->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->

  <target name=3D"turbine-insert-sql" description=3D"--> insert turbine =
sql">
   =20
    <antcall target=3D"insert-sql-file">
      <param name=3D"sqlFile" =
value=3D"${outputDirectory}/sql/turbine-schema.sql"/>
    </antcall>

    <antcall target=3D"insert-sql-file">
      <param name=3D"sqlFile" =
value=3D"${outputDirectory}/sql/turbine-security.sql"/>
    </antcall>

    <antcall target=3D"insert-sql-file">
      <param name=3D"sqlFile" =
value=3D"${outputDirectory}/sql/id-table-schema.sql"/>
    </antcall>

    <antcall target=3D"insert-sql-file">
      <param name=3D"sqlFile" =
value=3D"${outputDirectory}/sql/turbine-id-table-init.sql"/>
    </antcall>

  </target>

  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- I N S E R T  P R O J E C T  S Q L                                =
-->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
 =20
  <target name=3D"project-insert-sql" description=3D"--> insert project =
sql">
   =20
    <antcall target=3D"insert-sql-file">
      <param name=3D"sqlFile" =
value=3D"${outputDirectory}/sql/${project}-schema.sql"/>
    </antcall>
   =20
    <antcall target=3D"insert-sql-file">
      <param name=3D"sqlFile" =
value=3D"${outputDirectory}/sql/${project}-id-table-init.sql"/>
    </antcall>
 =20
  </target>

  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- INSERT SINGLE SQL FILE                                           =
-->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <target name=3D"insert-sql-file">
    <sql
      driver=3D"${databaseDriver}"
      url=3D"${databaseUrl}"
      userid=3D"${databaseUser}"
      password=3D"${databasePassword}"
      src=3D"${sqlFile}"
      autocommit=3D"true"
      onerror=3D"continue"
    >
      <classpath refid=3D"classpath"/>
    </sql>
  </target>

  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- U P D A T E  T U R B I N E  R E S O U R C E S  P R O P S         =
-->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
 =20
  <!-- This is a bit hacky but it makes sure that the user
       only has to edit the project properties file. So
       they don't have to edit the TR.props as well. I will
       unify this in a less hack-ass manner next round :-)
  -->
 =20
  <target name=3D"update-tr-props">
   =20
    <filter token=3D"DATABASE_DRIVER" value=3D"${databaseDriver}"/>
    <filter token=3D"DATABASE_URL" value=3D"${databaseUrl}"/>
    <filter token=3D"DATABASE_USER" value=3D"${databaseUser}"/>
    <filter token=3D"DATABASE_PASSWORD" value=3D"${databasePassword}"/>
   =20
    <property name=3D"database.descriptor" =
value=3D"${master.conf.dir}/database/${database}"/>
    <property name=3D"database.name" value=3D"${project}"/>
    <property file=3D"${database.descriptor}"/>
   =20
    <filter token=3D"DATABASE_ADAPTOR" value=3D"${database.adaptor}"/>
 =20
    <copy=20
      file=3D"${conf.dir}/TurbineResources.properties"=20
      tofile=3D"${conf.dir}/tmp"
      filtering=3D"yes"
    />

    <move
      file=3D"${conf.dir}/tmp"
      tofile=3D"${conf.dir}/TurbineResources.properties"=20
    />

  </target>

  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- C O M P I L E                                                     =
  -->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --> =20
 =20
  <target name=3D"compile" description=3D"--> compiles the source code">
       =20
    <javac srcdir=3D"${src.dir}"
      destdir=3D"${build.dest}"
      debug=3D"${debug}"
      deprecation=3D"${deprecation}"
      optimize=3D"${optimize}">
           =20
      <classpath refid=3D"classpath"/>

    </javac>
 =20
  </target>

  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- C L E A N                                                        =
-->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
 =20
  <target name=3D"clean" description=3D"--> cleans up the build =
directory">
   =20
    <delete dir=3D"${build.dest}"/>
    <mkdir dir=3D"${build.dest}"/>
 =20
  </target>

  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- S Q L  ->  X M L                                                  =
  -->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!--  inputFile: The input sql file. This must be valid sql file but   =
  -->
  <!--             it not not be in any specific format.                 =
  -->
  <!-- outputFile: The file where the xml schema will be written         =
  -->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->

  <target name=3D"sql2xml">
   =20
    <sql-xml
      inputFile=3D"${schemaDirectory}/schema.sql"
      outputFile=3D"${schemaDirectory}/schema.xml"
    />
 =20
  </target>

  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- J A R                                                             =
  -->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --> =20
 =20
  <target name=3D"jar" depends=3D"compile">
   =20
    <jar jarfile=3D"../${final.name}.jar"
      basedir=3D"${build.dest}"
      excludes=3D"**/package.html"
    />
 =20
  </target>

  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -->
  <!-- E X T E N S I O N  F I N D E R                                    =
  -->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --> =20
  <!-- Alleviate the user from having to type in the extension of =
scripts  -->
  <!-- for their target platform. Ant can do it just peachy.             =
  -->
  <!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --> =20

  <target name=3D"ext" depends=3D"set-os,windows-ext">
    <echo message=3D"Platform =3D ${platform}"/>
    <echo message=3D"Extension =3D ${ext}"/>
  </target>
  <target name=3D"set-os">
    <property name=3D"is${os.name}" value=3D"true"/>
  </target> =20
  <target name=3D"windows-ext" depends=3D"unix-ext" unless=3D"ext">
    <property name=3D"platform" value=3D"windows"/>
    <property name=3D"ext" value=3D"bat"/>
  </target>
  <target name=3D"unix-ext" depends=3D"set-unix" if=3D"is.Unix">
    <property name=3D"platform" value=3D"unix"/>
    <property name=3D"ext" value=3D"sh"/>
  </target>
  <target name=3D"set-unix" depends=3D"set-windows98" =
unless=3D"is.Windows">
    <property name=3D"is.Unix" value=3D"true" />
  </target>
  <target name=3D"set-windows98" depends=3D"set-windowsNT" =
if=3D"isWindows 98">
    <property name=3D"is.Windows" value=3D"true" />
  </target>
  <target name=3D"set-windowsNT" depends=3D"set-windows2000" =
if=3D"isWindows NT">
    <property name=3D"is.Windows" value=3D"true" />
  </target>
  <target name=3D"set-windows2000" depends=3D"set-windowsXP" =
if=3D"isWindows 2000">
    <property name=3D"is.Windows" value=3D"true" />
  </target>
  <target name=3D"set-windowsXP" if=3D"isWindows XP">
    <property name=3D"is.Windows" value=3D"true" />
  </target>
</project>


------=_NextPart_000_0013_01C298C0.D1E39150
Content-Type: text/plain; charset=us-ascii

--
To unsubscribe, e-mail:   <mailto:[email protected]>
For additional commands, e-mail: <mailto:[email protected]>
------=_NextPart_000_0013_01C298C0.D1E39150--