You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by he...@apache.org on 2003/07/01 12:48:58 UTC

cvs commit: jakarta-turbine-2 maven.xml

henning     2003/07/01 03:48:58

  Modified:    .        maven.xml
  Log:
  - Split out the preGoals into real goals so that non-maven users can run
    these targets once and the work on the generated files
  - added descriptions to the targets
  - cleaned up and worked on the comments
  - replaced some <goal name="foo"><attainGoal="bar"/><attainGoal="baz"/></goal>
    by <goal name="foo" prereqs="bar,baz"/>
  
  Revision  Changes    Path
  1.14      +60 -30    jakarta-turbine-2/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-2/maven.xml,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- maven.xml	3 Jun 2003 13:21:50 -0000	1.13
  +++ maven.xml	1 Jul 2003 10:48:58 -0000	1.14
  @@ -16,12 +16,29 @@
     default="java:jar">
   
     <!-- ================================================================== -->
  +  <!-- C O M P I L E   P R E - G O A L                                    -->
  +  <!-- ================================================================== -->
  +  <!-- Before compiling the Turbine Source Code, it is necessary to       -->
  +  <!-- generate the Torque Peers. This preGoal runs the prepare-sources   -->
  +  <!-- target.                                                            -->
  +  <!-- ================================================================== -->
  +  <preGoal name="java:compile">
  +    <attainGoal name="prepare-sources"/>
  +
  +    <!-- Hack for Maven bug when compiling with a clean target. -->
  +    <j:if test="${sourcesPresent != 'true'}">
  +      <j:set var="sourcesPresent" value="true"/>
  +      <path id="maven.compile.src.set" location="target/src"/>
  +    </j:if>
  +
  +  </preGoal>
  +
  +  <!-- ================================================================== -->
     <!-- C O M P I L E   P O S T - G O A L                                  -->
     <!-- ================================================================== -->
     <!-- executed before the building of the jar, it copies all the various -->
     <!-- resource files into the jar build directory                        -->
     <!-- ================================================================== -->
  -
     <postGoal name="java:compile">
       <copy
         file="${maven.src.dir}/dtd/intake.dtd"
  @@ -34,48 +51,55 @@
     </postGoal>
   
     <!-- ================================================================== -->
  -  <!-- T O R Q U E  G E N E R A T I O N  P R E  G O A L                   --> 
  +  <!-- T O R Q U E - I N I T   P R E - G O A L                            -->
     <!-- ================================================================== -->
  -  <!-- This preGoal is executed before the the compilation goal so that   -->
  -  <!-- the sources for the security service and the scheduler are         -->
  -  <!-- generated.                                                         -->
  +  <!-- The schema files for the Torque peers must be prepared and some    -->
  +  <!-- variables added. This must be done before doing any torque work    -->
     <!-- ================================================================== -->
  +  <preGoal name="torque:init">
  +    <attainGoal name="copy-om"/>
  +  </preGoal>
   
  -  <preGoal name="java:compile">
  +  <!-- ================================================================== -->
  +  <!-- P R E P A R E   S O U R C E S                                      -->
  +  <!-- ================================================================== -->
  +  <!-- This target builds the torque peers needed to compile the Turbine  -->
  +  <!-- distribution. If you don't want to build the whole code with       -->
  +  <!-- maven but use an IDE (e.g. Eclipse), you can run this target and   -->
  +  <!-- use target/src as your source directory.                           -->
  +  <!-- ================================================================== -->
  +  <goal name="prepare-sources" description="Copy Turbine and Torque generated sources to target/src">
       <copy todir="target/src">
         <fileset dir="src/java"/>
       </copy>
   
  -    <attainGoal name="scheduler-om"/>
  -    <attainGoal name="torque-security-om"/>
  -
  -    <!-- Hack for Maven bug when compiling with a clean target. -->
  -    <j:if test="${sourcesPresent != 'true'}">
  -      <j:set var="sourcesPresent" value="true"/>
  -      <path id="maven.compile.src.set" location="target/src"/>
  -    </j:if>
  +    <attainGoal name="generate-om"/>
  +  </goal>
   
  -  </preGoal>
   
  -  <!-- ================================================== -->
  -  <!-- Create the SQL necessary for the Databases         -->
  -  <!-- ================================================== -->
  +  <!-- ================================================================== -->
  +  <!-- T O R Q U E  G E N E R A T I O N   G O A L                         --> 
  +  <!-- ================================================================== -->
  +  <!-- Generates only the java classes for the peers of the scheduler and -->
  +  <!-- the torque security service                                        -->
  +  <!-- ================================================================== -->
  +  <goal name="generate-om" description="Generate Torque peer classes in target/src"
  +    prereqs="scheduler-om, torque-security-om"/>
   
  -  <preGoal name="torque:init">
  -    <attainGoal name="copy-om"/>
  -  </preGoal>
   
     <!-- ================================================== -->
  -  <!-- Prepare the OM Sources for Torque                  -->
  +  <!-- Prepare all Sources for Torque                     -->
     <!-- ================================================== -->
  -
  -  <goal name="copy-om">
  +  <goal name="copy-om" description="Copy all schema files to target/xml and replace database related variables">
       <attainGoal name="copy-scheduler-om"/>
       <attainGoal name="copy-torque-security-om"/>
       <attainGoal name="copy-id-table-om"/>
     </goal>
   
  -  <goal name="copy-scheduler-om">
  +  <!-- ================================================== -->
  +  <!-- Prepare Scheduler Sources for Torque               -->
  +  <!-- ================================================== -->
  +  <goal name="copy-scheduler-om" description="Copy scheduler schema files to target/xml and replace database related variables">
       <filter token="DATABASE_DEFAULT" value="${scheduler.database.name}"/>
       <filter token="EXTRA_USER_COLUMNS" value="${scheduler.extra.user.columns}"/>
       <copy
  @@ -84,7 +108,10 @@
         filtering="yes"/>
     </goal>
   
  -  <goal name="copy-torque-security-om">
  +  <!-- ================================================== -->
  +  <!-- Prepare Torque Security Service Sources for Torque -->
  +  <!-- ================================================== -->
  +  <goal name="copy-torque-security-om" description="Copy torque security service schema files to target/xml and replace database related variables">
       <filter token="DATABASE_DEFAULT" value="${torque.security.database.name}"/>
       <copy
         file="src/schema/torque-security-schema.xml"
  @@ -92,7 +119,10 @@
         filtering="yes"/>
     </goal>
     
  -  <goal name="copy-id-table-om">
  +  <!-- ================================================== -->
  +  <!-- Prepare ID Table (for idBroker) Sources for Torque -->
  +  <!-- ================================================== -->
  +  <goal name="copy-id-table-om" description="Copy id-table schema files to target/xml and replace database related variables">
       <filter token="DATABASE_DEFAULT" value="${scheduler.database.name}"/>
       <copy
         file="src/schema/id-table-schema.xml"
  @@ -108,7 +138,7 @@
     <!-- ================================================== -->
     <!-- Build Peers for the Scheduler                      -->
     <!-- ================================================== -->
  -  <goal name="scheduler-om">
  +  <goal name="scheduler-om" description="generate Torque peers for the scheduler">
   
       <attainGoal name="copy-scheduler-om"/>
   
  @@ -122,7 +152,7 @@
     <!-- ================================================== -->
     <!-- Build Peers for Torque Security                    -->
     <!-- ================================================== -->
  -  <goal name="torque-security-om">
  +  <goal name="torque-security-om" description="generate Torque peers for the torque security service">
   
       <attainGoal name="copy-torque-security-om"/>
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org