commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prick...@apache.org
Subject cvs commit: jakarta-commons-sandbox/periodicity build-legacy.xml
Date Thu, 03 Oct 2002 21:59:46 GMT
prickett    2002/10/03 14:59:46

  Modified:    periodicity build-legacy.xml
  Log:
  Gutting the build-legacy.xml file to the bare minimum needed to compile
  Periodicity.
  
  Revision  Changes    Path
  1.3       +0 -363    jakarta-commons-sandbox/periodicity/build-legacy.xml
  
  Index: build-legacy.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/periodicity/build-legacy.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- build-legacy.xml	3 Oct 2002 20:37:46 -0000	1.2
  +++ build-legacy.xml	3 Oct 2002 21:59:46 -0000	1.3
  @@ -1,21 +1,4 @@
   <project name="Periodicity" default="core" basedir=".">
  -  <property name="version" value="0.0.1-dev"/>
  -  <property name="project" value="periodicity"/>
  -  <property name="build.dir" value="./bin"/>
  -  <property name="build.src" value="${build.dir}/src"/>
  -  <property name="build.dest" value="${build.dir}/classes"/>
  -  <property name="build.ear" value="${build.dir}/ear"/>
  -  <property name="build.war" value="${build.dir}/war"/>
  -  <property name="torque.home" value="${build.dir}/torque"/>
  -  <property name="tdk.home" value="${build.dir}/tdk"/>
  -  <property name="src.java.dir" value="./src/java"/>
  -  <property name="library.dir" value="./lib"/>
  -  <property name="conf.dir" value="./conf"/>
  -  <property name="javadoc.dir" value="./docs/api"/>
  -  <property name="final.name" value="${project}-${version}"/>
  -  <property name="final.dir" value="./${final-name}"/>
  -  <property name="build.properties" value="build.properties"/>
  -  <property name="build.sysclasspath" value="first"/>
     <property file="./conf/build/build.om.properties"/>
     <property file="./conf/build/build.db.properties"/>
     <property file="./conf/build/build.jars.properties"/>
  @@ -27,15 +10,6 @@
       </fileset>  
     </path>
   
  -  <target name="mv-src">
  -    <mkdir dir="${build.dir}"/>
  -    <mkdir dir="${build.dest}"/>
  -    <mkdir dir="${build.src}"/>
  -    <copy todir="${build.src}">
  -      <fileset dir="${src.java.dir}"/>
  -    </copy>
  -  </target>
  -
     <target name="extract-torque-files">
       <mkdir dir="${maven.torque.dir}"/>
       <unjar src="${torque.jar}" dest="${maven.torque.dir}"/>
  @@ -43,342 +17,5 @@
     
     <target name="om" depends="extract-torque-files">
       <ant antfile="build-torque.xml" target="om"/>
  -  </target>  
  -  
  -  
  -  <target name="generate-peers" depends="mv-src">
  -    <antcall target="extract-torque-files"/>
  -    <taskdef
  -      name="torque-om"
  -      classname="org.apache.torque.task.TorqueDataModelTask">
  -      <classpath refid="classpath"/>
  -    </taskdef>  
  -    
  -    <torque-om
  -      contextProperties="./conf/build/build.om.properties"
  -      basePathToDbProps="sql/base/"
  -      targetPackage="${targetPackage}.om"
  -      sqlDbMap="${build.src}/sql/sqldb.map"
  -      useClasspath="true"
  -      targetDatabase="${database}">
  -      <fileset dir="./src/xml">
  -        <include name="periodicity-schema.xml"/>
  -      </fileset>
  -    </torque-om>  
  -  </target>  
  -
  -  <target name="generate-sql" depends="update-id-xml">
  -    <taskdef
  -      name="torque-sql"
  -      classname="org.apache.torque.task.TorqueSQLTask">
  -      <classpath refid="classpath"/>
  -    </taskdef>  
  -  
  -    <torque-sql
  -      contextProperties="${build.properties}"
  -      controlTemplate="${SQLControlTemplate}"
  -      outputDirectory="${build.src}/sql"
  -      templatePath="${torque.home}"
  -      basePathToDbProps="sql/base/"
  -      outputFile="report.${project}.sql.generation"
  -      idTableXMLFile="${torque.home}/id-table-schema.xml"
  -      targetDatabase="${database}">
  -      <fileset dir="./src/xml">
  -        <include name="periodicity-schema.xml"/>
  -      </fileset>
  -    </torque-sql>
  -  </target>
  -
  -
  -  <target name="test-vobjects">
  -    <junit printsummary="yes" haltonfailure="yes">
  -      <test name="org.apache.commons.periodicity.test.VObjectTests" 
  -            haltonfailure="no" outfile="result">
  -        <formatter type="xml"/>
  -      </test>
  -    </junit>
  -  </target>  
  -  
  -  <target name="core">
  -    <antcall target="generate-peers"/>
  -    <antcall target="recompile-no-peer-generation"/>
  -  </target>  
  -
  -  <target name="recompile-no-peer-generation">  
  -    <javac srcdir="${build.dir}" destdir="${build.dest}" debug="${debug}">
  -      <classpath refid="classpath"/>
  -    </javac>  
  -    <jar jarfile="${build.dir}/${project}-${version}.jar" 
  -         basedir="${build.dest}"/>
  -  </target>  
  -  
  -  <target name="war-no-build-fast">
  -    <mkdir dir="${build.war}"/>
  -    <mkdir dir="${build.war}/WEB-INF"/>
  -    <mkdir dir="${build.war}/WEB-INF/lib"/>
  -    <mkdir dir="${build.war}/WEB-INF/conf"/>
  -    <mkdir dir="${build.war}/WEB-INF/templates"/>
  -    <mkdir dir="${build.war}/WEB-INF/templates/screens"/>
  -    <mkdir dir="${tdk.home}"/>
  -    <gunzip src="${lib.repo}/tdk-templates.tar.gz"
  -          dest="${tdk.home}/tdk-templates.tar"/>
  -    <untar src="${tdk.home}/tdk-templates.tar"
  -           dest="${tdk.home}"/>
  -    <copy todir="${build.war}/WEB-INF/templates/screens">
  -      <fileset dir="./src/velocity/test"/>
  -    </copy>  
  -    <copy todir="${build.war}/WEB-INF/lib">
  -      <fileset dir="./lib">
  -        <exclude name="tdk.jar"/>
  -      </fileset>  
  -    </copy>  
  -    <copy file="${build.dir}/${project}-${version}.jar"
  -          todir="${build.war}/WEB-INF/lib"/>
  -    <copy file="./conf/turbine/TurbineResources.properties" 
  -          todir="${build.war}/WEB-INF/conf"/>
  -    <antcall target="create-${database}-torque-properties"/>            
  -    <copy file="./conf/tomcat/web.xml"
  -           todir="${build.war}/WEB-INF"/>
  -    <copy file="${tdk.home}/Default.vm"
  -          todir="${build.war}/WEB-INF/templates/layouts"/>
  -    <copy file="${tdk.home}/DefaultBottom.vm"
  -          todir="${build.war}/WEB-INF/templates/navigations"/>
  -    <copy file="./src/velocity/turbine/DefaultTop.vm"
  -          todir="${build.war}/WEB-INF/templates/navigations"/>
  -    <copy file="${tdk.home}/Index.vm"
  -          todir="${build.war}/WEB-INF/templates/screens"/>
  -    <copy file="${tdk.home}/Menu.vm"
  -          todir="${build.war}/WEB-INF/templates/navigations"/>
  -    <copy todir="${build.war}/${javadoc.dir}">
  -      <fileset dir="${javadoc.dir}"/>
  -    </copy>  
  -    <jar jarfile="${build.dir}/${project}.war"
  -         basedir="${build.war}"/>
  -  </target>
  -  
  -  <target name="create-mysql-torque-properties">
  -    <taskdef name="torque-props" 
  -      classname="org.apache.commons.periodicity.ant.CustomizeTorquePropsTask">
  -      <classpath refid="classpath"/>
  -    </taskdef>  
  -    <torque-props original="./conf/torque/torque.properties"
  -                  custom="${build.war}/WEB-INF/conf/Torque.properties"
  -                  user="${databaseUser}" password="${databasePassword}"
  -                  url="${mysql.databaseUrl}" 
  -                  driver="${mysql.databaseDriver}"/>
  -  </target>
  -
  -  <target name="create-postgresql-torque-properties">
  -    <taskdef name="torque-props" 
  -      classname="org.apache.commons.periodicity.ant.CustomizeTorquePropsTask">
  -      <classpath refid="classpath"/>
  -    </taskdef>  
  -    <torque-props original="./conf/torque/torque.properties"
  -                  custom="${build.war}/WEB-INF/conf/Torque.properties"
  -                  user="${databaseUser}" password="${databasePassword}"
  -                  url="${postgresql.databaseUrl}" 
  -                  driver="${postgresql.databaseDriver}"/>
  -  </target>
  -  
  -  <target name="war-build-fast" depends="core">
  -    <antcall target="war-no-build-fast"/>
  -  </target>  
  -
  -  <target name="war">
  -    <antcall target="javadoc"/>
  -    <antcall target="war-build-fast"/>
  -  </target>  
  -     
  -  
  -  <target name="clean">
  -    <delete dir="${build.dir}"/>
  -  </target>  
  -
  -  <target name="javadoc-clean">
  -    <delete dir="${javadoc.dir}"/>
  -  </target>
  -
  -  <target name="real-clean">
  -    <antcall target="clean"/>
  -    <antcall target="javadoc-clean"/>
  -  </target>  
  -  
  -  <target name="javadoc">
  -    <mkdir dir="${javadoc.dir}"/> 
  -    <javadoc sourcepath="${src.java.dir}" destdir="${javadoc.dir}" 
  -              packagenames="org.apache.commons/periodicity.*"/>
  -  </target>  
  -
  -  <target name="update-jars">
  -    <taskdef
  -      name="httpget"
  -      className="org.apache.tdk.task.Get">
  -      <classpath refid="classpath"/>
  -    </taskdef>
  -    <httpget
  -      baseUrl="http://jakarta.apache.org/turbine/jars/"
  -      dest="${lib.repo}"
  -      dependencyFile="conf/build/deps.list"
  -    />
  -  </target>  
  -
  -  <target name="update-id-xml" depends="extract-torque-files">
  -    <get src="http://cvs.apache.org/viewcvs/~checkout~/jakarta-turbine-torque/src/schema/id-table-schema.xml"
  -         dest="${torque.home}/id-table-schema.xml"/>
  -  </target>       
  -
  -  <target name="update-tdk-templates">
  -    <mkdir dir="${tdk.home}"/>
  -    <get src="http://cvs.apache.org/viewcvs/~checkout~/jakarta-turbine-tdk/src/tdk/apps/2/templates/app/layouts/Default.vm"
