From 776a7ac8fba4040a28f3665aa23696f9cd42b6e0 Mon Sep 17 00:00:00 2001 From: Nico Seessle Date: Mon, 28 Jan 2002 18:56:13 +0000 Subject: [PATCH] - Fix: It was not possible to use variant in the locale pattern - variant overwrote the country and you got the default Locale for the language. - Updated Copyright git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270996 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/Tstamp.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/Tstamp.java b/src/main/org/apache/tools/ant/taskdefs/Tstamp.java index 0f11918ca..512726f30 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Tstamp.java +++ b/src/main/org/apache/tools/ant/taskdefs/Tstamp.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 @@ -158,7 +158,7 @@ public class Tstamp extends Task { if (st.hasMoreElements()) { country = st.nextToken(); if (st.hasMoreElements()) { - country = st.nextToken(); + variant = st.nextToken(); if (st.hasMoreElements()) { throw new BuildException( "bad locale format", getLocation()); }