2002 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271575 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -6,8 +6,14 @@ | |||||
| <bzip2 src="expected/asf-logo-huge.tar" zipfile="asf-logo-huge.tar.bz2" /> | <bzip2 src="expected/asf-logo-huge.tar" zipfile="asf-logo-huge.tar.bz2" /> | ||||
| </target> | </target> | ||||
| <target name="testDateCheck"> | |||||
| <touch file="asf-logo.gif.bz2"/> | |||||
| <bzip2 src="../asf-logo.gif" zipfile="asf-logo.gif.bz2" /> | |||||
| </target> | |||||
| <target name="cleanup"> | <target name="cleanup"> | ||||
| <delete file="asf-logo-huge.tar.bz2" /> | <delete file="asf-logo-huge.tar.bz2" /> | ||||
| <delete file="asf-logo.gif.bz2" /> | |||||
| </target> | </target> | ||||
| </project> | </project> | ||||
| @@ -1,7 +1,7 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | * 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. | * reserved. | ||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
| @@ -1,7 +1,7 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | * 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. | * reserved. | ||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | * 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"), | assertTrue(fileUtils.contentEquals(project.resolveFile("expected/asf-logo-huge.tar.bz2"), | ||||
| project.resolveFile("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.")); | |||||
| } | |||||
| } | } | ||||
| @@ -1,7 +1,7 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | * 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. | * reserved. | ||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||