diff options
author | Uwe Schindler <uschindler@apache.org> | 2015-11-08 11:57:58 +0000 |
---|---|---|
committer | Uwe Schindler <uschindler@apache.org> | 2015-11-08 11:57:58 +0000 |
commit | 3dd2a0548e86419a59becf5b8e591d4d3a58fe6f (patch) | |
tree | 54b4fb4bdacd90d10861cb74af64a9cc8bd913ca /src/excelant | |
parent | 7fb84618f6c03986c14c8bee4af45e774bf5552f (diff) | |
download | poi-3dd2a0548e86419a59becf5b8e591d4d3a58fe6f.tar.gz poi-3dd2a0548e86419a59becf5b8e591d4d3a58fe6f.zip |
Make forbiddenapis also check excelant. Use a separate "classpath" for running forbiddenapis; don't misuse javadoc.classpath for that.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1713222 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/excelant')
-rw-r--r-- | src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTask.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTask.java b/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTask.java index 4224969887..ad0cf6b845 100644 --- a/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTask.java +++ b/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTask.java @@ -23,6 +23,7 @@ import java.text.SimpleDateFormat; import java.util.Date; import java.util.Iterator; import java.util.LinkedList; +import java.util.Locale; import org.apache.poi.ss.excelant.util.ExcelAntWorkbookUtil; import org.apache.poi.ss.excelant.util.ExcelAntWorkbookUtilFactory; @@ -88,7 +89,7 @@ public class ExcelAntTask extends Task { versionBffr.append( "ExcelAnt version " ) ; versionBffr.append( VERSION ) ; versionBffr.append( " Copyright 2011" ) ; - SimpleDateFormat sdf = new SimpleDateFormat( "yyyy" ) ; + SimpleDateFormat sdf = new SimpleDateFormat( "yyyy", Locale.ROOT ) ; double currYear = Double.parseDouble( sdf.format( new Date() ) ); if( currYear > 2011 ) { versionBffr.append( "-" ) ; |