Browse Source

created a parent pom and also modified the poms of ant and ant-launcher to be able to build them using maven

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@466857 13f79535-47bb-0310-9956-ffa450edef68
master
Antoine Levy-Lambert 18 years ago
parent
commit
8b8fcc447d
3 changed files with 159 additions and 8 deletions
  1. +35
    -8
      src/etc/poms/ant-launcher/pom.xml
  2. +60
    -0
      src/etc/poms/ant/pom.xml
  3. +64
    -0
      src/etc/poms/pom.xml

+ 35
- 8
src/etc/poms/ant-launcher/pom.xml View File

@@ -1,8 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>ant</groupId>
<artifactId>ant-launcher</artifactId>
<version>1.7.0-SNAPSHOT</version>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<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>ant</groupId>
<artifactId>ant-parent</artifactId>
<relativePath>../pom.xml</relativePath>
<version>1.7.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>ant</groupId>
<artifactId>ant-launcher</artifactId>
<version>1.7.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.2</source>
<target>1.2</target>
<includes>
<include>org/apache/tools/ant/launch/*.java</include>
</includes>
</configuration>
</plugin>
</plugins>
<sourceDirectory>../../../../src/main</sourceDirectory>
<testSourceDirectory>../../../../src/testcases</testSourceDirectory>
<outputDirectory>../../../../target/ant-launcher/classes</outputDirectory>
<testOutputDirectory>../../../../target/ant-launcher/testcases</testOutputDirectory>
</build>
</project>

+ 60
- 0
src/etc/poms/ant/pom.xml View File

@@ -40,4 +40,64 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.2</source>
<target>1.2</target>
<excludes>
<exclude>org/apache/tools/ant/taskdefs/optional/**</exclude>
<exclude>org/apache/tools/ant/filters/util/JavaClassHelper*</exclude>
<exclude>org/apache/tools/ant/types/optional/**</exclude>
<exclude>org/apache/tools/ant/types/resolver/**</exclude>
<exclude>org/apache/tools/ant/util/depend/**</exclude>
<exclude>org/apache/tools/ant/util/optional/**</exclude>
<exclude>org/apache/tools/ant/util/Script*</exclude>
<exclude>org/apache/tools/ant/listener/Log4jListener*</exclude>
<exclude>org/apache/tools/ant/listener/CommonsLoggingListener*</exclude>
<exclude>org/apache/tools/ant/util/regexp/JakartaRegexp*</exclude>
<exclude>org/apache/tools/ant/util/regexp/JakartaOro*</exclude>
<exclude>org/apache/tools/ant/util/regexp/Jdk14Regexp*</exclude>
<exclude>org/apache/tools/ant/taskdefs/email/MimeMailer*</exclude>
<exclude>org/apache/tools/ant/launch/**</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
<sourceDirectory>../../../../src/main</sourceDirectory>
<testSourceDirectory>../../../../src/testcases</testSourceDirectory>
<resources>
<resource>
<directory>../../../../src/main</directory>
<filtering>true</filtering>
<includes>
<include>org/apache/tools/ant/taskdefs/default.properties</include>
<include>org/apache/tools/ant/types/default.properties</include>
<include>org/apache/tools/ant/taskdefs/default.properties</include>
<include>org/apache/tools/ant/types/conditions/antlib.xml</include>
<include>org/apache/tools/ant/defaultManifest.mf</include>
<include>org/apache/tools/ant/version.txt</include>
</includes>
</resource>
<resource>
<directory>../../../../src/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/antlib.xml</include>
</includes>
</resource>
<resource>
<directory>../../../../docs</directory>
<filtering>false</filtering>
<includes>
<include>images/ant_logo_large.gif</include>
</includes>
</resource>
</resources>
<outputDirectory>../../../../target/ant/classes</outputDirectory>
<testOutputDirectory>../../../../target/ant/testcases</testOutputDirectory>
</build>
</project>

+ 64
- 0
src/etc/poms/pom.xml View File

@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>ant</groupId>
<artifactId>ant-parent</artifactId>
<version>1.7.0-SNAPSHOT</version>
<packaging>pom</packaging>
<description>master POM</description>
<name>Apache Ant</name>
<url>http://ant.apache.org/</url>
<inceptionYear>2000</inceptionYear>
<distributionManagement>
<!-- Null out inherited apache distribution repo by default -->
<repository>
<id>dummy</id>
<name>Dummy to avoid accidental deploys</name>
<url></url>
</repository>
</distributionManagement>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/ant/core/trunk</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/jant/core/trunk</developerConnection>
<url>http://svn.apache.org/repos/asf/ant/core/trunk</url>
</scm>
<mailingLists>
<mailingList>
<name>Ant Developers List</name>
<subscribe>dev-subscribe@ant.apache.org</subscribe>
<unsubscribe>dev-unsubscribe@ant.apache.org</unsubscribe>
<post>dev@ant.apache.org</post>
<archive>http://mail-archives.apache.org/mod_mbox/ant-dev</archive>
</mailingList>
<mailingList>
<name>Ant Users List</name>
<subscribe>user-subscribe@ant.apache.org</subscribe>
<unsubscribe>user-unsubscribe@ant.apache.org</unsubscribe>
<post>user@ant.apache.org</post>
<archive>http://mail-archives.apache.org/mod_mbox/ant-user</archive>
</mailingList>
</mailingLists>
<issueManagement>
<system>bugzilla</system>
<url>http://issues.apache.org/bugzilla/</url>
</issueManagement>
<modules>
<module>ant-launcher</module>
<module>ant</module>
</modules>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.2</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<sourceDirectory>../../../src/main</sourceDirectory>
<testSourceDirectory>../../../src/testcases</testSourceDirectory>
<outputDirectory>../../../target/classes</outputDirectory>
<testOutputDirectory>../../../target/testcases</testOutputDirectory>
</build>
</project>

Loading…
Cancel
Save