dest="${tdk.home}/Default.vm"/>
  -    <get src="http://cvs.apache.org/viewcvs/~checkout~/jakarta-turbine-tdk/src/tdk/apps/2/templates/app/navigations/DefaultBottom.vm"
dest="${tdk.home}/DefaultBottom.vm"/>
  -    <get src="http://cvs.apache.org/viewcvs/~checkout~/jakarta-turbine-tdk/src/tdk/apps/2/templates/app/navigations/Menu.vm"
dest="${tdk.home}/Menu.vm"/>
  -    <get src="http://cvs.apache.org/viewcvs/~checkout~/jakarta-turbine-tdk/src/tdk/apps/2/templates/app/screens/Index.vm"
dest="${tdk.home}/Index.vm"/>
  -    <tar tarfile="${lib.repo}/tdk-templates.tar"
  -         basedir="${tdk.home}"/>
  -    <gzip src="${lib.repo}/tdk-templates.tar" 
  -          zipfile="${lib.repo}/tdk-templates.tar.gz"/>
  -    <delete file="${lib.repo}/tdk-templates.tar"/>      
  -  </target>  
  -
  -  <target name="update-dependencies">
  -    <mkdir dir="${torque.home}"/>
  -    <antcall target="update-jars"/>
  -    <antcall target="update-id-xml"/>
  -    <antcall target="update-tdk-templates"/>
  -    <antcall target="build-periodicity-ant-tasks"/>
  -  </target>  
  -
  -  <target name="build-periodicity-ant-tasks">
  -    <mkdir dir="${build.dir}"/>
  -    <mkdir dir="${build.dest}"/>
  -    <mkdir dir="${build.src}"/>
  -    <copy todir="${build.src}">
  -      <fileset dir="${src.java.dir}/org/apache/commons/periodicity/ant">
  -      </fileset>  
  -    </copy>
  -    <javac srcdir="${build.dir}" destdir="${build.dest}" debug="${debug}">
  -      <classpath refid="classpath"/>
  -    </javac>  
  -    <jar jarfile="${periodicity.tasks.jar}"
  -         basedir="${build.dest}"/>
  -  </target>       
  -
  -  <target name="generate-create-sql" depends="extract-torque-files">
  -    <taskdef
  -      name="torque-create-db"
  -      classname="org.apache.torque.task.TorqueCreateDatabase">
  -      <classpath refid="classpath"/>
  -    </taskdef>
  -    <torque-create-db
  -      controlTemplate="sql/db-init/Control.vm"
  -      outputDirectory="${build.src}/sql"
  -      templatePath="${torque.home}"
  -      outputFile="create-db.sql">
  -      <fileset dir="./src/xml">
  -        <include name="periodicity-schema.xml"/>
  -      </fileset>
  -    </torque-create-db>
  -  </target>  
  -  
  -  <target name="project-create-mysql-db">
  -    <sql
  -      driver="${mysql.databaseDriver}"
  -      url="${mysql.createDatabaseUrl}"
  -      userid="${databaseUser}"
  -      password="${databasePassword}"
  -      src="${build.src}/sql/create-db.sql"
  -      autocommit="true"
  -      onerror="continue">
  -      <classpath refid="classpath"/>
  -    </sql>  
  -  </target>
  -
  -  <target name="project-create-postgresql-db">
  -    <sql
  -      driver="${postgresql.databaseDriver}"
  -      url="${postgresql.createDatabaseUrl}"
  -      userid="${databaseUser}"
  -      password="${databasePassword}"
  -      src="${build.src}/sql/create-db.sql"
  -      autocommit="true"
  -      onerror="continue">
  -      <classpath refid="classpath"/>
  -    </sql>  
  -  </target>
  -  
  -  <target name="project-create-db" depends="generate-create-sql">
  -    <antcall target="project-create-${database}-db"/>
  -  </target>  
  -
  -  <target name="project-insert-mysql">
  -    <taskdef
  -      name="torque-insert-sql"
  -      classname="org.apache.torque.task.TorqueSQLExec">
  -      <classpath refid="classpath"/>
  -    </taskdef>
  -    <torque-insert-sql
  -      driver="${mysql.databaseDriver}"
  -      url="${mysql.databaseUrl}"
  -      userid="${databaseUser}"
  -      password="${databasePassword}"
  -      autocommit="true"
  -      onerror="continue"
  -      sqldbmap="${build.src}/sql/sqldb.map"
  -      srcDir="${build.src}/sql">
  -      <classpath refid="classpath"/>
  -    </torque-insert-sql>
  -  </target>  
  -
  -  <target name="project-insert-postgresql">
  -    <taskdef
  -      name="torque-insert-sql"
  -      classname="org.apache.torque.task.TorqueSQLExec">
  -      <classpath refid="classpath"/>
  -    </taskdef>
  -    <torque-insert-sql
  -      driver="${postgresql.databaseDriver}"
  -      url="${postgresql.databaseUrl}"
  -      userid="${databaseUser}"
  -      password="${databasePassword}"
  -      autocommit="true"
  -      onerror="continue"
  -      sqldbmap="${build.src}/sql/sqldb.map"
  -      srcDir="${build.src}/sql">
  -      <classpath refid="classpath"/>
  -    </torque-insert-sql>
  -  </target>
  -  
  -  <target name="project-insert-sql" depends="generate-sql">
  -    <antcall target="project-insert-${database}"/>
  -  </target>  
  -
  -  <target name="dist" depends="war">
  -    <copy todir="${build.dir}/${project}/${project}">
  -      <fileset dir=".">
  -        <exclude name="velocity.log*"/>
  -        <exclude name="test.properties"/>
  -      </fileset>  
  -    </copy>
  -    <copy file="${build.dir}/${project}-${version}.jar" 
  -          tofile="${build.dir}/${project}/${project}/lib/${project}-${version}.jar"/>
  -    <copy file="${build.dir}/${project}.war"
  -          tofile="${build.dir}/${project}/${project}/${project}.war"/>
  -    <delete dir="${build.dir}/${project}/${project}/${build.dir}"/>      
  -    <zip zipfile="${build.dir}/${project}-${version}.zip"
  -         basedir="${build.dir}/${project}"/>
  -    <tar tarfile="${build.dir}/${project}-${version}.tar"
  -         basedir="${build.dir}/${project}"/>
  -    <gzip src="${build.dir}/${project}-${version}.tar"
  -          zipfile="${build.dir}/${project}-${version}.tar.gz"/>
  -    <delete file="${build.dir}/${project}-${version}.tar"/>      
  -  </target>  
  -
  -  <target name="install-db">
  -    <antcall target="project-create-db"/>
  -    <antcall target="project-insert-sql"/>
  -  </target>  
  -
  -  <target name="install" depends="install-db">
  -    <antcall target="war"/>
     </target>  
   </project>  
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message