alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Ant example source code file (pom.xml)

This example Ant source code file (pom.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Ant tags/keywords

ant, apache, asf, asf, development, license, license, of, pom, pom, see, version, you, you

The pom.xml source code

<?xml version="1.0" encoding="UTF-8"?>
<!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->
<!--
  This POM has been created manually by the Ant Development Team.
  Please contact us if you are not satisfied with the data contained in this POM.
  URL : http://ant.apache.org
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <parent>
    <groupId>org.apache.ant
    <artifactId>ant-parent
    <relativePath>../pom.xml
    <version>1.7.0-SNAPSHOT
  </parent>
  <modelVersion>4.0.0
  <groupId>org.apache.ant
  <artifactId>ant-junit
  <version>1.7.0-SNAPSHOT
  <description>contains the junit and junirreport tasks
  <dependencies>
    <dependency>
      <groupId>org.apache.ant
      <artifactId>ant
      <version>1.7.0-SNAPSHOT
      <scope>compile
    </dependency>
    <dependency>
      <groupId>junit
      <artifactId>junit
      <version>3.8.2
      <scope>compile
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-antrun-plugin
        <executions>
          <execution>
            <id>create-timestamp-file
            <phase>generate-resources
            <goals>
              <goal>run
            </goals>
            <configuration>
              <tasks>
                <mkdir dir="${project.build.outputDirectory}"/>
                <copy todir="${project.build.outputDirectory}/org/apache/tools/ant/taskdefs/optional/junit/xsl">
                  <fileset dir="${project.build.sourceDirectory}/../etc">
                    <include name="junit-frames.xsl"/>
                    <include name="junit-noframes.xsl"/>
                  </fileset>
                </copy>              
              </tasks>
            </configuration>
          </execution>

        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins
        <artifactId>maven-compiler-plugin
        <configuration>
          <source>1.2
          <target>1.2
          <includes>
            <include>org/apache/tools/ant//taskdefs/optional/junit/*
          </includes>
        </configuration>
      </plugin>
    </plugins>
    <sourceDirectory>../../../../src/main
    <testSourceDirectory>../../../../src/testcases
    <outputDirectory>../../../../target/${project.artifactId}/classes
    <testOutputDirectory>../../../../target/${project.artifactId}/testcases
    <directory>../../../../target/${project.artifactId}
  </build>
</project>

Other Ant examples (source code examples)

Here is a short list of links related to this Ant pom.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.