Changes between Initial Version and Version 1 of PLATFORM_DEPLOYMENT_BUILD_ANT


Ignore:
Timestamp:
10/14/08 13:34:17 (17 years ago)
Author:
pavlina
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PLATFORM_DEPLOYMENT_BUILD_ANT

    v1 v1  
     1= Platform Deployment Build Ant = 
     2To integrate Ant with Maven you have to use maven-antrun-plugin, so you just have to add the following section in your pom.xml file of the parent project: 
     3 
     4<build> 
     5   <plugins> 
     6      <plugin> 
     7         <groupId>org.apache.maven.plugins</groupId> 
     8  
     9         <artifactId>maven-antrun-plugin</artifactId> 
     10  
     11         <executions> 
     12            <execution> 
     13               <phase>compile</phase> 
     14  
     15               <configuration> 
     16                <!-- Put the Ant Tasks that you wish to call here --> 
     17                  <tasks> 
     18                     <echo>Copy Resources </echo> 
     19  
     20                     <copy file="${basedir}/source" tofile="${basedir}/target/" overwrite="true" /> 
     21                  </tasks> 
     22               </configuration> 
     23  
     24               <goals> 
     25                  <goal>run</goal> 
     26               </goals> 
     27            </execution> 
     28         </executions> 
     29      </plugin> 
     30   </plugins> 
     31</build> 
     32 
     33As you can see in tasks section you can add any task you want. This is the same as target section in build.xml ant file.[[BR]] 
     34Good tutorial to get into Apache Ant: http://supportweb.cs.bham.ac.uk/docs/tutorials/docsystem/build/tutorials/ant/ant.html