From 72f4f0b5a4d6332cf116c2ecd5045a5fb804ec79 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Wed, 27 Feb 2002 10:54:18 +0000 Subject: [PATCH] assert that gzip's new uptodate check also affects bzip2. 2002 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271575 13f79535-47bb-0310-9956-ffa450edef68 --- src/etc/testcases/taskdefs/bzip2.xml | 6 ++++++ src/main/org/apache/tools/ant/taskdefs/Pack.java | 2 +- .../org/apache/tools/ant/taskdefs/BZip2Test.java | 11 ++++++++++- .../org/apache/tools/ant/taskdefs/GzipTest.java | 2 +- 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/etc/testcases/taskdefs/bzip2.xml b/src/etc/testcases/taskdefs/bzip2.xml index 0293e0641..6c4dc9d0b 100644 --- a/src/etc/testcases/taskdefs/bzip2.xml +++ b/src/etc/testcases/taskdefs/bzip2.xml @@ -6,8 +6,14 @@ + + + + + + \ No newline at end of file diff --git a/src/main/org/apache/tools/ant/taskdefs/Pack.java b/src/main/org/apache/tools/ant/taskdefs/Pack.java index 5fb9972bc..289a21ef0 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Pack.java +++ b/src/main/org/apache/tools/ant/taskdefs/Pack.java @@ -1,7 +1,7 @@ /* * The Apache Software License, Version 1.1 * - * Copyright (c) 2001 The Apache Software Foundation. All rights + * Copyright (c) 2001-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/src/testcases/org/apache/tools/ant/taskdefs/BZip2Test.java b/src/testcases/org/apache/tools/ant/taskdefs/BZip2Test.java index 4197985c0..9815567a7 100644 --- a/src/testcases/org/apache/tools/ant/taskdefs/BZip2Test.java +++ b/src/testcases/org/apache/tools/ant/taskdefs/BZip2Test.java @@ -1,7 +1,7 @@ /* * The Apache Software License, Version 1.1 * - * Copyright (c) 2001 The Apache Software Foundation. All rights + * Copyright (c) 2001-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -83,4 +83,13 @@ public class BZip2Test extends BuildFileTest { assertTrue(fileUtils.contentEquals(project.resolveFile("expected/asf-logo-huge.tar.bz2"), project.resolveFile("asf-logo-huge.tar.bz2"))); } + + public void testDateCheck(){ + executeTarget("testDateCheck"); + String log = getLog(); + assertTrue( + "Expecting message ending with 'asf-logo.gif.bz2 is up to date.' but got '" + log + "'", + log.endsWith("asf-logo.gif.bz2 is up to date.")); + } + } diff --git a/src/testcases/org/apache/tools/ant/taskdefs/GzipTest.java b/src/testcases/org/apache/tools/ant/taskdefs/GzipTest.java index 58fa948b8..23b71be4e 100644 --- a/src/testcases/org/apache/tools/ant/taskdefs/GzipTest.java +++ b/src/testcases/org/apache/tools/ant/taskdefs/GzipTest.java @@ -1,7 +1,7 @@ /* * The Apache Software License, Version 1.1 * - * Copyright (c) 2000-2001 The Apache Software Foundation. All rights + * Copyright (c) 2000-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without