|
|
@@ -136,7 +136,7 @@ public class Tstamp extends Task { |
|
|
if (st.hasMoreElements()) { |
|
|
if (st.hasMoreElements()) { |
|
|
country = st.nextToken(); |
|
|
country = st.nextToken(); |
|
|
if (st.hasMoreElements()) { |
|
|
if (st.hasMoreElements()) { |
|
|
throw new BuildException( "bad locale format", location); |
|
|
|
|
|
|
|
|
throw new BuildException( "bad locale format", getLocation()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@@ -145,7 +145,7 @@ public class Tstamp extends Task { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
catch (NoSuchElementException e) { |
|
|
catch (NoSuchElementException e) { |
|
|
throw new BuildException( "bad locale format", e, location); |
|
|
|
|
|
|
|
|
throw new BuildException( "bad locale format", e, getLocation()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@@ -179,7 +179,7 @@ public class Tstamp extends Task { |
|
|
field = Calendar.YEAR; |
|
|
field = Calendar.YEAR; |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
throw new BuildException(unit + " is not a unit supported by the tstamp task"); |
|
|
|
|
|
|
|
|
throw new BuildException(unit + " is not a unit supported by the tstamp task", getLocation()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|