Browse Source

- 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
master
Nico Seessle 23 years ago
parent
commit
776a7ac8fb
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/Tstamp.java

+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/Tstamp.java View File

@@ -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());
}


Loading…
Cancel
Save