diff --git a/.gitignore b/.gitignore index 203043c..0588d53 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -gant_src-1.9.1.tgz -/gant_src-1.9.8.tgz +gant_src-1.8.1.tgz diff --git a/0001-Fix-tests.patch b/0001-Fix-tests.patch new file mode 100644 index 0000000..f25d153 --- /dev/null +++ b/0001-Fix-tests.patch @@ -0,0 +1,48 @@ +From 256fc691f79ac3086d72b95504c39993fe10b87c Mon Sep 17 00:00:00 2001 +From: Lubomir Rintel +Date: Tue, 24 Nov 2009 00:46:35 +0100 +Subject: [PATCH] Fix tests + +Disable a test that needs internet connection, make other test not need +a home directory. +--- + .../codehaus/gant/tests/bugs/Assorted_Test.groovy | 2 ++ + .../codehaus/gant/tests/bugs/GANT_33_Test.groovy | 2 +- + 2 files changed, 3 insertions(+), 1 deletions(-) + +diff --git a/src/test/groovy/org/codehaus/gant/tests/bugs/Assorted_Test.groovy b/src/test/groovy/org/codehaus/gant/tests/bugs/Assorted_Test.groovy +index 0e9ab9b..f79b831 100644 +--- a/src/test/groovy/org/codehaus/gant/tests/bugs/Assorted_Test.groovy ++++ b/src/test/groovy/org/codehaus/gant/tests/bugs/Assorted_Test.groovy +@@ -74,6 +74,7 @@ def foo { badvariable } + ''' ) ) + } + ++/* + void test_GANT_34_originalIvycachePathProblemFixed ( ) { + script = ''' + includeTool << gant.tools.Ivy +@@ -90,6 +91,7 @@ target ( 'default' : '' ) { + // same on all platforms: it contains the Ivy jar version number and some timings. + assertEquals ( '' , error ) + } ++*/ + + void test_GANT_49_builderBug ( ) { + // +diff --git a/src/test/groovy/org/codehaus/gant/tests/bugs/GANT_33_Test.groovy b/src/test/groovy/org/codehaus/gant/tests/bugs/GANT_33_Test.groovy +index 9cc4e69..4a3d317 100644 +--- a/src/test/groovy/org/codehaus/gant/tests/bugs/GANT_33_Test.groovy ++++ b/src/test/groovy/org/codehaus/gant/tests/bugs/GANT_33_Test.groovy +@@ -77,7 +77,7 @@ private fileNameSuffix = '_GANT_33_Test' + buildScriptFile.delete ( ) + // Need to ensure that this cache directory actually is the real cache directory as listed in gant.Gant. + ( new AntBuilder ( ) ).delete { +- fileset ( dir : [ System.properties.'user.home' , '.gant' , 'cache' ].join ( System.properties.'file.separator' ) , includes : fileNamePrefix + '*' + fileNameSuffix + '*' ) ++ fileset ( dir : [ System.properties.'user.dir' , '.gant' , 'cache' ].join ( System.properties.'file.separator' ) , includes : fileNamePrefix + '*' + fileNameSuffix + '*' ) + } + } + ////////////////////////////////////////////////////////////////////////////////////////////// +-- +1.6.5.2 + diff --git a/0001-Make-it-build-against-our-jars.patch b/0001-Make-it-build-against-our-jars.patch new file mode 100644 index 0000000..1250d1e --- /dev/null +++ b/0001-Make-it-build-against-our-jars.patch @@ -0,0 +1,61 @@ +From 3e388bc9d05e19029b673e5b9f8a91034cc830c9 Mon Sep 17 00:00:00 2001 +From: Lubomir Rintel +Date: Mon, 23 Nov 2009 06:11:11 +0100 +Subject: [PATCH] Make it build against our jars + +--- + build.xml | 26 +++++++++++++++++++++++--- + 1 files changed, 23 insertions(+), 3 deletions(-) + +diff -up gant-1.8.1/build.xml.build gant-1.8.1/build.xml +--- gant-1.8.1/build.xml.build 2009-10-02 13:19:13.000000000 +0200 ++++ gant-1.8.1/build.xml 2009-11-23 23:41:25.896457653 +0100 +@@ -105,6 +105,27 @@ Author : Russel Winder + + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -190,9 +211,9 @@ Author : Russel Winder + + +- ++ + + + +@@ -275,7 +296,7 @@ Author : Russel Winder + + +- ++ + +