From cb33b4f823ea229a33e8b8683db10915c170cfed Mon Sep 17 00:00:00 2001 From: "Jesse N. Glick" Date: Tue, 6 Jul 2010 17:26:04 +0000 Subject: [PATCH] Hackish way of making NetRexxC.jar available to the Maven build without using a public repo. Easy enough to run fetch.xml during Maven build, but complicated by fact that system-scope dependencies are checked for existence before plugins get a chance to run. Also complicated a bit by the fact that adding a plugin dependency to maven-antrun-plugin (on commons-net:commons-net:1.4.0) does not seem to suffice to let Ant load the task (which does not support nested ). git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@960950 13f79535-47bb-0310-9956-ffa450edef68 --- fetch.xml | 16 ++++++++++++++-- src/etc/poms/ant-netrexx/pom.xml | 29 ++++++++++++++++++++++++++++- 2 files changed, 42 insertions(+), 3 deletions(-) diff --git a/fetch.xml b/fetch.xml index c5e0c7795..d0628d283 100644 --- a/fetch.xml +++ b/fetch.xml @@ -224,6 +224,7 @@ Set -Ddest=LOCATION on the command line depends="init"> + - + description="FTPs NetRexx compiler from IBM site" if="have.commons.net"> @@ -324,6 +325,17 @@ Set -Ddest=LOCATION on the command line + + + + + + + + + + diff --git a/src/etc/poms/ant-netrexx/pom.xml b/src/etc/poms/ant-netrexx/pom.xml index 90e38f45a..d86b7aabd 100644 --- a/src/etc/poms/ant-netrexx/pom.xml +++ b/src/etc/poms/ant-netrexx/pom.xml @@ -42,12 +42,15 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma 1.8.2-SNAPSHOT compile + @@ -60,8 +63,32 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma org/apache/tools/ant/taskdefs/optional/NetRexxC* + + + ${basedir}/../../../../lib/optional + + + org.apache.maven.plugins + maven-antrun-plugin + 1.4 + + + validate + + + + + + + + + run + + + + ../../../../src/main ../../../../src/testcases