summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGintas Grigelionis <gintas@apache.org>2017-12-09 23:57:08 +0100
committerGintas Grigelionis <gintas@apache.org>2017-12-10 07:15:45 +0100
commit6656db28bb79912ec1c744f34affbda53f86e6fd (patch)
tree7bd582d9746de015c82faf76091ec019d97d9bd8 /src
parentcf6965b58b83f647640c0d9dc4f18683078de6f8 (diff)
downloadant-6656db28bb79912ec1c744f34affbda53f86e6fd.tar.gz
Let’s use doclint
Diffstat (limited to 'src')
-rw-r--r--src/main/org/apache/tools/ant/AntClassLoader.java10
-rw-r--r--src/main/org/apache/tools/ant/ArgumentProcessor.java16
-rw-r--r--src/main/org/apache/tools/ant/BuildException.java2
-rw-r--r--src/main/org/apache/tools/ant/ComponentHelper.java4
-rw-r--r--src/main/org/apache/tools/ant/Diagnostics.java10
-rw-r--r--src/main/org/apache/tools/ant/DirectoryScanner.java35
-rw-r--r--src/main/org/apache/tools/ant/IntrospectionHelper.java4
-rw-r--r--src/main/org/apache/tools/ant/MagicNames.java4
-rw-r--r--src/main/org/apache/tools/ant/Main.java3
-rw-r--r--src/main/org/apache/tools/ant/Project.java33
-rw-r--r--src/main/org/apache/tools/ant/ProjectComponent.java2
-rw-r--r--src/main/org/apache/tools/ant/ProjectHelper.java14
-rw-r--r--src/main/org/apache/tools/ant/ProjectHelperRepository.java4
-rw-r--r--src/main/org/apache/tools/ant/PropertyHelper.java13
-rw-r--r--src/main/org/apache/tools/ant/RuntimeConfigurable.java23
-rw-r--r--src/main/org/apache/tools/ant/Target.java2
-rw-r--r--src/main/org/apache/tools/ant/TaskAdapter.java2
-rw-r--r--src/main/org/apache/tools/ant/TaskConfigurationChecker.java2
-rw-r--r--src/main/org/apache/tools/ant/dispatch/DispatchTask.java3
-rw-r--r--src/main/org/apache/tools/ant/filters/BaseParamFilterReader.java2
-rw-r--r--src/main/org/apache/tools/ant/filters/ClassConstants.java5
-rw-r--r--src/main/org/apache/tools/ant/filters/ExpandProperties.java3
-rw-r--r--src/main/org/apache/tools/ant/filters/FixCrLfFilter.java25
-rw-r--r--src/main/org/apache/tools/ant/filters/LineContainsRegExp.java4
-rw-r--r--src/main/org/apache/tools/ant/filters/ReplaceTokens.java1
-rw-r--r--src/main/org/apache/tools/ant/filters/SortFilter.java14
-rw-r--r--src/main/org/apache/tools/ant/filters/util/ChainReaderHelper.java16
-rw-r--r--src/main/org/apache/tools/ant/helper/AntXMLContext.java13
-rw-r--r--src/main/org/apache/tools/ant/helper/ProjectHelper2.java16
-rw-r--r--src/main/org/apache/tools/ant/helper/ProjectHelperImpl.java4
-rw-r--r--src/main/org/apache/tools/ant/helper/SingleCheckExecutor.java2
-rw-r--r--src/main/org/apache/tools/ant/launch/Launcher.java5
-rw-r--r--src/main/org/apache/tools/ant/launch/Locator.java4
-rw-r--r--src/main/org/apache/tools/ant/listener/AnsiColorLogger.java2
-rw-r--r--src/main/org/apache/tools/ant/listener/BigProjectLogger.java8
-rw-r--r--src/main/org/apache/tools/ant/listener/CommonsLoggingListener.java10
-rw-r--r--src/main/org/apache/tools/ant/listener/Log4jListener.java14
-rw-r--r--src/main/org/apache/tools/ant/listener/MailLogger.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/AbstractCvsTask.java19
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/AbstractJarSignerTask.java4
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Ant.java7
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/AttributeNamespaceDef.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Available.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/BuildNumber.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Concat.java3
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Copy.java6
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Delete.java26
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/DependSet.java1
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Echo.java1
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/EchoXML.java3
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/ExecTask.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Execute.java4
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Expand.java9
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/FixCRLF.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Get.java9
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/ImportTask.java7
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/JDBCTask.java4
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Jar.java5
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Javac.java4
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Javadoc.java12
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/LoadProperties.java1
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/LogOutputStream.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/MakeUrl.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Manifest.java4
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/ManifestTask.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/MatchingTask.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Move.java9
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Pack.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Property.java6
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/PumpStreamHandler.java1
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Recorder.java3
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/RecorderEntry.java27
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Redirector.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Replace.java12
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Rmic.java10
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/SQLExec.java13
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Sequential.java3
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/SignJar.java10
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/SubAnt.java18
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Sync.java8
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/TempFile.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Tstamp.java8
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Untar.java4
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/WaitFor.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/XSLTLiaison.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/XSLTLiaison2.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java41
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/XmlProperty.java8
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/Zip.java22
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/compilers/JavacExternal.java6
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/condition/Http.java4
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/condition/IsLastModified.java4
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/condition/IsReachable.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/condition/Os.java8
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/condition/ResourceExists.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogTask.java49
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/cvslib/CvsTagDiff.java16
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/email/EmailAddress.java6
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/email/EmailTask.java5
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/email/Mailer.java11
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/launcher/CommandLauncher.java12
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/ANTLR.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/EchoProperties.java129
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/Javah.java5
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/Native2Ascii.java10
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/NetRexxC.java8
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java31
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/ReplaceRegExp.java24
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/Rpm.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/SchemaValidate.java4
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/Script.java4
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/TraXLiaison.java1
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/XMLValidateTask.java6
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/ccm/CCMCreateTask.java16
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/ccm/CCMReconfigure.java4
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCCheckin.java1
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCCheckout.java1
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCLock.java1
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkattr.java1
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkbl.java1
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkdir.java1
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkelem.java1
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMklabel.java1
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMklbtype.java1
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCRmtype.java3
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUnCheckout.java1
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUnlock.java1
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUpdate.java1
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/depend/Depend.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/depend/DirectoryIterator.java4
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/depend/constantpool/InterfaceMethodRefCPInfo.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/depend/constantpool/MethodHandleCPInfo.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/ejb/EjbJar.java8
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java6
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/ejb/IPlanetDeploymentTool.java12
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/ejb/IPlanetEjbc.java37
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/ejb/JbossDeploymentTool.java1
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/ejb/OrionDeploymentTool.java7
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/ejb/WebsphereDeploymentTool.java8
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/extension/Compatability.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/extension/Compatibility.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/extension/ExtensionUtil.java6
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/extension/JarLibAvailableTask.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/extension/JarLibDisplayTask.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/extension/JarLibManifestTask.java4
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/extension/JarLibResolveTask.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/extension/LibFileSet.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/extension/LibraryDisplayer.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/extension/Specification.java6
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/i18n/Translate.java6
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/image/Image.java5
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/j2ee/AbstractHotDeploymentTool.java10
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/j2ee/JonasHotDeploymentTool.java14
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/j2ee/WebLogicHotDeploymentTool.java27
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/javacc/JJTree.java8
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java3
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/jlink/JlinkTask.java4
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java18
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/jsp/compilers/DefaultJspCompilerAdapter.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/jsp/compilers/JspCompilerAdapter.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/junit/BaseTest.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/junit/BatchTest.java8
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/junit/BriefJUnitResultFormatter.java4
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/junit/Enumerations.java14
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/junit/FailureRecorder.java8
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.java54
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/junit/IgnoredTestListener.java6
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java74
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.java6
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java79
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/junit/PlainJUnitResultFormatter.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.java10
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLJUnitResultFormatter.java4
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.java17
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/native2ascii/DefaultNative2Ascii.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java21
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTask.java1
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTaskMirrorImpl.java10
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/pvcs/Pvcs.java4
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/script/ScriptDef.java6
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/sos/SOS.java8
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/sos/SOSCheckin.java7
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/sos/SOSCheckout.java7
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/sos/SOSGet.java7
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/sos/SOSLabel.java8
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/sos/package.html8
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/ssh/AbstractSshMessage.java5
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHBase.java6
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java12
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHSession.java5
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/ssh/Scp.java27
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java5
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessageBySftp.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/testing/Funtest.java19
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/unix/AbstractAccessTask.java4
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/unix/Chgrp.java4
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/unix/Chown.java4
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/unix/Symlink.java36
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java11
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSADD.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCHECKOUT.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCP.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCREATE.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSGET.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSHISTORY.java2
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSLABEL.java2
-rw-r--r--src/main/org/apache/tools/ant/types/AbstractFileSet.java7
-rw-r--r--src/main/org/apache/tools/ant/types/Assertions.java6
-rw-r--r--src/main/org/apache/tools/ant/types/Commandline.java38
-rw-r--r--src/main/org/apache/tools/ant/types/CommandlineJava.java2
-rw-r--r--src/main/org/apache/tools/ant/types/DataType.java4
-rw-r--r--src/main/org/apache/tools/ant/types/EnumeratedAttribute.java2
-rw-r--r--src/main/org/apache/tools/ant/types/FileList.java2
-rw-r--r--src/main/org/apache/tools/ant/types/Path.java32
-rw-r--r--src/main/org/apache/tools/ant/types/Quantifier.java24
-rw-r--r--src/main/org/apache/tools/ant/types/RedirectorElement.java1
-rw-r--r--src/main/org/apache/tools/ant/types/Resource.java11
-rw-r--r--src/main/org/apache/tools/ant/types/ResourceLocation.java5
-rw-r--r--src/main/org/apache/tools/ant/types/Substitution.java1
-rw-r--r--src/main/org/apache/tools/ant/types/XMLCatalog.java32
-rw-r--r--src/main/org/apache/tools/ant/types/mappers/CutDirsMapper.java1
-rw-r--r--src/main/org/apache/tools/ant/types/optional/AbstractScriptComponent.java4
-rw-r--r--src/main/org/apache/tools/ant/types/optional/ScriptFilter.java6
-rw-r--r--src/main/org/apache/tools/ant/types/optional/ScriptMapper.java2
-rw-r--r--src/main/org/apache/tools/ant/types/optional/ScriptSelector.java6
-rw-r--r--src/main/org/apache/tools/ant/types/optional/depend/DependScanner.java18
-rw-r--r--src/main/org/apache/tools/ant/types/optional/image/DrawOperation.java2
-rw-r--r--src/main/org/apache/tools/ant/types/optional/image/Ellipse.java2
-rw-r--r--src/main/org/apache/tools/ant/types/optional/image/Rotate.java6
-rw-r--r--src/main/org/apache/tools/ant/types/resolver/ApacheCatalog.java4
-rw-r--r--src/main/org/apache/tools/ant/types/resolver/ApacheCatalogResolver.java4
-rw-r--r--src/main/org/apache/tools/ant/types/resources/AbstractClasspathResource.java13
-rw-r--r--src/main/org/apache/tools/ant/types/resources/ArchiveResource.java2
-rw-r--r--src/main/org/apache/tools/ant/types/resources/Archives.java17
-rw-r--r--src/main/org/apache/tools/ant/types/resources/BaseResourceCollectionContainer.java1
-rw-r--r--src/main/org/apache/tools/ant/types/resources/ContentTransformingResource.java6
-rw-r--r--src/main/org/apache/tools/ant/types/resources/LazyResourceCollectionWrapper.java2
-rw-r--r--src/main/org/apache/tools/ant/types/resources/LogOutputResource.java2
-rw-r--r--src/main/org/apache/tools/ant/types/resources/MappedResourceCollection.java1
-rw-r--r--src/main/org/apache/tools/ant/types/resources/ResourceDecorator.java1
-rw-r--r--src/main/org/apache/tools/ant/types/resources/ResourceList.java19
-rw-r--r--src/main/org/apache/tools/ant/types/resources/Resources.java1
-rw-r--r--src/main/org/apache/tools/ant/types/resources/SizeLimitCollection.java6
-rw-r--r--src/main/org/apache/tools/ant/types/resources/URLResource.java2
-rw-r--r--src/main/org/apache/tools/ant/types/resources/Union.java5
-rw-r--r--src/main/org/apache/tools/ant/types/resources/ZipResource.java1
-rw-r--r--src/main/org/apache/tools/ant/types/resources/selectors/Name.java2
-rw-r--r--src/main/org/apache/tools/ant/types/resources/selectors/ResourceSelectorContainer.java2
-rw-r--r--src/main/org/apache/tools/ant/types/selectors/AbstractSelectorContainer.java3
-rw-r--r--src/main/org/apache/tools/ant/types/selectors/BaseSelector.java1
-rw-r--r--src/main/org/apache/tools/ant/types/selectors/BaseSelectorContainer.java3
-rw-r--r--src/main/org/apache/tools/ant/types/selectors/DateSelector.java1
-rw-r--r--src/main/org/apache/tools/ant/types/selectors/DifferentSelector.java5
-rw-r--r--src/main/org/apache/tools/ant/types/selectors/FileSelector.java2
-rw-r--r--src/main/org/apache/tools/ant/types/selectors/OwnedBySelector.java2
-rw-r--r--src/main/org/apache/tools/ant/types/selectors/PresentSelector.java2
-rw-r--r--src/main/org/apache/tools/ant/types/selectors/SizeSelector.java4
-rw-r--r--src/main/org/apache/tools/ant/types/selectors/TokenizedPath.java8
-rw-r--r--src/main/org/apache/tools/ant/types/selectors/TokenizedPattern.java17
-rw-r--r--src/main/org/apache/tools/ant/types/selectors/modifiedselector/ChecksumAlgorithm.java17
-rw-r--r--src/main/org/apache/tools/ant/types/selectors/modifiedselector/DigestAlgorithm.java25
-rw-r--r--src/main/org/apache/tools/ant/types/selectors/modifiedselector/HashvalueAlgorithm.java2
-rw-r--r--src/main/org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.java43
-rw-r--r--src/main/org/apache/tools/ant/types/selectors/modifiedselector/PropertiesfileCache.java13
-rw-r--r--src/main/org/apache/tools/ant/util/ClasspathUtils.java23
-rw-r--r--src/main/org/apache/tools/ant/util/ConcatResourceInputStream.java2
-rw-r--r--src/main/org/apache/tools/ant/util/DOMElementWriter.java5
-rw-r--r--src/main/org/apache/tools/ant/util/DateUtils.java23
-rw-r--r--src/main/org/apache/tools/ant/util/FileUtils.java31
-rw-r--r--src/main/org/apache/tools/ant/util/GlobPatternMapper.java1
-rw-r--r--src/main/org/apache/tools/ant/util/IdentityStack.java1
-rw-r--r--src/main/org/apache/tools/ant/util/JavaEnvUtils.java11
-rw-r--r--src/main/org/apache/tools/ant/util/KeepAliveInputStream.java1
-rw-r--r--src/main/org/apache/tools/ant/util/KeepAliveOutputStream.java3
-rw-r--r--src/main/org/apache/tools/ant/util/LayoutPreservingProperties.java13
-rw-r--r--src/main/org/apache/tools/ant/util/MergingMapper.java1
-rw-r--r--src/main/org/apache/tools/ant/util/PermissionUtils.java15
-rw-r--r--src/main/org/apache/tools/ant/util/ProcessUtil.java2
-rw-r--r--src/main/org/apache/tools/ant/util/ReflectUtil.java10
-rw-r--r--src/main/org/apache/tools/ant/util/ReflectWrapper.java4
-rw-r--r--src/main/org/apache/tools/ant/util/ScriptRunnerBase.java4
-rw-r--r--src/main/org/apache/tools/ant/util/ScriptRunnerCreator.java2
-rw-r--r--src/main/org/apache/tools/ant/util/ScriptRunnerHelper.java6
-rw-r--r--src/main/org/apache/tools/ant/util/SplitClassLoader.java5
-rw-r--r--src/main/org/apache/tools/ant/util/StringUtils.java6
-rw-r--r--src/main/org/apache/tools/ant/util/SymbolicLinkUtils.java6
-rw-r--r--src/main/org/apache/tools/ant/util/TimeoutObserver.java2
-rw-r--r--src/main/org/apache/tools/ant/util/UUEncoder.java5
-rw-r--r--src/main/org/apache/tools/ant/util/UnicodeUtil.java2
-rw-r--r--src/main/org/apache/tools/ant/util/WeakishReference.java2
-rw-r--r--src/main/org/apache/tools/ant/util/WorkerAnt.java4
-rw-r--r--src/main/org/apache/tools/ant/util/depend/AbstractAnalyzer.java2
-rw-r--r--src/main/org/apache/tools/ant/util/regexp/JakartaOroRegexp.java2
-rw-r--r--src/main/org/apache/tools/ant/util/regexp/JakartaRegexpRegexp.java2
-rw-r--r--src/main/org/apache/tools/ant/util/regexp/Jdk14RegexpRegexp.java2
-rw-r--r--src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java2
-rw-r--r--src/main/org/apache/tools/ant/util/regexp/RegexpUtil.java8
-rw-r--r--src/main/org/apache/tools/bzip2/BlockSort.java3
-rw-r--r--src/main/org/apache/tools/bzip2/CBZip2InputStream.java8
-rw-r--r--src/main/org/apache/tools/bzip2/CBZip2OutputStream.java46
-rw-r--r--src/main/org/apache/tools/mail/MailMessage.java16
-rw-r--r--src/main/org/apache/tools/mail/SmtpResponseReader.java4
-rw-r--r--src/main/org/apache/tools/tar/TarEntry.java36
-rw-r--r--src/main/org/apache/tools/tar/TarInputStream.java7
-rw-r--r--src/main/org/apache/tools/tar/TarOutputStream.java14
-rw-r--r--src/main/org/apache/tools/tar/TarUtils.java2
-rw-r--r--src/main/org/apache/tools/zip/AbstractUnicodeExtraField.java2
-rw-r--r--src/main/org/apache/tools/zip/AsiExtraField.java4
-rw-r--r--src/main/org/apache/tools/zip/ExtraFieldUtils.java2
-rw-r--r--src/main/org/apache/tools/zip/FallbackZipEncoding.java11
-rw-r--r--src/main/org/apache/tools/zip/GeneralPurposeBit.java22
-rw-r--r--src/main/org/apache/tools/zip/NioZipEncoding.java9
-rw-r--r--src/main/org/apache/tools/zip/Simple8BitZipEncoding.java9
-rw-r--r--src/main/org/apache/tools/zip/UnicodeCommentExtraField.java5
-rw-r--r--src/main/org/apache/tools/zip/UnicodePathExtraField.java7
-rw-r--r--src/main/org/apache/tools/zip/UnparseableExtraFieldData.java4
-rw-r--r--src/main/org/apache/tools/zip/UnsupportedZipFeatureException.java4
-rw-r--r--src/main/org/apache/tools/zip/Zip64ExtendedInformationExtraField.java30
-rw-r--r--src/main/org/apache/tools/zip/ZipEncoding.java4
-rw-r--r--src/main/org/apache/tools/zip/ZipEntry.java48
-rw-r--r--src/main/org/apache/tools/zip/ZipFile.java9
-rw-r--r--src/main/org/apache/tools/zip/ZipOutputStream.java82
-rw-r--r--src/main/org/apache/tools/zip/ZipUtil.java18
-rw-r--r--src/tests/antunit/core/uuencode/src/task/BaseTask.java1
-rw-r--r--src/tests/junit/org/apache/tools/ant/BuildFileRule.java7
-rw-r--r--src/tests/junit/org/apache/tools/ant/BuildFileTest.java59
-rw-r--r--src/tests/junit/org/apache/tools/ant/ImmutableTest.java1
-rw-r--r--src/tests/junit/org/apache/tools/ant/PropertyExpansionTest.java3
-rw-r--r--src/tests/junit/org/apache/tools/ant/taskdefs/AntTest.java1
-rw-r--r--src/tests/junit/org/apache/tools/ant/taskdefs/DeleteTest.java2
-rw-r--r--src/tests/junit/org/apache/tools/ant/taskdefs/MacroDefTest.java7
-rw-r--r--src/tests/junit/org/apache/tools/ant/taskdefs/ManifestClassPathTest.java1
-rw-r--r--src/tests/junit/org/apache/tools/ant/taskdefs/ParallelTest.java4
-rw-r--r--src/tests/junit/org/apache/tools/ant/taskdefs/RenameTest.java1
-rw-r--r--src/tests/junit/org/apache/tools/ant/taskdefs/RmicAdvancedTest.java5
-rw-r--r--src/tests/junit/org/apache/tools/ant/taskdefs/SQLExecTest.java11
-rw-r--r--src/tests/junit/org/apache/tools/ant/taskdefs/condition/TypeFoundTest.java1
-rw-r--r--src/tests/junit/org/apache/tools/ant/taskdefs/optional/AbstractXSLTLiaisonTest.java14
-rw-r--r--src/tests/junit/org/apache/tools/ant/taskdefs/optional/TraXLiaisonTest.java4
-rw-r--r--src/tests/junit/org/apache/tools/ant/taskdefs/optional/XmlValidateTest.java1
-rw-r--r--src/tests/junit/org/apache/tools/ant/taskdefs/optional/XsltTest.java1
-rw-r--r--src/tests/junit/org/apache/tools/ant/types/AbstractFileSetTest.java1
-rw-r--r--src/tests/junit/org/apache/tools/ant/types/CommandlineJavaTest.java1
-rw-r--r--src/tests/junit/org/apache/tools/ant/types/CommandlineTest.java3
-rw-r--r--src/tests/junit/org/apache/tools/ant/types/DirSetTest.java4
-rw-r--r--src/tests/junit/org/apache/tools/ant/types/EnumeratedAttributeTest.java1
-rw-r--r--src/tests/junit/org/apache/tools/ant/types/FileSetTest.java6
-rw-r--r--src/tests/junit/org/apache/tools/ant/types/FlexIntegerTest.java2
-rw-r--r--src/tests/junit/org/apache/tools/ant/types/PatternSetTest.java3
-rw-r--r--src/tests/junit/org/apache/tools/ant/types/PermissionsTest.java3
-rw-r--r--src/tests/junit/org/apache/tools/ant/types/TarFileSetTest.java7
-rw-r--r--src/tests/junit/org/apache/tools/ant/types/XMLCatalogTest.java5
-rw-r--r--src/tests/junit/org/apache/tools/ant/types/ZipFileSetTest.java5
-rw-r--r--src/tests/junit/org/apache/tools/ant/types/mappers/GlobMapperTest.java2
-rw-r--r--src/tests/junit/org/apache/tools/ant/types/resources/MultiRootFileSetTest.java1
-rw-r--r--src/tests/junit/org/apache/tools/ant/types/selectors/BaseSelectorRule.java8
-rw-r--r--src/tests/junit/org/apache/tools/ant/types/selectors/BaseSelectorTest.java29
-rw-r--r--src/tests/junit/org/apache/tools/ant/types/selectors/ContainsSelectorTest.java4
-rw-r--r--src/tests/junit/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java57
-rw-r--r--src/tests/junit/org/apache/tools/ant/types/selectors/SizeSelectorTest.java1
-rw-r--r--src/tests/junit/org/apache/tools/ant/util/DeweyDecimalTest.java3
-rw-r--r--src/tests/junit/org/apache/tools/ant/util/LayoutPreservingPropertiesTest.java2
-rw-r--r--src/tests/junit/org/apache/tools/ant/util/LineOrientedOutputStreamTest.java2
-rw-r--r--src/tests/junit/org/apache/tools/ant/util/regexp/JakartaOroMatcherTest.java4
-rw-r--r--src/tests/junit/org/apache/tools/ant/util/regexp/JakartaOroRegexpTest.java4
-rw-r--r--src/tests/junit/org/apache/tools/ant/util/regexp/JakartaRegexpMatcherTest.java15
-rw-r--r--src/tests/junit/org/apache/tools/ant/util/regexp/JakartaRegexpRegexpTest.java14
-rw-r--r--src/tests/junit/org/apache/tools/ant/util/regexp/Jdk14RegexpMatcherTest.java20
-rw-r--r--src/tests/junit/org/apache/tools/ant/util/regexp/Jdk14RegexpRegexpTest.java20
-rw-r--r--src/tests/junit/org/apache/tools/ant/util/regexp/RegexpMatcherTest.java32
-rw-r--r--src/tests/junit/org/apache/tools/ant/util/regexp/RegexpTest.java12
-rw-r--r--src/tests/junit/org/apache/tools/mail/MailMessageTest.java6
-rw-r--r--src/tests/junit/org/apache/tools/zip/ExtraFieldUtilsTest.java3
-rw-r--r--src/tests/junit/org/apache/tools/zip/ZipEntryTest.java3
-rw-r--r--src/tests/junit/org/apache/tools/zip/ZipShortTest.java3
376 files changed, 1990 insertions, 1322 deletions
diff --git a/src/main/org/apache/tools/ant/AntClassLoader.java b/src/main/org/apache/tools/ant/AntClassLoader.java
index 5f313e203..fcf923f6d 100644
--- a/src/main/org/apache/tools/ant/AntClassLoader.java
+++ b/src/main/org/apache/tools/ant/AntClassLoader.java
@@ -927,8 +927,8 @@ public class AntClassLoader extends ClassLoader implements SubBuildListener, Clo
*
* @param name name of the resource
* @return possible URLs as enumeration
- * @throws IOException
- * @see {@link #findResources(String, boolean)}
+ * @throws IOException if something goes wrong
+ * @see #findResources(String, boolean)
* @since Ant 1.8.0
*/
public Enumeration<URL> getNamedResources(final String name)
@@ -1555,6 +1555,12 @@ public class AntClassLoader extends ClassLoader implements SubBuildListener, Clo
/**
* Factory method
+ *
+ * @param parent ClassLoader
+ * @param project Project
+ * @param path Path
+ * @param parentFirst boolean
+ * @return AntClassLoader
*/
public static AntClassLoader newAntClassLoader(final ClassLoader parent,
final Project project,
diff --git a/src/main/org/apache/tools/ant/ArgumentProcessor.java b/src/main/org/apache/tools/ant/ArgumentProcessor.java
index 07812f2fe..7a547fd2c 100644
--- a/src/main/org/apache/tools/ant/ArgumentProcessor.java
+++ b/src/main/org/apache/tools/ant/ArgumentProcessor.java
@@ -37,6 +37,11 @@ public interface ArgumentProcessor {
* <p>
* If the argument is not supported, returns -1. Else, the position of the
* first argument not supported.
+ * </p>
+ *
+ * @param args String[]
+ * @param pos int
+ * @return int
*/
int readArguments(String[] args, int pos);
@@ -45,12 +50,18 @@ public interface ArgumentProcessor {
* this method is called after all arguments were parsed. Returns
* <code>true</code> if Ant should stop there, ie the build file not parsed
* and the project should not be executed.
+ *
+ * @param args List&lt;String&gt;
+ * @return boolean
*/
boolean handleArg(List<String> args);
/**
* If some arguments matched with {@link #readArguments(String[], int)},
* this method is called just before the project being configured
+ *
+ * @param project Project
+ * @param args List&lt;String&gt;
*/
void prepareConfigure(Project project, List<String> args);
@@ -59,12 +70,17 @@ public interface ArgumentProcessor {
* after the project being configured. Returns <code>true</code> if Ant
* should stop there, ie the build file not parsed and the project should
* not be executed.
+ *
+ * @param project Project
+ * @param arg List&lt;String&gt;
+ * @return boolean
*/
boolean handleArg(Project project, List<String> arg);
/**
* Print the usage of the supported arguments
*
+ * @param writer PrintStream
* @see org.apache.tools.ant.Main#printUsage()
*/
void printUsage(PrintStream writer);
diff --git a/src/main/org/apache/tools/ant/BuildException.java b/src/main/org/apache/tools/ant/BuildException.java
index 7e85ca9e6..442071fb7 100644
--- a/src/main/org/apache/tools/ant/BuildException.java
+++ b/src/main/org/apache/tools/ant/BuildException.java
@@ -49,7 +49,7 @@ public class BuildException extends RuntimeException {
*
* @param pattern A description of or information about the exception.
* Should not be {@code null}.
- * @param formatArguments
+ * @param formatArguments ditto
* @see String#format(String, Object...)
* @since Ant 1.10.2
*/
diff --git a/src/main/org/apache/tools/ant/ComponentHelper.java b/src/main/org/apache/tools/ant/ComponentHelper.java
index c772d1b94..74e7af0e6 100644
--- a/src/main/org/apache/tools/ant/ComponentHelper.java
+++ b/src/main/org/apache/tools/ant/ComponentHelper.java
@@ -53,7 +53,7 @@ import org.apache.tools.ant.util.FileUtils;
*
* A very simple hook mechanism is provided that allows users to plug
* in custom code. It is also possible to replace the default behavior
- * ( for example in an app embedding ant )
+ * (for example in an app embedding Ant)
*
* @since Ant1.6
*/
@@ -201,7 +201,7 @@ public class ComponentHelper {
}
/**
- * @return A deep copy of the restrictredDefinition
+ * @return A deep copy of the restrictedDefinition
*/
private Map<String, List<AntTypeDefinition>> getRestrictedDefinition() {
final Map<String, List<AntTypeDefinition>> result = new HashMap<>();
diff --git a/src/main/org/apache/tools/ant/Diagnostics.java b/src/main/org/apache/tools/ant/Diagnostics.java
index b1a07ca1f..9f1aa0cd7 100644
--- a/src/main/org/apache/tools/ant/Diagnostics.java
+++ b/src/main/org/apache/tools/ant/Diagnostics.java
@@ -272,7 +272,7 @@ public final class Diagnostics {
/**
* ignore exceptions. This is to allow future
* implementations to log at a verbose level
- * @param thrown
+ * @param thrown a Throwable to ignore
*/
private static void ignoreThrowable(Throwable thrown) {
}
@@ -368,7 +368,7 @@ public final class Diagnostics {
/**
* Get the value of a system property. If a security manager
* blocks access to a property it fills the result in with an error
- * @param key
+ * @param key a property key
* @return the system property's value or error text
* @see #ERROR_PROPERTY_ACCESS_BLOCKED
*/
@@ -514,7 +514,7 @@ public final class Diagnostics {
/**
* tell the user about the XML parser
- * @param out
+ * @param out a PrintStream
*/
private static void doReportParserInfo(PrintStream out) {
String parserName = getXMLParserName();
@@ -526,7 +526,7 @@ public final class Diagnostics {
/**
* tell the user about the XSLT processor
- * @param out
+ * @param out a PrintStream
*/
private static void doReportXSLTProcessorInfo(PrintStream out) {
String processorName = getXSLTProcessorName();
@@ -550,7 +550,7 @@ public final class Diagnostics {
* try and create a temp file in our temp dir; this
* checks that it has space and access.
* We also do some clock reporting.
- * @param out
+ * @param out a PrintStream
*/
private static void doReportTempDir(PrintStream out) {
String tempdir = System.getProperty("java.io.tmpdir");
diff --git a/src/main/org/apache/tools/ant/DirectoryScanner.java b/src/main/org/apache/tools/ant/DirectoryScanner.java
index f4c26f6c6..dc79d5323 100644
--- a/src/main/org/apache/tools/ant/DirectoryScanner.java
+++ b/src/main/org/apache/tools/ant/DirectoryScanner.java
@@ -55,6 +55,7 @@ import org.apache.tools.ant.util.VectorSet;
* With the selectors you can select which files you want to have included.
* Files which are not selected are excluded. With patterns you can include
* or exclude files based on their filename.
+ * </p>
* <p>
* The idea is simple. A given directory is recursively scanned for all files
* and directories. Each file/directory is matched against a set of selectors,
@@ -63,11 +64,13 @@ import org.apache.tools.ant.util.VectorSet;
* pattern of the include pattern list or other file selector, and don't match
* any pattern of the exclude pattern list or fail to match against a required
* selector will be placed in the list of files/directories found.
+ * </p>
* <p>
* When no list of include patterns is supplied, "**" will be used, which
* means that everything will be matched. When no list of exclude patterns is
* supplied, an empty list is used, such that nothing will be excluded. When
* no selectors are supplied, none are applied.
+ * </p>
* <p>
* The filename pattern matching is done as follows:
* The name to be matched is split up in path segments. A path segment is the
@@ -76,41 +79,54 @@ import org.apache.tools.ant.util.VectorSet;
* For example, "abc/def/ghi/xyz.java" is split up in the segments "abc",
* "def","ghi" and "xyz.java".
* The same is done for the pattern against which should be matched.
+ * </p>
* <p>
* The segments of the name and the pattern are then matched against each
* other. When '**' is used for a path segment in the pattern, it matches
* zero or more path segments of the name.
+ * </p>
* <p>
* There is a special case regarding the use of <code>File.separator</code>s
- * at the beginning of the pattern and the string to match:<br>
- * When a pattern starts with a <code>File.separator</code>, the string
- * to match must also start with a <code>File.separator</code>.
- * When a pattern does not start with a <code>File.separator</code>, the
- * string to match may not start with a <code>File.separator</code>.
- * When one of these rules is not obeyed, the string will not
- * match.
+ * at the beginning of the pattern and the string to match:
+ * </p>
+ * <ul>
+ * <li>When a pattern starts with a <code>File.separator</code>, the string
+ * to match must also start with a <code>File.separator</code>.</li>
+ * <li>When a pattern does not start with a <code>File.separator</code>, the
+ * string to match may not start with a <code>File.separator</code>.</li>
+ * <li>When one of the above rules is not obeyed, the string will not
+ * match.</li>
+ * </ul>
* <p>
* When a name path segment is matched against a pattern path segment, the
* following special characters can be used:<br>
* '*' matches zero or more characters<br>
* '?' matches one character.
+ * </p>
* <p>
* Examples:
+ * </p>
* <p>
* "**\*.class" matches all .class files/dirs in a directory tree.
+ * </p>
* <p>
* "test\a??.java" matches all files/dirs which start with an 'a', then two
* more characters and then ".java", in a directory called test.
+ * </p>
* <p>
* "**" matches everything in a directory tree.
+ * </p>
* <p>
* "**\test\**\XYZ*" matches all files/dirs which start with "XYZ" and where
* there is a parent directory called test (e.g. "abc\test\def\ghi\XYZ123").
+ * </p>
* <p>
* Case sensitivity may be turned off if necessary. By default, it is
* turned on.
+ * </p>
* <p>
* Example of usage:
+ * </p>
* <pre>
* String[] includes = {"**\\*.class"};
* String[] excludes = {"modules\\*\\**"};
@@ -702,6 +718,7 @@ public class DirectoryScanner
* The maximum number of times a symbolic link may be followed
* during a scan.
*
+ * @param max int
* @since Ant 1.8.0
*/
public void setMaxLevelsOfSymlinks(final int max) {
@@ -785,7 +802,7 @@ public class DirectoryScanner
* <code>File.separatorChar</code>, so the separator used need not
* match <code>File.separatorChar</code>.
*
- * <p> When a pattern ends with a '/' or '\', "**" is appended.
+ * <p>When a pattern ends with a '/' or '\', "**" is appended.</p>
*
* @since Ant 1.6.3
*/
@@ -1371,7 +1388,7 @@ public class DirectoryScanner
* Test whether or not a name matches against at least one include
* pattern.
*
- * @param name The name to match. Must not be <code>null</code>.
+ * @param path The tokenized path to match. Must not be <code>null</code>.
* @return <code>true</code> when the name matches against at least one
* include pattern, or <code>false</code> otherwise.
*/
diff --git a/src/main/org/apache/tools/ant/IntrospectionHelper.java b/src/main/org/apache/tools/ant/IntrospectionHelper.java
index 59ddbb752..9b6b09e43 100644
--- a/src/main/org/apache/tools/ant/IntrospectionHelper.java
+++ b/src/main/org/apache/tools/ant/IntrospectionHelper.java
@@ -812,7 +812,7 @@ public final class IntrospectionHelper {
* Helper method to extract the inner fault from an {@link InvocationTargetException}, and turn
* it into a BuildException. If it is already a BuildException, it is type cast and returned; if
* not a new BuildException is created containing the child as nested text.
- * @param ite
+ * @param ite the exception
* @return the nested exception
*/
private static BuildException extractBuildException(final InvocationTargetException ite) {
@@ -1539,7 +1539,7 @@ public final class IntrospectionHelper {
* @param elementName name of the element
* @return a nested creator, or null if there is no component of the given name, or it
* has no matching add type methods
- * @throws BuildException
+ * @throws BuildException if something goes wrong
*/
private NestedCreator createAddTypeCreator(
final Project project, final Object parent, final String elementName) throws BuildException {
diff --git a/src/main/org/apache/tools/ant/MagicNames.java b/src/main/org/apache/tools/ant/MagicNames.java
index cfd4cc769..5457e6287 100644
--- a/src/main/org/apache/tools/ant/MagicNames.java
+++ b/src/main/org/apache/tools/ant/MagicNames.java
@@ -258,7 +258,7 @@ public final class MagicNames {
/**
* Name of the project reference holding an instance of {@link
* org.apache.tools.ant.taskdefs.launcher.CommandLauncher} to use
- * when executing commands with the help of an external skript.
+ * when executing commands with the help of an external script.
*
* <p>Alternatively this is the name of a system property holding
* the fully qualified class name of a {@link
@@ -272,7 +272,7 @@ public final class MagicNames {
/**
* Name of the project reference holding an instance of {@link
* org.apache.tools.ant.taskdefs.launcher.CommandLauncher} to use
- * when executing commands without the help of an external skript.
+ * when executing commands without the help of an external script.
*
* <p>Alternatively this is the name of a system property holding
* the fully qualified class name of a {@link
diff --git a/src/main/org/apache/tools/ant/Main.java b/src/main/org/apache/tools/ant/Main.java
index b745f2afd..7e0f09d99 100644
--- a/src/main/org/apache/tools/ant/Main.java
+++ b/src/main/org/apache/tools/ant/Main.java
@@ -1267,9 +1267,6 @@ public class Main implements AntMain {
* no descriptions are displayed.
* If non-<code>null</code>, this should have
* as many elements as <code>names</code>.
- * @param topDependencies The list of dependencies for each target.
- * The dependencies are listed as a non null
- * enumeration of String.
* @param heading The heading to display.
* Should not be <code>null</code>.
* @param maxlen The maximum length of the names of the targets.
diff --git a/src/main/org/apache/tools/ant/Project.java b/src/main/org/apache/tools/ant/Project.java
index 23799bc88..d2d9545fe 100644
--- a/src/main/org/apache/tools/ant/Project.java
+++ b/src/main/org/apache/tools/ant/Project.java
@@ -882,7 +882,7 @@ public class Project implements ResourceFactory {
/**
* Set &quot;keep-going&quot; mode. In this mode Ant will try to execute
* as many targets as possible. All targets that do not depend
- * on failed target(s) will be executed. If the keepGoing settor/getter
+ * on failed target(s) will be executed. If the keepGoing setter/getter
* methods are used in conjunction with the <code>ant.executor.class</code>
* property, they will have no effect.
* @param keepGoingMode &quot;keep-going&quot; mode
@@ -893,7 +893,7 @@ public class Project implements ResourceFactory {
}
/**
- * Return the keep-going mode. If the keepGoing settor/getter
+ * Return the keep-going mode. If the keepGoing setter/getter
* methods are used in conjunction with the <code>ant.executor.class</code>
* property, they will have no effect.
* @return &quot;keep-going&quot; mode
@@ -1797,13 +1797,13 @@ public class Project implements ResourceFactory {
/**
* Topologically sort a set of targets.
*
- * @param root <code>String[]</code> containing the names of the root targets.
- * The sort is created in such a way that the ordered sequence of
- * Targets is the minimum possible such sequence to the specified
- * root targets.
- * Must not be <code>null</code>.
+ * @param roots <code>String[]</code> containing the names of the root targets.
+ * The sort is created in such a way that the ordered sequence of
+ * Targets is the minimum possible such sequence to the specified
+ * root targets.
+ * Must not be <code>null</code>.
* @param targetTable A map of names to targets (String to Target).
- * Must not be <code>null</code>.
+ * Must not be <code>null</code>.
* @param returnAll <code>boolean</code> indicating whether to return all
* targets, or the execution sequence only.
* @return a Vector of Target objects in sorted order.
@@ -1811,7 +1811,7 @@ public class Project implements ResourceFactory {
* targets, or if a named target does not exist.
* @since Ant 1.6.3
*/
- public final Vector<Target> topoSort(final String[] root, final Hashtable<String, Target> targetTable,
+ public final Vector<Target> topoSort(final String[] roots, final Hashtable<String, Target> targetTable,
final boolean returnAll) throws BuildException {
final Vector<Target> ret = new VectorSet<>();
final Hashtable<String, String> state = new Hashtable<>();
@@ -1825,19 +1825,19 @@ public class Project implements ResourceFactory {
// dependency tree, not just on the Targets that depend on the
// build Target.
- for (int i = 0; i < root.length; i++) {
- final String st = state.get(root[i]);
+ for (int i = 0; i < roots.length; i++) {
+ final String st = state.get(roots[i]);
if (st == null) {
- tsort(root[i], targetTable, state, visiting, ret);
+ tsort(roots[i], targetTable, state, visiting, ret);
} else if (st == VISITING) {
throw new BuildException("Unexpected node in visiting state: "
- + root[i]);
+ + roots[i]);
}
}
final StringBuilder buf = new StringBuilder("Build sequence for target(s)");
- for (int j = 0; j < root.length; j++) {
- buf.append((j == 0) ? " `" : ", `").append(root[j]).append('\'');
+ for (int j = 0; j < roots.length; j++) {
+ buf.append((j == 0) ? " `" : ", `").append(roots[j]).append('\'');
}
buf.append(" is ").append(ret);
log(buf.toString(), MSG_VERBOSE);
@@ -2013,6 +2013,8 @@ public class Project implements ResourceFactory {
/**
* Does the project know this reference?
*
+ * @param key String
+ * @return boolean
* @since Ant 1.8.0
*/
public boolean hasReference(final String key) {
@@ -2035,6 +2037,7 @@ public class Project implements ResourceFactory {
/**
* Look up a reference by its key (ID).
*
+ * @param <T> desired type
* @param key The key for the desired reference.
* Must not be <code>null</code>.
*
diff --git a/src/main/org/apache/tools/ant/ProjectComponent.java b/src/main/org/apache/tools/ant/ProjectComponent.java
index 451dbed14..8c8feac0d 100644
--- a/src/main/org/apache/tools/ant/ProjectComponent.java
+++ b/src/main/org/apache/tools/ant/ProjectComponent.java
@@ -146,7 +146,7 @@ public abstract class ProjectComponent implements Cloneable {
getProject().log(msg, msgLevel);
} else {
// 'reasonable' default, if the component is used without
- // a Project ( for example as a standalone Bean ).
+ // a Project (for example as a standalone Bean).
// Most ant components can be used this way.
if (msgLevel <= Project.MSG_INFO) {
System.err.println(msg);
diff --git a/src/main/org/apache/tools/ant/ProjectHelper.java b/src/main/org/apache/tools/ant/ProjectHelper.java
index 0b5194604..93f5576c5 100644
--- a/src/main/org/apache/tools/ant/ProjectHelper.java
+++ b/src/main/org/apache/tools/ant/ProjectHelper.java
@@ -147,8 +147,8 @@ public class ProjectHelper {
}
// -------------------- Common properties --------------------
- // The following properties are required by import ( and other tasks
- // that read build files using ProjectHelper ).
+ // The following properties are required by import (and other tasks
+ // that read build files using ProjectHelper).
private Vector<Object> importStack = new Vector<>();
private List<String[]> extensionStack = new LinkedList<>();
@@ -195,6 +195,7 @@ public class ProjectHelper {
/**
* Sets the prefix to prepend to imported target names.
*
+ * @param prefix String
* @since Ant 1.8.0
*/
public static void setCurrentTargetPrefix(String prefix) {
@@ -212,6 +213,7 @@ public class ProjectHelper {
*
* <p>May be set by &lt;import&gt;'s prefixSeparator attribute.</p>
*
+ * @return String
* @since Ant 1.8.0
*/
public static String getCurrentPrefixSeparator() {
@@ -221,6 +223,7 @@ public class ProjectHelper {
/**
* Sets the separator between the prefix and the target name.
*
+ * @param sep String
* @since Ant 1.8.0
*/
public static void setCurrentPrefixSeparator(String sep) {
@@ -246,6 +249,7 @@ public class ProjectHelper {
* overwritten in the importing build file. The depends list of
* the imported targets is not modified at all.</p>
*
+ * @return boolean
* @since Ant 1.8.0
*/
public static boolean isInIncludeMode() {
@@ -256,6 +260,7 @@ public class ProjectHelper {
* Sets whether the current file should be read in include as
* opposed to import mode.
*
+ * @param includeMode boolean
* @since Ant 1.8.0
*/
public static void setInIncludeMode(boolean includeMode) {
@@ -587,6 +592,8 @@ public class ProjectHelper {
*
* <p>This implementation returns false.</p>
*
+ * @param r Resource
+ * @return boolean
* @since Ant 1.8.0
*/
public boolean canParseAntlibDescriptor(Resource r) {
@@ -597,6 +604,9 @@ public class ProjectHelper {
* Parse the given URL as an antlib descriptor and return the
* content as something that can be turned into an Antlib task.
*
+ * @param containingProject Project
+ * @param source Resource
+ * @return UnknownElement
* @since ant 1.8.0
*/
public UnknownElement parseAntlibDescriptor(Project containingProject,
diff --git a/src/main/org/apache/tools/ant/ProjectHelperRepository.java b/src/main/org/apache/tools/ant/ProjectHelperRepository.java
index a11c05a8b..cd2e7dbbb 100644
--- a/src/main/org/apache/tools/ant/ProjectHelperRepository.java
+++ b/src/main/org/apache/tools/ant/ProjectHelperRepository.java
@@ -80,7 +80,7 @@ public class ProjectHelperRepository {
Constructor<? extends ProjectHelper> projectHelper = getProjectHelperBySystemProperty();
registerProjectHelper(projectHelper);
- // A JDK1.3 'service' ( like in JAXP ). That will plug a helper
+ // A JDK1.3 'service' (like in JAXP). That will plug a helper
// automatically if in CLASSPATH, with the right META-INF/services.
try {
ClassLoader classLoader = LoaderUtils.getContextClassLoader();
@@ -249,6 +249,7 @@ public class ProjectHelperRepository {
* Get the helper that will be able to parse the specified build file. The helper
* will be chosen among the ones found in the classpath
*
+ * @param buildFile Resource
* @return the first ProjectHelper that fit the requirement (never <code>null</code>).
*/
public ProjectHelper getProjectHelperForBuildFile(Resource buildFile) throws BuildException {
@@ -272,6 +273,7 @@ public class ProjectHelperRepository {
* Get the helper that will be able to parse the specified antlib. The helper
* will be chosen among the ones found in the classpath
*
+ * @param antlib Resource
* @return the first ProjectHelper that fit the requirement (never <code>null</code>).
*/
public ProjectHelper getProjectHelperForAntlib(Resource antlib) throws BuildException {
diff --git a/src/main/org/apache/tools/ant/PropertyHelper.java b/src/main/org/apache/tools/ant/PropertyHelper.java
index 84121c918..4449fcbac 100644
--- a/src/main/org/apache/tools/ant/PropertyHelper.java
+++ b/src/main/org/apache/tools/ant/PropertyHelper.java
@@ -70,7 +70,7 @@ import org.apache.tools.ant.property.PropertyExpander;
* parseProperties} inside the ParseProperties class which in turn
* uses the {@link org.apache.tools.ant.property.PropertyExpander
* PropertyExpander delegates} to find properties inside the string
- * and this class to expand the propertiy names found into the
+ * and this class to expand the property names found into the
* corresponding values.</p>
*
* <p>When {@link #getProperty looking up a property value} this class
@@ -1098,6 +1098,7 @@ public class PropertyHelper implements GetProperty {
/**
* Get the Collection of delegates of the specified type.
*
+ * @param <D> desired type.
* @param type
* delegate type.
* @return Collection.
@@ -1136,6 +1137,8 @@ public class PropertyHelper implements GetProperty {
/**
* If the given object can be interpreted as a true/false value,
* turn it into a matching Boolean - otherwise return null.
+ * @param value Object
+ * @return Boolean
* @since Ant 1.8.0
*/
public static Boolean toBoolean(Object value) {
@@ -1159,6 +1162,8 @@ public class PropertyHelper implements GetProperty {
/**
* Returns true if the object is null or an empty string.
*
+ * @param value Object
+ * @return boolean
* @since Ant 1.8.0
*/
private static boolean nullOrEmpty(Object value) {
@@ -1170,6 +1175,8 @@ public class PropertyHelper implements GetProperty {
* Returns true if the value can be interpreted as a true value or
* cannot be interpreted as a false value and a property of the
* value's name exists.
+ * @param value Object
+ * @return boolean
* @since Ant 1.8.0
*/
private boolean evalAsBooleanOrPropertyName(Object value) {
@@ -1184,6 +1191,8 @@ public class PropertyHelper implements GetProperty {
* Returns true if the value is null or an empty string, can be
* interpreted as a true value or cannot be interpreted as a false
* value and a property of the value's name exists.
+ * @param value Object
+ * @return boolean
* @since Ant 1.8.0
*/
public boolean testIfCondition(Object value) {
@@ -1194,6 +1203,8 @@ public class PropertyHelper implements GetProperty {
* Returns true if the value is null or an empty string, can be
* interpreted as a false value or cannot be interpreted as a true
* value and a property of the value's name doesn't exist.
+ * @param value Object
+ * @return boolean
* @since Ant 1.8.0
*/
public boolean testUnlessCondition(Object value) {
diff --git a/src/main/org/apache/tools/ant/RuntimeConfigurable.java b/src/main/org/apache/tools/ant/RuntimeConfigurable.java
index 8e54d8c04..2fb91738e 100644
--- a/src/main/org/apache/tools/ant/RuntimeConfigurable.java
+++ b/src/main/org/apache/tools/ant/RuntimeConfigurable.java
@@ -69,7 +69,7 @@ public class RuntimeConfigurable implements Serializable {
private transient boolean namespacedAttribute = false;
/** Attribute names and values. While the XML spec doesn't require
- * preserving the order ( AFAIK ), some ant tests do rely on the
+ * preserving the order (AFAIK), some ant tests do rely on the
* exact order.
* The only exception to this order is the treatment of
* refid. A number of datatypes check if refid is set
@@ -171,7 +171,7 @@ public class RuntimeConfigurable implements Serializable {
* are any Ant attributes, and if so, the method calls the
* isEnabled() method on them.
* @param owner the UE that owns this RC.
- * @return true if enabled, false if any of the ant attribures return
+ * @return true if enabled, false if any of the ant attributes return
* false.
* @since 1.9.1
*/
@@ -266,10 +266,11 @@ public class RuntimeConfigurable implements Serializable {
/**
* Sets the attributes for the wrapped element.
*
- * @deprecated since 1.6.x.
* @param attributes List of attributes defined in the XML for this
* element. May be <code>null</code>.
+ * @deprecated since 1.6.x.
*/
+ @Deprecated
public synchronized void setAttributes(AttributeList attributes) {
this.attributes = new AttributeListImpl(attributes);
for (int i = 0; i < attributes.getLength(); i++) {
@@ -340,10 +341,11 @@ public class RuntimeConfigurable implements Serializable {
/**
* Returns the list of attributes for the wrapped element.
*
- * @deprecated Deprecated since Ant 1.6 in favor of {@link #getAttributeMap}.
* @return An AttributeList representing the attributes defined in the
* XML for this element. May be <code>null</code>.
+ * @deprecated Deprecated since Ant 1.6 in favor of {@link #getAttributeMap}.
*/
+ @Deprecated
public synchronized AttributeList getAttributes() {
return attributes;
}
@@ -414,7 +416,7 @@ public class RuntimeConfigurable implements Serializable {
/**
* Get the text content of this element. Various text chunks are
- * concatenated, there is no way ( currently ) of keeping track of
+ * concatenated, there is no way (currently) of keeping track of
* multiple fragments.
*
* @return the text content of this element.
@@ -448,9 +450,10 @@ public class RuntimeConfigurable implements Serializable {
* and then each child is configured and added. Each time the
* wrapper is configured, the attributes and text for it are
* reset.
- *
+ * <p>
* If the element has an <code>id</code> attribute, a reference
* is added to the project as well.
+ * </p>
*
* @param p The project containing the wrapped element.
* Must not be <code>null</code>.
@@ -467,18 +470,18 @@ public class RuntimeConfigurable implements Serializable {
* Configures the wrapped element. The attributes and text for
* the wrapped element are configured. Each time the wrapper is
* configured, the attributes and text for it are reset.
- *
+ * <p>
* If the element has an <code>id</code> attribute, a reference
* is added to the project as well.
+ * </p>
*
* @param p The project containing the wrapped element.
* Must not be <code>null</code>.
*
* @param configureChildren ignored.
-
*
* @exception BuildException if the configuration fails, for instance due
- * to invalid attributes , or text being added to
+ * to invalid attributes, or text being added to
* an element which doesn't accept it.
*/
public synchronized void maybeConfigure(Project p, boolean configureChildren)
@@ -539,7 +542,7 @@ public class RuntimeConfigurable implements Serializable {
} catch (BuildException be) {
if ("id".equals(name)) {
// Assume that this is an not supported attribute type
- // thrown for example by a dymanic attribute task
+ // thrown for example by a dynamic attribute task
// Do nothing
} else {
throw be;
diff --git a/src/main/org/apache/tools/ant/Target.java b/src/main/org/apache/tools/ant/Target.java
index d48d97194..a57d3b056 100644
--- a/src/main/org/apache/tools/ant/Target.java
+++ b/src/main/org/apache/tools/ant/Target.java
@@ -306,6 +306,7 @@ public class Target implements TaskContainer {
/**
* Same as {@link #setIf(String)} but requires a {@link Condition} instance
*
+ * @param condition Condition
* @since 1.9
*/
public void setIf(Condition condition) {
@@ -358,6 +359,7 @@ public class Target implements TaskContainer {
/**
* Same as {@link #setUnless(String)} but requires a {@link Condition} instance
*
+ * @param condition Condition
* @since 1.9
*/
public void setUnless(Condition condition) {
diff --git a/src/main/org/apache/tools/ant/TaskAdapter.java b/src/main/org/apache/tools/ant/TaskAdapter.java
index 8a22f3537..567bc81fd 100644
--- a/src/main/org/apache/tools/ant/TaskAdapter.java
+++ b/src/main/org/apache/tools/ant/TaskAdapter.java
@@ -44,7 +44,7 @@ public class TaskAdapter extends Task implements TypeAdapter {
* Constructor for given proxy.
* So you could write easier code
* <pre>
- * myTaskContainer.addTask( new TaskAdapter(myProxy) );
+ * myTaskContainer.addTask(new TaskAdapter(myProxy));
* </pre>
*
* @param proxy The object which Ant should use as task.
diff --git a/src/main/org/apache/tools/ant/TaskConfigurationChecker.java b/src/main/org/apache/tools/ant/TaskConfigurationChecker.java
index 70ccd8076..942b2dc72 100644
--- a/src/main/org/apache/tools/ant/TaskConfigurationChecker.java
+++ b/src/main/org/apache/tools/ant/TaskConfigurationChecker.java
@@ -94,7 +94,7 @@ public class TaskConfigurationChecker {
*/
public void checkErrors() throws BuildException {
if (!errors.isEmpty()) {
- StringBuilder sb = new StringBuilder("Configurationerror on <");
+ StringBuilder sb = new StringBuilder("Configuration error on <");
sb.append(task.getTaskName());
sb.append(">:");
sb.append(System.getProperty("line.separator"));
diff --git a/src/main/org/apache/tools/ant/dispatch/DispatchTask.java b/src/main/org/apache/tools/ant/dispatch/DispatchTask.java
index 66eb96f4e..4d19c3d59 100644
--- a/src/main/org/apache/tools/ant/dispatch/DispatchTask.java
+++ b/src/main/org/apache/tools/ant/dispatch/DispatchTask.java
@@ -23,8 +23,7 @@ import org.apache.tools.ant.Task;
* Tasks extending this class may contain multiple actions.
* The method that is invoked for execution depends upon the
* value of the action attribute of the task.
- * <br>
- * Example:<br>
+ * <p>Example:</p>
* &lt;mytask action=&quot;list&quot;/&gt; will invoke the method
* with the signature public void list() in mytask's class.
* If the action attribute is not defined in the task or is empty,
diff --git a/src/main/org/apache/tools/ant/filters/BaseParamFilterReader.java b/src/main/org/apache/tools/ant/filters/BaseParamFilterReader.java
index 54bc9ff92..f3a8e5e03 100644
--- a/src/main/org/apache/tools/ant/filters/BaseParamFilterReader.java
+++ b/src/main/org/apache/tools/ant/filters/BaseParamFilterReader.java
@@ -58,7 +58,7 @@ public abstract class BaseParamFilterReader
* @param parameters The parameters to be used by this filter.
* Should not be <code>null</code>.
*/
- public final void setParameters(final Parameter[] parameters) {
+ public final void setParameters(final Parameter... parameters) {
this.parameters = parameters;
setInitialized(false);
}
diff --git a/src/main/org/apache/tools/ant/filters/ClassConstants.java b/src/main/org/apache/tools/ant/filters/ClassConstants.java
index 354430123..b6894f96a 100644
--- a/src/main/org/apache/tools/ant/filters/ClassConstants.java
+++ b/src/main/org/apache/tools/ant/filters/ClassConstants.java
@@ -29,8 +29,7 @@ import org.apache.tools.ant.util.ResourceUtils;
* Assembles the constants declared in a Java class in
* <code>key1=value1(line separator)key2=value2</code>
* format.
- *<p>
- * Notes:
+ *<p>Notes:</p>
* <ol>
* <li>This filter uses the BCEL external toolkit.
* <li>This assembles only those constants that are not created
@@ -39,7 +38,7 @@ import org.apache.tools.ant.util.ResourceUtils;
* and String only.</li>
* <li>The access modifiers of the declared constants do not matter.</li>
*</ol>
- * Example:<br>
+ * <p>Example:</p>
* <pre>&lt;classconstants/&gt;</pre>
* Or:
* <pre>&lt;filterreader
diff --git a/src/main/org/apache/tools/ant/filters/ExpandProperties.java b/src/main/org/apache/tools/ant/filters/ExpandProperties.java
index 524a799b1..48d9ffe19 100644
--- a/src/main/org/apache/tools/ant/filters/ExpandProperties.java
+++ b/src/main/org/apache/tools/ant/filters/ExpandProperties.java
@@ -30,8 +30,7 @@ import org.apache.tools.ant.types.PropertySet;
/**
* Expands Ant properties, if any, in the data.
- * <p>
- * Example:<br>
+ * <p>Example:</p>
* <pre>&lt;expandproperties/&gt;</pre>
* Or:
* <pre>&lt;filterreader
diff --git a/src/main/org/apache/tools/ant/filters/FixCrLfFilter.java b/src/main/org/apache/tools/ant/filters/FixCrLfFilter.java
index 8a37924c7..b5a0ad2c3 100644
--- a/src/main/org/apache/tools/ant/filters/FixCrLfFilter.java
+++ b/src/main/org/apache/tools/ant/filters/FixCrLfFilter.java
@@ -29,13 +29,14 @@ import org.apache.tools.ant.types.EnumeratedAttribute;
* damaged by misconfigured or misguided editors or file transfer programs.
* <p>
* This filter can take the following arguments:
+ * </p>
* <ul>
- * <li>eof
- * <li>eol
- * <li>fixlast
- * <li>javafiles
- * <li>tab
- * <li>tablength
+ * <li>eof</li>
+ * <li>eol</li>
+ * <li>fixlast</li>
+ * <li>javafiles</li>
+ * <li>tab</li>
+ * <li>tablength</li>
* </ul>
* None of which are required.
* <p>
@@ -44,6 +45,7 @@ import org.apache.tools.ant.types.EnumeratedAttribute;
* handling has also been generalised to accommodate any tabwidth from 2 to 80,
* inclusive. Importantly, it can leave untouched any literal TAB characters
* embedded within Java string or character constants.
+ * </p>
* <p>
* <em>Caution:</em> run with care on carefully formatted files. This may
* sound obvious, but if you don't specify asis, presume that your files are
@@ -53,22 +55,19 @@ import org.apache.tools.ant.types.EnumeratedAttribute;
* cr="add" can result in CR characters being removed in one special case
* accommodated, i.e., CRCRLF is regarded as a single EOL to handle cases where
* other programs have converted CRLF into CRCRLF.
- *
- * <P>
+ *</p>
+ * <p>
* Example:
- *
+ * </p>
* <pre>
* &lt;&lt;fixcrlf tab=&quot;add&quot; eol=&quot;crlf&quot; eof=&quot;asis&quot;/&gt;
* </pre>
- *
* Or:
- *
* <pre>
* &lt;filterreader classname=&quot;org.apache.tools.ant.filters.FixCrLfFilter&quot;&gt;
* &lt;param eol=&quot;crlf&quot; tab=&quot;asis&quot;/&gt;
* &lt;/filterreader&gt;
* </pre>
- *
*/
public final class FixCrLfFilter extends BaseParamFilterReader implements ChainableReader {
private static final int DEFAULT_TAB_LENGTH = 8;
@@ -946,8 +945,8 @@ public final class FixCrLfFilter extends BaseParamFilterReader implements Chaina
/**
* @see EnumeratedAttribute#getValues
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
public String[] getValues() {
return new String[] {"asis", "cr", "lf", "crlf", "mac", "unix", "dos"};
}
diff --git a/src/main/org/apache/tools/ant/filters/LineContainsRegExp.java b/src/main/org/apache/tools/ant/filters/LineContainsRegExp.java
index 4b7f53e36..4e836ef68 100644
--- a/src/main/org/apache/tools/ant/filters/LineContainsRegExp.java
+++ b/src/main/org/apache/tools/ant/filters/LineContainsRegExp.java
@@ -204,7 +204,8 @@ public final class LineContainsRegExp
}
/**
- * Whether to match casesensitevly.
+ * Whether to match casesensitively.
+ * @param b boolean
* @since Ant 1.8.2
*/
public void setCaseSensitive(boolean b) {
@@ -221,6 +222,7 @@ public final class LineContainsRegExp
/**
* Set the regular expression as an attribute.
+ * @param pattern String
* @since Ant 1.10.2
*/
public void setRegexp(String pattern) {
diff --git a/src/main/org/apache/tools/ant/filters/ReplaceTokens.java b/src/main/org/apache/tools/ant/filters/ReplaceTokens.java
index bcbc312cd..f033b6f81 100644
--- a/src/main/org/apache/tools/ant/filters/ReplaceTokens.java
+++ b/src/main/org/apache/tools/ant/filters/ReplaceTokens.java
@@ -217,6 +217,7 @@ public final class ReplaceTokens
* A resource containing properties, each of which is interpreted
* as a token/value pair.
*
+ * @param r Resource
* @since Ant 1.8.0
*/
public void setPropertiesResource(Resource r) {
diff --git a/src/main/org/apache/tools/ant/filters/SortFilter.java b/src/main/org/apache/tools/ant/filters/SortFilter.java
index 44e8d72ed..056ad6a74 100644
--- a/src/main/org/apache/tools/ant/filters/SortFilter.java
+++ b/src/main/org/apache/tools/ant/filters/SortFilter.java
@@ -82,10 +82,10 @@ import org.apache.tools.ant.types.Parameter;
*
* <p>
* Sort all files <code>*.txt</code> from <i>src</i> location using as
- * sorting criterium <code>EvenFirstCmp</code> class, that sorts the file
+ * sorting criterion <code>EvenFirstCmp</code> class, that sorts the file
* lines putting even lines first then odd lines for example. The modified files
* are copied into <i>build</i> location. The <code>EvenFirstCmp</code>,
- * has to an instanciable class via <code>Class.newInstance()</code>,
+ * has to an instantiable class via <code>Class.newInstance()</code>,
* therefore in case of inner class has to be <em>static</em>. It also has to
* implement <code>java.util.Comparator</code> interface, for example:
* </p>
@@ -102,7 +102,7 @@ import org.apache.tools.ant.types.Parameter;
*
* <p>The example above is equivalent to:</p>
*
- * <blockquote><pre>
+ * <pre>
* &lt;componentdef name="evenfirst"
* classname="org.apache.tools.ant.filters.EvenFirstCmp&quot;/&gt;
* &lt;copy todir=&quot;build&quot;&gt;
@@ -113,10 +113,10 @@ import org.apache.tools.ant.types.Parameter;
* &lt;/sortfilter&gt;
* &lt;/filterchain&gt;
* &lt;/copy&gt;
- * </pre></blockquote>
+ * </pre>
*
- * <p> If parameter <code>comparator</code> is present, then
- * <code>reverse</code> parameter will not be taken into account. </p>
+ * <p>If parameter <code>comparator</code> is present, then
+ * <code>reverse</code> parameter will not be taken into account.</p>
*
* @since Ant 1.8.0
*/
@@ -285,7 +285,7 @@ public final class SortFilter extends BaseParamFilterReader
}
/**
- * Set the comparator to be used as sorting criterium.
+ * Set the comparator to be used as sorting criterion.
*
* @param comparator
* the comparator to set
diff --git a/src/main/org/apache/tools/ant/filters/util/ChainReaderHelper.java b/src/main/org/apache/tools/ant/filters/util/ChainReaderHelper.java
index 67694ac51..5294f3609 100644
--- a/src/main/org/apache/tools/ant/filters/util/ChainReaderHelper.java
+++ b/src/main/org/apache/tools/ant/filters/util/ChainReaderHelper.java
@@ -110,9 +110,9 @@ public final class ChainReaderHelper {
/**
* Convenience constructor.
- * @param project
- * @param primaryReader
- * @param filterChains
+ * @param project ditto
+ * @param primaryReader ditto
+ * @param filterChains ditto
*/
public ChainReaderHelper(Project project, Reader primaryReader,
Iterable<FilterChain> filterChains) {
@@ -130,7 +130,7 @@ public final class ChainReaderHelper {
/**
* Fluent primary {@link Reader} mutator.
- * @param rdr
+ * @param rdr Reader
* @return {@code this}
*/
public ChainReaderHelper withPrimaryReader(Reader rdr) {
@@ -148,7 +148,7 @@ public final class ChainReaderHelper {
/**
* Fluent {@link Project} mutator.
- * @param project
+ * @param project ditto
* @return {@code this}
*/
public ChainReaderHelper withProject(Project project) {
@@ -176,7 +176,7 @@ public final class ChainReaderHelper {
/**
* Fluent buffer size mutator.
- * @param size
+ * @param size ditto
* @return {@code this}
*/
public ChainReaderHelper withBufferSize(int size) {
@@ -195,7 +195,7 @@ public final class ChainReaderHelper {
/**
* Fluent {@code filterChains} mutator.
- * @param filterChains
+ * @param filterChains ditto
* @return {@code this}
*/
public ChainReaderHelper withFilterChains(Iterable<FilterChain> filterChains) {
@@ -212,7 +212,7 @@ public final class ChainReaderHelper {
/**
* Fluent mechanism to apply some {@link Consumer}.
- * @param consumer
+ * @param consumer ditto
* @return {@code this}
*/
public ChainReaderHelper with(Consumer<ChainReaderHelper> consumer) {
diff --git a/src/main/org/apache/tools/ant/helper/AntXMLContext.java b/src/main/org/apache/tools/ant/helper/AntXMLContext.java
index 99e3d1a1e..a6b1ed19b 100644
--- a/src/main/org/apache/tools/ant/helper/AntXMLContext.java
+++ b/src/main/org/apache/tools/ant/helper/AntXMLContext.java
@@ -84,14 +84,14 @@ public class AntXMLContext {
*/
private Target implicitTarget = new Target();
- /** Current target ( no need for a stack as the processing model
- allows only one level of target ) */
+ /** Current target (no need for a stack as the processing model
+ allows only one level of target) */
private Target currentTarget = null;
/** The stack of RuntimeConfigurable2 wrapping the
objects.
*/
- private Vector<RuntimeConfigurable> wStack = new Vector<RuntimeConfigurable>();
+ private Vector<RuntimeConfigurable> wStack = new Vector<>();
/**
* Indicates whether the project tag attributes are to be ignored
@@ -138,7 +138,8 @@ public class AntXMLContext {
/**
* sets the build file to which the XML context belongs
- * @param buildFile ant build file
+ * @param buildFile Ant build file
+ * @throws MalformedURLException if parent URL cannot be constructed
* @since Ant 1.8.0
*/
public void setBuildFile(URL buildFile) throws MalformedURLException {
@@ -151,7 +152,7 @@ public class AntXMLContext {
/**
* find out the build file
- * @return the build file to which the xml context belongs
+ * @return the build file to which the XML context belongs
*/
public File getBuildFile() {
return buildFile;
@@ -167,7 +168,7 @@ public class AntXMLContext {
/**
* find out the build file
- * @return the build file to which the xml context belongs
+ * @return the build file to which the xml context belongs
* @since Ant 1.8.0
*/
public URL getBuildFileURL() {
diff --git a/src/main/org/apache/tools/ant/helper/ProjectHelper2.java b/src/main/org/apache/tools/ant/helper/ProjectHelper2.java
index 313763a6c..268869d3f 100644
--- a/src/main/org/apache/tools/ant/helper/ProjectHelper2.java
+++ b/src/main/org/apache/tools/ant/helper/ProjectHelper2.java
@@ -486,8 +486,8 @@ public class ProjectHelper2 extends ProjectHelper {
/**
* Handler for ant processing. Uses a stack of AntHandlers to
- * implement each element ( the original parser used a recursive behavior,
- * with the implicit execution stack )
+ * implement each element (the original parser used a recursive behavior,
+ * with the implicit execution stack)
*/
public static class RootHandler extends DefaultHandler {
private Stack<AntHandler> antHandlers = new Stack<AntHandler>();
@@ -718,11 +718,11 @@ public class ProjectHelper2 extends ProjectHelper {
* too 'involved' in the processing. A better solution (IMO)
* would be to create UE for Project and Target too, and
* then process the tree and have Project/Target deal with
- * its attributes ( similar with Description ).
+ * its attributes (similar with Description).
*
- * If we eventually switch to ( or add support for ) DOM,
+ * If we eventually switch to (or add support for) DOM,
* things will work smoothly - UE can be avoided almost completely
- * ( it could still be created on demand, for backward compatibility )
+ * (it could still be created on demand, for backward compatibility)
*/
for (int i = 0; i < attrs.getLength(); i++) {
@@ -772,7 +772,7 @@ public class ProjectHelper2 extends ProjectHelper {
}
}
- // TODO Move to Project ( so it is shared by all helpers )
+ // TODO Move to Project (so it is shared by all helpers)
String antFileProp =
MagicNames.ANT_FILE + "." + context.getCurrentProjectName();
String dup = project.getProperty(antFileProp);
@@ -1097,7 +1097,7 @@ public class ProjectHelper2 extends ProjectHelper {
}
/**
- * Handler for all project elements ( tasks, data types )
+ * Handler for all project elements (tasks, data types)
*/
public static class ElementHandler extends AntHandler {
@@ -1153,7 +1153,7 @@ public class ProjectHelper2 extends ProjectHelper {
// Nested element
((UnknownElement) parent).addChild(task);
} else {
- // Task included in a target ( including the default one ).
+ // Task included in a target (including the default one).
context.getCurrentTarget().addTask(task);
}
diff --git a/src/main/org/apache/tools/ant/helper/ProjectHelperImpl.java b/src/main/org/apache/tools/ant/helper/ProjectHelperImpl.java
index dcd2b1826..bb7a8bbc2 100644
--- a/src/main/org/apache/tools/ant/helper/ProjectHelperImpl.java
+++ b/src/main/org/apache/tools/ant/helper/ProjectHelperImpl.java
@@ -188,8 +188,8 @@ public class ProjectHelperImpl extends ProjectHelper {
protected DocumentHandler parentHandler;
/** Helper impl. With non-static internal classes, the compiler will generate
- this automatically - but this will fail with some compilers ( reporting
- "Expecting to find object/array on stack" ). If we pass it
+ this automatically - but this will fail with some compilers (reporting
+ "Expecting to find object/array on stack"). If we pass it
explicitly it'll work with more compilers.
*/
ProjectHelperImpl helperImpl;
diff --git a/src/main/org/apache/tools/ant/helper/SingleCheckExecutor.java b/src/main/org/apache/tools/ant/helper/SingleCheckExecutor.java
index 1960ed033..6577c941a 100644
--- a/src/main/org/apache/tools/ant/helper/SingleCheckExecutor.java
+++ b/src/main/org/apache/tools/ant/helper/SingleCheckExecutor.java
@@ -18,12 +18,10 @@
package org.apache.tools.ant.helper;
-
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Executor;
import org.apache.tools.ant.Project;
-
/**
* "Single-check" Target executor implementation.
* Differs from {@link DefaultExecutor} in that the dependencies for all
diff --git a/src/main/org/apache/tools/ant/launch/Launcher.java b/src/main/org/apache/tools/ant/launch/Launcher.java
index e41628b66..8033f4ee8 100644
--- a/src/main/org/apache/tools/ant/launch/Launcher.java
+++ b/src/main/org/apache/tools/ant/launch/Launcher.java
@@ -58,10 +58,9 @@ public class Launcher {
/**
* The location of a per-user library directory.
- * <p>
- * It's value is the concatenation of {@link #ANT_PRIVATEDIR}
+ * <p>It's value is the concatenation of {@link #ANT_PRIVATEDIR}
* with {@link #ANT_PRIVATELIB}, with an appropriate file separator
- * in between. For example, on Unix, it's <code>.ant/lib</code>.
+ * in between. For example, on Unix, it's <code>.ant/lib</code>.</p>
*/
public static final String USER_LIBDIR =
ANT_PRIVATEDIR + File.separatorChar + ANT_PRIVATELIB;
diff --git a/src/main/org/apache/tools/ant/launch/Locator.java b/src/main/org/apache/tools/ant/launch/Locator.java
index 436d5f01d..5f0e289cc 100644
--- a/src/main/org/apache/tools/ant/launch/Locator.java
+++ b/src/main/org/apache/tools/ant/launch/Locator.java
@@ -378,14 +378,14 @@ public final class Locator {
* File.toURL() does not encode characters like #.
* File.toURI() has been introduced in java 1.4, so
* Ant cannot use it (except by reflection) <!-- TODO no longer true -->
- * FileUtils.toURI() cannot be used by Locator.java
+ * File.toURI() cannot be used by Locator.java
* Implemented this way.
* File.toURL() adds file: and changes '\' to '/' for dos OSes
* encodeURI converts characters like ' ' and '#' to %DD
* @param file the file to convert
* @return URL the converted File
* @throws MalformedURLException on error
- * @deprecated since 1.9, use {@link FileUtils#getFileURL(File)}
+ * @deprecated since 1.9, use <code>FileUtils.getFileURL(File)</code>
*/
@Deprecated
public static URL fileToURL(File file)
diff --git a/src/main/org/apache/tools/ant/listener/AnsiColorLogger.java b/src/main/org/apache/tools/ant/listener/AnsiColorLogger.java
index 9370f8706..f99ca3b36 100644
--- a/src/main/org/apache/tools/ant/listener/AnsiColorLogger.java
+++ b/src/main/org/apache/tools/ant/listener/AnsiColorLogger.java
@@ -201,8 +201,8 @@ public class AnsiColorLogger extends DefaultLogger {
/**
* @see DefaultLogger#printMessage
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
protected void printMessage(final String message,
final PrintStream stream,
diff --git a/src/main/org/apache/tools/ant/listener/BigProjectLogger.java b/src/main/org/apache/tools/ant/listener/BigProjectLogger.java
index 865127d29..7d618bcf2 100644
--- a/src/main/org/apache/tools/ant/listener/BigProjectLogger.java
+++ b/src/main/org/apache/tools/ant/listener/BigProjectLogger.java
@@ -75,7 +75,7 @@ public class BigProjectLogger extends SimpleBigProjectLogger
/**
* {@inheritDoc}
*
- * @param event
+ * @param event BuildEvent
*/
public void targetStarted(BuildEvent event) {
maybeRaiseSubBuildStarted(event);
@@ -85,7 +85,7 @@ public class BigProjectLogger extends SimpleBigProjectLogger
/**
* {@inheritDoc}
*
- * @param event
+ * @param event BuildEvent
*/
public void taskStarted(BuildEvent event) {
maybeRaiseSubBuildStarted(event);
@@ -95,7 +95,7 @@ public class BigProjectLogger extends SimpleBigProjectLogger
/**
* {@inheritDoc}
*
- * @param event
+ * @param event BuildEvent
*/
public void buildFinished(BuildEvent event) {
maybeRaiseSubBuildStarted(event);
@@ -106,7 +106,7 @@ public class BigProjectLogger extends SimpleBigProjectLogger
/**
* {@inheritDoc}
*
- * @param event
+ * @param event BuildEvent
*/
public void messageLogged(BuildEvent event) {
maybeRaiseSubBuildStarted(event);
diff --git a/src/main/org/apache/tools/ant/listener/CommonsLoggingListener.java b/src/main/org/apache/tools/ant/listener/CommonsLoggingListener.java
index 2890b8213..bd0702553 100644
--- a/src/main/org/apache/tools/ant/listener/CommonsLoggingListener.java
+++ b/src/main/org/apache/tools/ant/listener/CommonsLoggingListener.java
@@ -130,8 +130,8 @@ public class CommonsLoggingListener implements BuildListener, BuildLogger {
/**
* @see BuildListener#targetStarted
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
public void targetStarted(final BuildEvent event) {
if (initialized) {
@@ -146,8 +146,8 @@ public class CommonsLoggingListener implements BuildListener, BuildLogger {
/**
* @see BuildListener#targetFinished
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
public void targetFinished(final BuildEvent event) {
if (initialized) {
@@ -166,8 +166,8 @@ public class CommonsLoggingListener implements BuildListener, BuildLogger {
/**
* @see BuildListener#taskStarted
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
public void taskStarted(final BuildEvent event) {
if (initialized) {
@@ -189,8 +189,8 @@ public class CommonsLoggingListener implements BuildListener, BuildLogger {
/**
* @see BuildListener#taskFinished
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
public void taskFinished(final BuildEvent event) {
if (initialized) {
@@ -219,8 +219,8 @@ public class CommonsLoggingListener implements BuildListener, BuildLogger {
/**
* @see BuildListener#messageLogged
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
public void messageLogged(final BuildEvent event) {
if (initialized) {
diff --git a/src/main/org/apache/tools/ant/listener/Log4jListener.java b/src/main/org/apache/tools/ant/listener/Log4jListener.java
index 82102283f..b25ad1cf0 100644
--- a/src/main/org/apache/tools/ant/listener/Log4jListener.java
+++ b/src/main/org/apache/tools/ant/listener/Log4jListener.java
@@ -55,8 +55,8 @@ public class Log4jListener implements BuildListener {
/**
* @see BuildListener#buildStarted
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
public void buildStarted(final BuildEvent event) {
if (initialized) {
@@ -67,8 +67,8 @@ public class Log4jListener implements BuildListener {
/**
* @see BuildListener#buildFinished
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
public void buildFinished(final BuildEvent event) {
if (initialized) {
@@ -83,8 +83,8 @@ public class Log4jListener implements BuildListener {
/**
* @see BuildListener#targetStarted
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
public void targetStarted(final BuildEvent event) {
if (initialized) {
@@ -95,8 +95,8 @@ public class Log4jListener implements BuildListener {
/**
* @see BuildListener#targetFinished
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
public void targetFinished(final BuildEvent event) {
if (initialized) {
@@ -113,8 +113,8 @@ public class Log4jListener implements BuildListener {
/**
* @see BuildListener#taskStarted
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
public void taskStarted(final BuildEvent event) {
if (initialized) {
@@ -126,8 +126,8 @@ public class Log4jListener implements BuildListener {
/**
* @see BuildListener#taskFinished
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
public void taskFinished(final BuildEvent event) {
if (initialized) {
@@ -144,8 +144,8 @@ public class Log4jListener implements BuildListener {
/**
* @see BuildListener#messageLogged
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
public void messageLogged(final BuildEvent event) {
if (initialized) {
diff --git a/src/main/org/apache/tools/ant/listener/MailLogger.java b/src/main/org/apache/tools/ant/listener/MailLogger.java
index cff2073cf..9462e25ea 100644
--- a/src/main/org/apache/tools/ant/listener/MailLogger.java
+++ b/src/main/org/apache/tools/ant/listener/MailLogger.java
@@ -328,8 +328,6 @@ public class MailLogger extends DefaultLogger {
* @param defaultValue value returned if not present in the properties.
* Set to null to make required.
* @return The value of the property, or default value.
- * @exception Exception thrown if no default value is specified and the
- * property is not present in properties.
*/
private String getValue(Map<String, Object> properties, String name,
String defaultValue) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/AbstractCvsTask.java b/src/main/org/apache/tools/ant/taskdefs/AbstractCvsTask.java
index e5fa4dd5f..c55c3930b 100644
--- a/src/main/org/apache/tools/ant/taskdefs/AbstractCvsTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/AbstractCvsTask.java
@@ -38,17 +38,18 @@ import org.apache.tools.ant.util.StringUtils;
/**
* original Cvs.java 1.20
- *
- * NOTE: This implementation has been moved here from Cvs.java with
- * the addition of some accessors for extensibility. Another task
- * can extend this with some customized output processing.
+ * <p>
+ * NOTE: This implementation has been moved here from Cvs.java with
+ * the addition of some accessors for extensibility. Another task
+ * can extend this with some customized output processing.
+ * </p>
*
* @since Ant 1.5
*/
public abstract class AbstractCvsTask extends Task {
/**
* Default compression level to use, if compression is enabled via
- * setCompression( true ).
+ * setCompression(true).
*/
public static final int DEFAULT_COMPRESSION_LEVEL = 3;
private static final int MAXIMUM_COMRESSION_LEVEL = 9;
@@ -74,14 +75,17 @@ public abstract class AbstractCvsTask extends Task {
* the package/module to check out.
*/
private String cvsPackage;
+
/**
* the tag
*/
private String tag;
+
/**
* the default command.
*/
private static final String DEFAULT_COMMAND = "checkout";
+
/**
* the CVS command to execute.
*/
@@ -122,7 +126,9 @@ public abstract class AbstractCvsTask extends Task {
*/
private File dest;
- /** whether or not to append stdout/stderr to existing files */
+ /**
+ * whether or not to append stdout/stderr to existing files
+ */
private boolean append = false;
/**
@@ -830,6 +836,7 @@ public abstract class AbstractCvsTask extends Task {
/**
* add a named module/package.
*
+ * @param m Module
* @since Ant 1.8.0
*/
public void addModule(Module m) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/AbstractJarSignerTask.java b/src/main/org/apache/tools/ant/taskdefs/AbstractJarSignerTask.java
index 6fda2838b..2fadd12bf 100644
--- a/src/main/org/apache/tools/ant/taskdefs/AbstractJarSignerTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/AbstractJarSignerTask.java
@@ -181,7 +181,7 @@ public abstract class AbstractJarSignerTask extends Task {
}
/**
- * Enable verbose output when signing ; optional: default false
+ * Enable verbose output when signing; optional: default false
*
* @param verbose if true enable verbose output
*/
@@ -192,7 +192,7 @@ public abstract class AbstractJarSignerTask extends Task {
/**
* do strict checking
* @since Ant 1.9.1
- * @param strict
+ * @param strict boolean
*/
public void setStrict(boolean strict) {
this.strict = strict;
diff --git a/src/main/org/apache/tools/ant/taskdefs/Ant.java b/src/main/org/apache/tools/ant/taskdefs/Ant.java
index 3b4ed036e..bb5175d84 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Ant.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Ant.java
@@ -139,6 +139,7 @@ public class Ant extends Task {
* as it would be when running the build file directly -
* independent of dir and/or inheritAll settings.
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setUseNativeBasedir(boolean b) {
@@ -470,7 +471,7 @@ public class Ant extends Task {
/**
* Get the default build file name to use when launching the task.
* <p>
- * This function may be overrided by providers of custom ProjectHelper so they can implement easily their sub
+ * This function may be overriden by providers of custom ProjectHelper so they can implement easily their sub
* launcher.
*
* @return the name of the default file
@@ -613,7 +614,7 @@ public class Ant extends Task {
* well as properties named basedir or ant.file.
* @param props properties <code>Hashtable</code> to copy to the
* new project.
- * @param the type of property to set (a plain Ant property, a
+ * @param type the type of property to set (a plain Ant property, a
* user property or an inherited property).
* @since Ant 1.8.0
*/
@@ -822,6 +823,6 @@ public class Ant extends Task {
}
private enum PropertyType {
- PLAIN, INHERITED, USER;
+ PLAIN, INHERITED, USER
}
}
diff --git a/src/main/org/apache/tools/ant/taskdefs/AttributeNamespaceDef.java b/src/main/org/apache/tools/ant/taskdefs/AttributeNamespaceDef.java
index 150b7288b..c374d6f36 100644
--- a/src/main/org/apache/tools/ant/taskdefs/AttributeNamespaceDef.java
+++ b/src/main/org/apache/tools/ant/taskdefs/AttributeNamespaceDef.java
@@ -33,7 +33,7 @@ public final class AttributeNamespaceDef extends AntlibDefinition {
/**
* Run the definition.
- * This registers the XML namespace (URI) as a namepace for
+ * This registers the XML namespace (URI) as a namespace for
* attributes.
*/
public void execute() {
diff --git a/src/main/org/apache/tools/ant/taskdefs/Available.java b/src/main/org/apache/tools/ant/taskdefs/Available.java
index 6b371163c..99690e9eb 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Available.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Available.java
@@ -498,8 +498,8 @@ public class Available extends Task implements Condition {
/**
* @see EnumeratedAttribute#getValues
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
public String[] getValues() {
return VALUES;
diff --git a/src/main/org/apache/tools/ant/taskdefs/BuildNumber.java b/src/main/org/apache/tools/ant/taskdefs/BuildNumber.java
index 226ba7a31..77999300f 100644
--- a/src/main/org/apache/tools/ant/taskdefs/BuildNumber.java
+++ b/src/main/org/apache/tools/ant/taskdefs/BuildNumber.java
@@ -121,7 +121,7 @@ public class BuildNumber extends Task {
* Utility method to load properties from file.
*
* @return the loaded properties
- * @throws BuildException
+ * @throws BuildException if something goes wrong
*/
private Properties loadProperties() throws BuildException {
try (InputStream input = Files.newInputStream(myFile.toPath())) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/Concat.java b/src/main/org/apache/tools/ant/taskdefs/Concat.java
index 27b313272..e632ac28b 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Concat.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Concat.java
@@ -363,7 +363,7 @@ public class Concat extends Task implements ResourceCollection {
/**
* return true if the lastchars buffer does
- * not contain the lineseparator
+ * not contain the line separator
*/
private boolean isMissingEndOfLine() {
for (int i = 0; i < lastChars.length; ++i) {
@@ -621,6 +621,7 @@ public class Concat extends Task implements ResourceCollection {
*
* <p>Defaults to false</p>
*
+ * @param f boolean
* @since Ant 1.8.2
*/
public void setForceReadOnly(boolean f) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/Copy.java b/src/main/org/apache/tools/ant/taskdefs/Copy.java
index 3c082799c..09d81f686 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Copy.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Copy.java
@@ -241,6 +241,7 @@ public class Copy extends Task {
*
* <p>Defaults to false</p>
*
+ * @param f boolean
* @since Ant 1.8.2
*/
public void setForce(final boolean f) {
@@ -250,6 +251,7 @@ public class Copy extends Task {
/**
* Whether read-only destinations will be overwritten.
*
+ * @return boolean
* @since Ant 1.8.2
*/
public boolean getForce() {
@@ -466,7 +468,7 @@ public class Copy extends Task {
(1) Move is optimized to move directories if a fileset
has been included completely, therefore FileSets need a
special treatment. This is also required to support
- the failOnError semantice (skip filesets with broken
+ the failOnError semantic (skip filesets with broken
basedir but handle the remaining collections).
(2) We carry around a few protected methods that work
@@ -1036,7 +1038,7 @@ public class Copy extends Task {
}
/**
- * Either returns its argument or a plaeholder if the argument is null.
+ * Either returns its argument or a placeholder if the argument is null.
*/
private static File getKeyFile(final File f) {
return f == null ? NULL_FILE_PLACEHOLDER : f;
diff --git a/src/main/org/apache/tools/ant/taskdefs/Delete.java b/src/main/org/apache/tools/ant/taskdefs/Delete.java
index 7bc3c181e..6474bbf8a 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Delete.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Delete.java
@@ -213,6 +213,7 @@ public class Delete extends MatchingTask {
* default) but also on other operating systems, for example when
* deleting directories from an NFS share.</p>
*
+ * @param b boolean
* @since Ant 1.8.3
*/
public void setPerformGcOnFailedDelete(boolean b) {
@@ -254,7 +255,7 @@ public class Delete extends MatchingTask {
/**
* add a name entry on the include files list
- * @return an NameEntry object to be configured
+ * @return a NameEntry object to be configured
*/
@Override
public PatternSet.NameEntry createIncludesFile() {
@@ -264,7 +265,7 @@ public class Delete extends MatchingTask {
/**
* add a name entry on the exclude list
- * @return an NameEntry object to be configured
+ * @return a NameEntry object to be configured
*/
@Override
public PatternSet.NameEntry createExclude() {
@@ -274,7 +275,7 @@ public class Delete extends MatchingTask {
/**
* add a name entry on the include files list
- * @return an NameEntry object to be configured
+ * @return a NameEntry object to be configured
*/
@Override
public PatternSet.NameEntry createExcludesFile() {
@@ -380,6 +381,7 @@ public class Delete extends MatchingTask {
* Sets whether the symbolic links that have not been followed
* shall be removed (the links, not the locations they point at).
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setRemoveNotFollowedSymlinks(boolean b) {
@@ -388,6 +390,7 @@ public class Delete extends MatchingTask {
/**
* add a "Select" selector entry on the selector list
+ *
* @param selector the selector to be added
*/
@Override
@@ -398,6 +401,7 @@ public class Delete extends MatchingTask {
/**
* add an "And" selector entry on the selector list
+ *
* @param selector the selector to be added
*/
@Override
@@ -408,6 +412,7 @@ public class Delete extends MatchingTask {
/**
* add an "Or" selector entry on the selector list
+ *
* @param selector the selector to be added
*/
@Override
@@ -418,6 +423,7 @@ public class Delete extends MatchingTask {
/**
* add a "Not" selector entry on the selector list
+ *
* @param selector the selector to be added
*/
@Override
@@ -428,6 +434,7 @@ public class Delete extends MatchingTask {
/**
* add a "None" selector entry on the selector list
+ *
* @param selector the selector to be added
*/
@Override
@@ -438,6 +445,7 @@ public class Delete extends MatchingTask {
/**
* add a majority selector entry on the selector list
+ *
* @param selector the selector to be added
*/
@Override
@@ -448,6 +456,7 @@ public class Delete extends MatchingTask {
/**
* add a selector date entry on the selector list
+ *
* @param selector the selector to be added
*/
@Override
@@ -458,6 +467,7 @@ public class Delete extends MatchingTask {
/**
* add a selector size entry on the selector list
+ *
* @param selector the selector to be added
*/
@Override
@@ -468,6 +478,7 @@ public class Delete extends MatchingTask {
/**
* add a selector filename entry on the selector list
+ *
* @param selector the selector to be added
*/
@Override
@@ -478,6 +489,7 @@ public class Delete extends MatchingTask {
/**
* add an extended selector entry on the selector list
+ *
* @param selector the selector to be added
*/
@Override
@@ -488,6 +500,7 @@ public class Delete extends MatchingTask {
/**
* add a contains selector entry on the selector list
+ *
* @param selector the selector to be added
*/
@Override
@@ -498,6 +511,7 @@ public class Delete extends MatchingTask {
/**
* add a present selector entry on the selector list
+ *
* @param selector the selector to be added
*/
@Override
@@ -508,6 +522,7 @@ public class Delete extends MatchingTask {
/**
* add a depth selector entry on the selector list
+ *
* @param selector the selector to be added
*/
@Override
@@ -518,6 +533,7 @@ public class Delete extends MatchingTask {
/**
* add a depends selector entry on the selector list
+ *
* @param selector the selector to be added
*/
@Override
@@ -528,6 +544,7 @@ public class Delete extends MatchingTask {
/**
* add a regular expression selector entry on the selector list
+ *
* @param selector the selector to be added
*/
@Override
@@ -538,6 +555,7 @@ public class Delete extends MatchingTask {
/**
* add the modified selector
+ *
* @param selector the selector to add
* @since ant 1.6
*/
@@ -549,6 +567,7 @@ public class Delete extends MatchingTask {
/**
* add an arbitrary selector
+ *
* @param selector the selector to be added
* @since Ant 1.6
*/
@@ -560,6 +579,7 @@ public class Delete extends MatchingTask {
/**
* Delete the file(s).
+ *
* @exception BuildException if an error occurs
*/
@Override
diff --git a/src/main/org/apache/tools/ant/taskdefs/DependSet.java b/src/main/org/apache/tools/ant/taskdefs/DependSet.java
index ecc8ac3e6..0fbdf56d5 100644
--- a/src/main/org/apache/tools/ant/taskdefs/DependSet.java
+++ b/src/main/org/apache/tools/ant/taskdefs/DependSet.java
@@ -183,6 +183,7 @@ public class DependSet extends MatchingTask {
*
* <p>All deleted files will be logged as well.</p>
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setVerbose(boolean b) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/Echo.java b/src/main/org/apache/tools/ant/taskdefs/Echo.java
index ac31ee329..f1e13c87c 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Echo.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Echo.java
@@ -156,6 +156,7 @@ public class Echo extends Task {
*
* <p>Defaults to false</p>
*
+ * @param f boolean
* @since Ant 1.8.2
*/
public void setForce(boolean f) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/EchoXML.java b/src/main/org/apache/tools/ant/taskdefs/EchoXML.java
index fa0e45737..671d68d87 100644
--- a/src/main/org/apache/tools/ant/taskdefs/EchoXML.java
+++ b/src/main/org/apache/tools/ant/taskdefs/EchoXML.java
@@ -58,8 +58,7 @@ public class EchoXML extends XMLFragment {
/**
* Set the namespace policy for the xml file
* @param n namespace policy: "ignore," "elementsOnly," or "all"
- * @see
- * org.apache.tools.ant.util.DOMElementWriter.XmlNamespacePolicy
+ * @see org.apache.tools.ant.util.DOMElementWriter.XmlNamespacePolicy
*/
public void setNamespacePolicy(NamespacePolicy n) {
namespacePolicy = n;
diff --git a/src/main/org/apache/tools/ant/taskdefs/ExecTask.java b/src/main/org/apache/tools/ant/taskdefs/ExecTask.java
index 6ed6d90ed..1a8956f66 100644
--- a/src/main/org/apache/tools/ant/taskdefs/ExecTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/ExecTask.java
@@ -155,6 +155,7 @@ public class ExecTask extends Task {
/**
* List of operating systems on which the command may be executed.
+ * @return String
* @since Ant 1.8.0
*/
public final String getOs() {
@@ -404,6 +405,7 @@ public class ExecTask extends Task {
/**
* Restrict this execution to a single OS Family
+ * @return the family to restrict to.
* @since Ant 1.8.0
*/
public final String getOsFamily() {
diff --git a/src/main/org/apache/tools/ant/taskdefs/Execute.java b/src/main/org/apache/tools/ant/taskdefs/Execute.java
index 7bf9d0458..0c2364c00 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Execute.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Execute.java
@@ -627,14 +627,14 @@ public class Execute {
for (String osEnvItem : osEnv.keySet()) {
// Nb: using default locale as key is a env name
if (osEnvItem.equalsIgnoreCase(key)) {
- // Use the original casiness of the key
+ // Use the original case of the key
key = osEnvItem;
break;
}
}
}
- // Add the key to the enviromnent copy
+ // Add the key to the environment copy
osEnv.put(key, keyValue.substring(key.length() + 1));
}
diff --git a/src/main/org/apache/tools/ant/taskdefs/Expand.java b/src/main/org/apache/tools/ant/taskdefs/Expand.java
index d6834aa2e..6ae42e881 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Expand.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Expand.java
@@ -91,6 +91,7 @@ public class Expand extends Task {
/**
* Creates an Expand instance and sets the given encoding.
*
+ * @param encoding String
* @since Ant 1.9.5
*/
protected Expand(String encoding) {
@@ -100,6 +101,7 @@ public class Expand extends Task {
/**
* Whether try ing to expand an empty archive would be an error.
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setFailOnEmptyArchive(boolean b) {
@@ -109,6 +111,7 @@ public class Expand extends Task {
/**
* Whether try ing to expand an empty archive would be an error.
*
+ * @return boolean
* @since Ant 1.8.0
*/
public boolean getFailOnEmptyArchive() {
@@ -463,6 +466,7 @@ public class Expand extends Task {
* where the child-class doesn't (i.e. Unzip in the compress
* Antlib).
*
+ * @param encoding String
* @since Ant 1.8.0
*/
protected void internalSetEncoding(String encoding) {
@@ -473,6 +477,7 @@ public class Expand extends Task {
}
/**
+ * @return String
* @since Ant 1.8.0
*/
public String getEncoding() {
@@ -482,6 +487,7 @@ public class Expand extends Task {
/**
* Whether leading path separators should be stripped.
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setStripAbsolutePathSpec(boolean b) {
@@ -491,6 +497,7 @@ public class Expand extends Task {
/**
* Whether unicode extra fields will be used if present.
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setScanForUnicodeExtraFields(boolean b) {
@@ -502,6 +509,7 @@ public class Expand extends Task {
* where the child-class doesn't (i.e. Unzip in the compress
* Antlib).
*
+ * @param b boolean
* @since Ant 1.8.0
*/
protected void internalSetScanForUnicodeExtraFields(boolean b) {
@@ -509,6 +517,7 @@ public class Expand extends Task {
}
/**
+ * @return boolean
* @since Ant 1.8.0
*/
public boolean getScanForUnicodeExtraFields() {
diff --git a/src/main/org/apache/tools/ant/taskdefs/FixCRLF.java b/src/main/org/apache/tools/ant/taskdefs/FixCRLF.java
index 806c81451..fc5adb078 100644
--- a/src/main/org/apache/tools/ant/taskdefs/FixCRLF.java
+++ b/src/main/org/apache/tools/ant/taskdefs/FixCRLF.java
@@ -690,8 +690,8 @@ public class FixCRLF extends MatchingTask implements ChainableReader {
public static class CrLf extends EnumeratedAttribute {
/**
* @see EnumeratedAttribute#getValues
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
public String[] getValues() {
return new String[] { "asis", "cr", "lf", "crlf", "mac", "unix",
diff --git a/src/main/org/apache/tools/ant/taskdefs/Get.java b/src/main/org/apache/tools/ant/taskdefs/Get.java
index 7e7912829..848882e3b 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Get.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Get.java
@@ -327,6 +327,7 @@ public class Get extends Task {
/**
* Adds URLs to get.
+ * @param rc ResourceCollection
* @since Ant 1.8.0
*/
public void add(final ResourceCollection rc) {
@@ -414,6 +415,7 @@ public class Get extends Task {
* The time in seconds the download is allowed to take before
* being terminated.
*
+ * @param maxTime long
* @since Ant 1.8.0
*/
public void setMaxTime(final long maxTime) {
@@ -428,7 +430,6 @@ public class Get extends Task {
* reach the URI at all.</p>
*
* @param r number of attempts to make
- *
* @since Ant 1.8.0
*/
public void setRetries(final int r) {
@@ -444,7 +445,6 @@ public class Get extends Task {
* Skip files that already exist locally.
*
* @param s "true" to skip existing destination files
- *
* @since Ant 1.8.0
*/
public void setSkipExisting(final boolean s) {
@@ -457,6 +457,7 @@ public class Get extends Task {
* the value is considered unset and the behaviour falls
* back to the default of the http API.
*
+ * @param userAgent String
* @since Ant 1.9.3
*/
public void setUserAgent(final String userAgent) {
@@ -471,6 +472,7 @@ public class Get extends Task {
* <p>Defaults to true (allow caching, which is also the
* HttpUrlConnection default value.</p>
*
+ * @param httpUseCache boolean
* @since Ant 1.8.0
*/
public void setHttpUseCaches(final boolean httpUseCache) {
@@ -484,6 +486,7 @@ public class Get extends Task {
* <p>Setting this to true also means Ant will uncompress
* <code>.tar.gz</code> and similar files automatically.</p>
*
+ * @param b boolean
* @since Ant 1.9.5
*/
public void setTryGzipEncoding(boolean b) {
@@ -894,7 +897,7 @@ public class Get extends Task {
/**
* Has the download completed successfully?
*
- * <p>Re-throws any exception caught during executaion.</p>
+ * <p>Re-throws any exception caught during execution.</p>
*/
boolean wasSuccessful() throws IOException, BuildException {
if (ioexception != null) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/ImportTask.java b/src/main/org/apache/tools/ant/taskdefs/ImportTask.java
index 98bf4b3c0..9fd4fc775 100644
--- a/src/main/org/apache/tools/ant/taskdefs/ImportTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/ImportTask.java
@@ -99,6 +99,7 @@ public class ImportTask extends Task {
/**
* The prefix to use when prefixing the imported target names.
*
+ * @param prefix String
* @since Ant 1.8.0
*/
public void setAs(String prefix) {
@@ -109,6 +110,7 @@ public class ImportTask extends Task {
* The separator to use between prefix and target name, default is
* ".".
*
+ * @param s String
* @since Ant 1.8.0
*/
public void setPrefixSeparator(String s) {
@@ -118,6 +120,7 @@ public class ImportTask extends Task {
/**
* The resource to import.
*
+ * @param r ResourceCollection
* @since Ant 1.8.0
*/
public void add(ResourceCollection r) {
@@ -314,6 +317,7 @@ public class ImportTask extends Task {
* overwritten in the importing build file. The depends list of
* the imported targets is not modified at all.</p>
*
+ * @return boolean
* @since Ant 1.8.0
*/
protected final boolean isInIncludeMode() {
@@ -323,6 +327,9 @@ public class ImportTask extends Task {
/**
* Sets a bunch of Thread-local ProjectHelper properties.
*
+ * @param prefix String
+ * @param prefixSep String
+ * @param inIncludeMode boolean
* @since Ant 1.8.0
*/
private static void setProjectHelperProps(String prefix,
diff --git a/src/main/org/apache/tools/ant/taskdefs/JDBCTask.java b/src/main/org/apache/tools/ant/taskdefs/JDBCTask.java
index 3674586f2..3b8dd464c 100644
--- a/src/main/org/apache/tools/ant/taskdefs/JDBCTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/JDBCTask.java
@@ -245,6 +245,7 @@ public abstract class JDBCTask extends Task {
/**
* whether the task should cause the build to fail if it cannot
* connect to the database.
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setFailOnConnectionError(boolean b) {
@@ -313,6 +314,7 @@ public abstract class JDBCTask extends Task {
/**
* Additional properties to put into the JDBC connection string.
*
+ * @param var Property
* @since Ant 1.8.0
*/
public void addConnectionProperty(Property var) {
@@ -382,7 +384,7 @@ public abstract class JDBCTask extends Task {
* Gets an instance of the required driver.
* Uses the ant class loader and the optionally the provided classpath.
* @return Driver
- * @throws BuildException
+ * @throws BuildException if something goes wrong
*/
private Driver getDriver() throws BuildException {
if (driver == null) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/Jar.java b/src/main/org/apache/tools/ant/taskdefs/Jar.java
index 26f844c46..5edcb0fbf 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Jar.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Jar.java
@@ -153,7 +153,7 @@ public class Jar extends Zip {
// CheckStyle:LineLength OFF - Link is too long.
/**
* Strict mode for checking rules of the JAR-Specification.
- * @see http://java.sun.com/j2se/1.3/docs/guide/versioning/spec/VersioningSpecification.html#PackageVersioning
+ * @see <a href="https://docs.oracle.com/javase/8/docs/technotes/guides/versioning/spec/versioning2.html#wp89936"></a>
*/
private StrictMode strict = new StrictMode("ignore");
@@ -441,6 +441,7 @@ public class Jar extends Zip {
/**
* Whether to merge Class-Path attributes.
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setMergeClassPathAttributes(boolean b) {
@@ -451,6 +452,7 @@ public class Jar extends Zip {
* Whether to flatten multi-valued attributes (i.e. Class-Path)
* into a single one.
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setFlattenAttributes(boolean b) {
@@ -978,7 +980,6 @@ public class Jar extends Zip {
* @param dirs a list of directories
* @param files a list of files
* @param writer the writer to write to
- * @throws IOException on error
* @since Ant 1.6.2
*/
protected final void writeIndexLikeList(List<String> dirs, List<String> files,
diff --git a/src/main/org/apache/tools/ant/taskdefs/Javac.java b/src/main/org/apache/tools/ant/taskdefs/Javac.java
index fb8e2ed6f..0d7cd5054 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Javac.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Javac.java
@@ -1079,6 +1079,7 @@ public class Javac extends MatchingTask {
* The classpath to use when loading the compiler implementation
* if it is not a built-in one.
*
+ * @return Path
* @since Ant 1.8.0
*/
public Path createCompilerClasspath() {
@@ -1087,6 +1088,8 @@ public class Javac extends MatchingTask {
/**
* Set the compiler adapter explicitly.
+ *
+ * @param adapter CompilerAdapter
* @since Ant 1.8.0
*/
public void add(final CompilerAdapter adapter) {
@@ -1102,6 +1105,7 @@ public class Javac extends MatchingTask {
* matching package-info.java files that have been compiled but
* didn't create class files themselves.
*
+ * @param b boolean
* @since Ant 1.8.3
*/
public void setCreateMissingPackageInfoClass(final boolean b) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/Javadoc.java b/src/main/org/apache/tools/ant/taskdefs/Javadoc.java
index a92e8da6f..655be6090 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Javadoc.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Javadoc.java
@@ -66,9 +66,9 @@ import org.apache.tools.ant.util.StringUtils;
* Generates Javadoc documentation for a collection
* of source code.
*
- * <p>Current known limitations are:
+ * <p>Current known limitations are:</p>
*
- * <p><ul>
+ * <ul>
* <li>patterns must be of the form "xxx.*", every other pattern doesn't
* work.
* <li>there is no control on arguments sanity since they are left
@@ -76,10 +76,10 @@ import org.apache.tools.ant.util.StringUtils;
* </ul>
*
* <p>If no <code>doclet</code> is set, then the <code>version</code> and
- * <code>author</code> are by default <code>"yes"</code>.
+ * <code>author</code> are by default <code>"yes"</code>.</p>
*
* <p>Note: This task is run on another VM because the Javadoc code calls
- * <code>System.exit()</code> which would break Ant functionality.
+ * <code>System.exit()</code> which would break Ant functionality.</p>
*
* @since Ant 1.1
*
@@ -1666,6 +1666,7 @@ public class Javadoc extends Task {
/**
* Enables deep-copying of <code>doc-files</code> directories.
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setDocFilesSubDirs(final boolean b) {
@@ -1676,6 +1677,7 @@ public class Javadoc extends Task {
* Colon-separated list of <code>doc-files</code> subdirectories
* to skip if {@link #setDocFilesSubDirs docFilesSubDirs is true}.
*
+ * @param s String
* @since Ant 1.8.0
*/
public void setExcludeDocFilesSubDir(final String s) {
@@ -1684,6 +1686,8 @@ public class Javadoc extends Task {
/**
* Whether to post-process the generated javadocs in order to mitigate CVE-2013-1571.
+ *
+ * @param b boolean
* @since Ant 1.9.2
*/
public void setPostProcessGeneratedJavadocs(final boolean b) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/LoadProperties.java b/src/main/org/apache/tools/ant/taskdefs/LoadProperties.java
index 9ff4e6e89..bc71660c0 100644
--- a/src/main/org/apache/tools/ant/taskdefs/LoadProperties.java
+++ b/src/main/org/apache/tools/ant/taskdefs/LoadProperties.java
@@ -147,6 +147,7 @@ public class LoadProperties extends Task {
* Whether to apply the prefix when expanding properties on the
* right hand side of a properties file as well.
*
+ * @param b boolean
* @since Ant 1.8.2
*/
public void setPrefixValues(boolean b) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/LogOutputStream.java b/src/main/org/apache/tools/ant/taskdefs/LogOutputStream.java
index 23bb6bd15..370bcdd7a 100644
--- a/src/main/org/apache/tools/ant/taskdefs/LogOutputStream.java
+++ b/src/main/org/apache/tools/ant/taskdefs/LogOutputStream.java
@@ -28,7 +28,7 @@ import org.apache.tools.ant.util.LineOrientedOutputStream;
/**
* Logs each line written to this stream to the log system of ant.
*
- * Tries to be smart about line separators.<br>
+ * <p>Tries to be smart about line separators.</p>
*
* @since Ant 1.2
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/MakeUrl.java b/src/main/org/apache/tools/ant/taskdefs/MakeUrl.java
index 09e252b2f..961a3c830 100644
--- a/src/main/org/apache/tools/ant/taskdefs/MakeUrl.java
+++ b/src/main/org/apache/tools/ant/taskdefs/MakeUrl.java
@@ -274,7 +274,7 @@ public class MakeUrl extends Task {
/**
* convert a file to a URL;
*
- * @param fileToConvert
+ * @param fileToConvert File
* @return the file converted to a URL
*/
private String toURL(File fileToConvert) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/Manifest.java b/src/main/org/apache/tools/ant/taskdefs/Manifest.java
index f47f461c5..483d8c689 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Manifest.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Manifest.java
@@ -44,8 +44,8 @@ import org.apache.tools.ant.util.FileUtils;
* Holds the data of a jar manifest.
*
* Manifests are processed according to the
- * {@link <a href="http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html">Jar
- * file specification.</a>}.
+ * <a href="http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html">Jar
+ * file specification</a>.
* Specifically, a manifest element consists of
* a set of attributes and sections. These sections in turn may contain
* attributes. Note in particular that this may result in manifest lines
diff --git a/src/main/org/apache/tools/ant/taskdefs/ManifestTask.java b/src/main/org/apache/tools/ant/taskdefs/ManifestTask.java
index 85dfd8a35..2e85cee14 100644
--- a/src/main/org/apache/tools/ant/taskdefs/ManifestTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/ManifestTask.java
@@ -198,6 +198,7 @@ public class ManifestTask extends Task {
/**
* Whether to merge Class-Path attributes.
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setMergeClassPathAttributes(boolean b) {
@@ -208,6 +209,7 @@ public class ManifestTask extends Task {
* Whether to flatten multi-valued attributes (i.e. Class-Path)
* into a single one.
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setFlattenAttributes(boolean b) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/MatchingTask.java b/src/main/org/apache/tools/ant/taskdefs/MatchingTask.java
index 414a89a14..a7654db7d 100644
--- a/src/main/org/apache/tools/ant/taskdefs/MatchingTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/MatchingTask.java
@@ -155,7 +155,7 @@ public abstract class MatchingTask extends Task implements SelectorContainer {
/**
* List of filenames and directory names to not include. They should be
- * either , or " " (space) separated. The ignored files will be logged.
+ * either comma or space separated. The ignored files will be logged.
*
* @param ignoreString the string containing the files to ignore.
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/Move.java b/src/main/org/apache/tools/ant/taskdefs/Move.java
index d43befd3e..3984c7fcc 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Move.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Move.java
@@ -71,6 +71,7 @@ public class Move extends Copy {
* default) but also on other operating systems, for example when
* deleting directories from an NFS share.</p>
*
+ * @param b boolean
* @since Ant 1.8.3
*/
public void setPerformGcOnFailedDelete(boolean b) {
@@ -229,10 +230,10 @@ public class Move extends Copy {
/**
* Copy fromFile to toFile.
- * @param fromFile
- * @param toFile
- * @param filtering
- * @param overwrite
+ * @param fromFile File
+ * @param toFile File
+ * @param filtering boolean
+ * @param overwrite boolean
*/
private void copyFile(File fromFile, File toFile, boolean filtering, boolean overwrite) {
try {
diff --git a/src/main/org/apache/tools/ant/taskdefs/Pack.java b/src/main/org/apache/tools/ant/taskdefs/Pack.java
index 67a2dd8ba..f617e618d 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Pack.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Pack.java
@@ -150,7 +150,7 @@ public abstract class Pack extends Task {
* zip a stream to an output stream
* @param in the stream to zip
* @param zOut the output stream
- * @throws IOException
+ * @throws IOException if something goes wrong
*/
private void zipFile(InputStream in, OutputStream zOut)
throws IOException {
diff --git a/src/main/org/apache/tools/ant/taskdefs/Property.java b/src/main/org/apache/tools/ant/taskdefs/Property.java
index ebe73deb6..6982064e7 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Property.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Property.java
@@ -293,6 +293,7 @@ public class Property extends Task {
* Whether to apply the prefix when expanding properties on the
* right hand side of a properties file as well.
*
+ * @param b boolean
* @since Ant 1.8.2
*/
public void setPrefixValues(boolean b) {
@@ -303,6 +304,7 @@ public class Property extends Task {
* Whether to apply the prefix when expanding properties on the
* right hand side of a properties file as well.
*
+ * @return boolean
* @since Ant 1.8.2
*/
public boolean getPrefixValues() {
@@ -360,10 +362,12 @@ public class Property extends Task {
* allow access of environment variables through &quot;myenv.PATH&quot; and
* &quot;myenv.TERM&quot;. This functionality is currently only implemented
* on select platforms. Feel free to send patches to increase the number of platforms
- * this functionality is supported on ;).<br>
+ * this functionality is supported on ;).
+ * </p>
* Note also that properties are case sensitive, even if the
* environment variables on your operating system are not, e.g. it
* will be ${env.Path} not ${env.PATH} on Windows 2000.
+ *
* @param env prefix
*
* @ant.attribute group="noname"
diff --git a/src/main/org/apache/tools/ant/taskdefs/PumpStreamHandler.java b/src/main/org/apache/tools/ant/taskdefs/PumpStreamHandler.java
index 0f64544ac..9a2394721 100644
--- a/src/main/org/apache/tools/ant/taskdefs/PumpStreamHandler.java
+++ b/src/main/org/apache/tools/ant/taskdefs/PumpStreamHandler.java
@@ -164,6 +164,7 @@ public class PumpStreamHandler implements ExecuteStreamHandler {
* ThreadWithPumper ThreadWithPumper} instance) or interrupting
* the thread.
*
+ * @param t Thread
* @since Ant 1.8.0
*/
protected final void finish(Thread t) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/Recorder.java b/src/main/org/apache/tools/ant/taskdefs/Recorder.java
index cc3b432ae..a6f6a883c 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Recorder.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Recorder.java
@@ -180,8 +180,8 @@ public class Recorder extends Task implements SubBuildListener {
/**
* @see EnumeratedAttribute#getValues()
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
public String[] getValues() {
return VALUES;
}
@@ -321,4 +321,3 @@ public class Recorder extends Task implements SubBuildListener {
getProject().removeBuildListener(this);
}
}
-
diff --git a/src/main/org/apache/tools/ant/taskdefs/RecorderEntry.java b/src/main/org/apache/tools/ant/taskdefs/RecorderEntry.java
index 0155afce1..de9ac0f28 100644
--- a/src/main/org/apache/tools/ant/taskdefs/RecorderEntry.java
+++ b/src/main/org/apache/tools/ant/taskdefs/RecorderEntry.java
@@ -91,16 +91,16 @@ public class RecorderEntry implements BuildLogger, SubBuildListener {
/**
* @see org.apache.tools.ant.BuildListener#buildStarted(BuildEvent)
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
public void buildStarted(BuildEvent event) {
log("> BUILD STARTED", Project.MSG_DEBUG);
}
/**
* @see org.apache.tools.ant.BuildListener#buildFinished(BuildEvent)
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
public void buildFinished(BuildEvent event) {
log("< BUILD FINISHED", Project.MSG_DEBUG);
@@ -145,8 +145,8 @@ public class RecorderEntry implements BuildLogger, SubBuildListener {
/**
* @see org.apache.tools.ant.BuildListener#targetStarted(BuildEvent)
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
public void targetStarted(BuildEvent event) {
log(">> TARGET STARTED -- " + event.getTarget(), Project.MSG_DEBUG);
log(StringUtils.LINE_SEP + event.getTarget().getName() + ":",
@@ -156,8 +156,8 @@ public class RecorderEntry implements BuildLogger, SubBuildListener {
/**
* @see org.apache.tools.ant.BuildListener#targetFinished(BuildEvent)
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
public void targetFinished(BuildEvent event) {
log("<< TARGET FINISHED -- " + event.getTarget(), Project.MSG_DEBUG);
@@ -169,16 +169,16 @@ public class RecorderEntry implements BuildLogger, SubBuildListener {
/**
* @see org.apache.tools.ant.BuildListener#taskStarted(BuildEvent)
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
public void taskStarted(BuildEvent event) {
log(">>> TASK STARTED -- " + event.getTask(), Project.MSG_DEBUG);
}
/**
* @see org.apache.tools.ant.BuildListener#taskFinished(BuildEvent)
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
public void taskFinished(BuildEvent event) {
log("<<< TASK FINISHED -- " + event.getTask(), Project.MSG_DEBUG);
flush();
@@ -186,8 +186,8 @@ public class RecorderEntry implements BuildLogger, SubBuildListener {
/**
* @see org.apache.tools.ant.BuildListener#messageLogged(BuildEvent)
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
public void messageLogged(BuildEvent event) {
log("--- MESSAGE LOGGED", Project.MSG_DEBUG);
@@ -232,8 +232,8 @@ public class RecorderEntry implements BuildLogger, SubBuildListener {
/**
* @see BuildLogger#setMessageOutputLevel(int)
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
public void setMessageOutputLevel(int level) {
if (level >= Project.MSG_ERR && level <= Project.MSG_DEBUG) {
loglevel = level;
@@ -242,8 +242,8 @@ public class RecorderEntry implements BuildLogger, SubBuildListener {
/**
* @see BuildLogger#setOutputPrintStream(PrintStream)
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
public void setOutputPrintStream(PrintStream output) {
closeFile();
out = output;
@@ -252,8 +252,8 @@ public class RecorderEntry implements BuildLogger, SubBuildListener {
/**
* @see BuildLogger#setEmacsMode(boolean)
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
public void setEmacsMode(boolean emacsMode) {
this.emacsMode = emacsMode;
}
@@ -261,8 +261,8 @@ public class RecorderEntry implements BuildLogger, SubBuildListener {
/**
* @see BuildLogger#setErrorPrintStream(PrintStream)
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
public void setErrorPrintStream(PrintStream err) {
setOutputPrintStream(err);
}
@@ -303,6 +303,7 @@ public class RecorderEntry implements BuildLogger, SubBuildListener {
/**
* Get the project associated with this recorder entry.
*
+ * @return Project
* @since 1.8.0
*/
public Project getProject() {
@@ -325,7 +326,7 @@ public class RecorderEntry implements BuildLogger, SubBuildListener {
* Used by Recorder.
* @param append Indicates if output must be appended to the logfile or that
* the logfile should be overwritten.
- * @throws BuildException
+ * @throws BuildException if something goes wrong
* @since 1.6.3
*/
void openFile(boolean append) throws BuildException {
@@ -347,7 +348,7 @@ public class RecorderEntry implements BuildLogger, SubBuildListener {
/**
* Re-opens the file associated with this recorder.
* Used by Recorder.
- * @throws BuildException
+ * @throws BuildException if something goes wrong
* @since 1.6.3
*/
void reopenFile() throws BuildException {
diff --git a/src/main/org/apache/tools/ant/taskdefs/Redirector.java b/src/main/org/apache/tools/ant/taskdefs/Redirector.java
index 5b99d34d3..9871d168b 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Redirector.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Redirector.java
@@ -534,6 +534,8 @@ public class Redirector {
* <p>Binary output will not be split into lines which may make
* error and normal output look mixed up when they get written to
* the same stream.</p>
+ *
+ * @param b boolean
* @since 1.9.4
*/
public void setBinaryOutput(final boolean b) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/Replace.java b/src/main/org/apache/tools/ant/taskdefs/Replace.java
index 42fe2919d..9455baa89 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Replace.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Replace.java
@@ -102,6 +102,7 @@ public class Replace extends MatchingTask {
* expanded already so you do <b>not</b> want to set this to
* true.</p>
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setExpandProperties(boolean b) {
@@ -286,7 +287,7 @@ public class Replace extends MatchingTask {
* The filter expects from the component providing the input that data
* is only added by that component to the end of this StringBuffer.
* This StringBuffer will be modified by this filter, and expects that
- * another component will only apped to this StringBuffer.
+ * another component will only added to this StringBuffer.
* @param input The input for this filter.
*/
void setInputBuffer(StringBuffer input) {
@@ -873,6 +874,7 @@ public class Replace extends MatchingTask {
/**
* Support arbitrary file system based resource collections.
*
+ * @param rc ResourceCollection
* @since Ant 1.8.0
*/
public void addConfigured(ResourceCollection rc) {
@@ -889,6 +891,7 @@ public class Replace extends MatchingTask {
* Whether the file timestamp shall be preserved even if the file
* is modified.
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setPreserveLastModified(boolean b) {
@@ -898,6 +901,7 @@ public class Replace extends MatchingTask {
/**
* Whether the build should fail if nothing has been replaced.
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setFailOnNoReplacements(boolean b) {
@@ -917,6 +921,10 @@ public class Replace extends MatchingTask {
/**
* Replace occurrences of str1 in StringBuffer str with str2.
+ *
+ * @param str StringBuilder
+ * @param str1 String
+ * @param str2 String
*/
private void stringReplace(StringBuilder str, String str1, String str2) {
int found = str.indexOf(str1);
@@ -931,6 +939,8 @@ public class Replace extends MatchingTask {
/**
* Sort keys by size so that tokens that are substrings of other
* strings are tried later.
+ *
+ * @param props Properties
*/
private Iterator<Object> getOrderedIterator(Properties props) {
List<Object> keys = new ArrayList<>(props.keySet());
diff --git a/src/main/org/apache/tools/ant/taskdefs/Rmic.java b/src/main/org/apache/tools/ant/taskdefs/Rmic.java
index e25812f67..c42ad419c 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Rmic.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Rmic.java
@@ -73,11 +73,11 @@ import org.apache.tools.ant.util.facade.FacadeTaskHelper;
* <ul>
* <li>sun (the standard compiler of the JDK)</li>
* <li>kaffe (the standard compiler of
- * {@link <a href="http://www.kaffe.org">Kaffe</a>})</li>
+ * <a href="http://www.kaffe.org">Kaffe</a>)</li>
* <li>weblogic</li>
* </ul>
*
- * <p> The <a href="http://dione.zcu.cz/~toman40/miniRMI/">miniRMI</a>
+ * <p>The <a href="http://dione.zcu.cz/~toman40/miniRMI/">miniRMI</a>
* project contains a compiler implementation for this task as well,
* please consult miniRMI's documentation to learn how to use it.</p>
*
@@ -536,6 +536,7 @@ public class Rmic extends MatchingTask {
/**
* Name of the executable to use when forking.
*
+ * @param ex String
* @since Ant 1.8.0
*/
public void setExecutable(String ex) {
@@ -546,6 +547,7 @@ public class Rmic extends MatchingTask {
* Explicitly specified name of the executable to use when forking
* - if any.
*
+ * @return String
* @since Ant 1.8.0
*/
public String getExecutable() {
@@ -556,6 +558,7 @@ public class Rmic extends MatchingTask {
* The classpath to use when loading the compiler implementation
* if it is not a built-in one.
*
+ * @return Path
* @since Ant 1.8.0
*/
public Path createCompilerClasspath() {
@@ -564,6 +567,7 @@ public class Rmic extends MatchingTask {
/**
* If true, list the source files being handed off to the compiler.
+ *
* @param list if true list the source files
* @since Ant 1.8.0
*/
@@ -573,6 +577,8 @@ public class Rmic extends MatchingTask {
/**
* Set the compiler adapter explicitly.
+ *
+ * @param adapter RmicAdapter
* @since Ant 1.8.0
*/
public void add(RmicAdapter adapter) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/SQLExec.java b/src/main/org/apache/tools/ant/taskdefs/SQLExec.java
index daf4c2145..6e538dfd6 100644
--- a/src/main/org/apache/tools/ant/taskdefs/SQLExec.java
+++ b/src/main/org/apache/tools/ant/taskdefs/SQLExec.java
@@ -500,6 +500,8 @@ public class SQLExec extends JDBCTask {
* If false, delimiters will be searched for in a case-insensitive
* manner (i.e. delimiter="go" matches "GO") and surrounding
* whitespace will be ignored (delimiter="go" matches "GO ").
+ *
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setStrictDelimiterMatching(boolean b) {
@@ -508,6 +510,8 @@ public class SQLExec extends JDBCTask {
/**
* whether to show SQLWarnings as WARN messages.
+ *
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setShowWarnings(boolean b) {
@@ -516,6 +520,8 @@ public class SQLExec extends JDBCTask {
/**
* Whether a warning is an error - in which case onError applies.
+ *
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setTreatWarningsAsErrors(boolean b) {
@@ -527,6 +533,7 @@ public class SQLExec extends JDBCTask {
*
* <p>Defaults to ","</p>
*
+ * @param s String
* @since Ant 1.8.0
*/
public void setCsvColumnSeparator(String s) {
@@ -549,6 +556,7 @@ public class SQLExec extends JDBCTask {
*
* <p>Defaults to "not set"</p>
*
+ * @param s String
* @since Ant 1.8.0
*/
public void setCsvQuoteCharacter(String s) {
@@ -584,6 +592,7 @@ public class SQLExec extends JDBCTask {
/**
* Sets a given property to the number of rows in the first
* statement that returned a row count.
+ * @param rowCountProperty String
* @since Ant 1.8.0
*/
public void setRowCountProperty(String rowCountProperty) {
@@ -592,6 +601,7 @@ public class SQLExec extends JDBCTask {
/**
* Force the csv quote character
+ * @param forceCsvQuoteChar boolean
*/
public void setForceCsvQuoteChar(boolean forceCsvQuoteChar) {
this.forceCsvQuoteChar = forceCsvQuoteChar;
@@ -957,6 +967,9 @@ public class SQLExec extends JDBCTask {
* instances, should override this method but keep in mind that
* this class expects to get the same connection instance on
* consecutive calls.</p>
+ *
+ * @return Statement
+ * @throws SQLException if statement creation or processing fails
*/
protected Statement getStatement() throws SQLException {
if (statement == null) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/Sequential.java b/src/main/org/apache/tools/ant/taskdefs/Sequential.java
index 7d9787bb6..5d309fd4a 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Sequential.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Sequential.java
@@ -45,9 +45,8 @@ public class Sequential extends Task implements TaskContainer {
/**
* Add a nested task to Sequential.
- * <p>
+ *
* @param nestedTask Nested task to execute Sequential
- * <p>
*/
@Override
public void addTask(Task nestedTask) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/SignJar.java b/src/main/org/apache/tools/ant/taskdefs/SignJar.java
index 14b7073bb..16d6993b9 100644
--- a/src/main/org/apache/tools/ant/taskdefs/SignJar.java
+++ b/src/main/org/apache/tools/ant/taskdefs/SignJar.java
@@ -321,6 +321,7 @@ public class SignJar extends AbstractJarSignerTask {
/**
* Whether to force signing of a jar even it is already signed.
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setForce(boolean b) {
@@ -330,6 +331,7 @@ public class SignJar extends AbstractJarSignerTask {
/**
* Should the task force signing of a jar even it is already
* signed?
+ * @return boolean
* @since Ant 1.8.0
*/
public boolean isForce() {
@@ -347,6 +349,8 @@ public class SignJar extends AbstractJarSignerTask {
/**
* Signature Algorithm; optional
+ *
+ * @return String
*/
public String getSigAlg() {
return sigAlg;
@@ -363,6 +367,8 @@ public class SignJar extends AbstractJarSignerTask {
/**
* Digest Algorithm; optional
+ *
+ * @return String
*/
public String getDigestAlg() {
return digestAlg;
@@ -380,6 +386,8 @@ public class SignJar extends AbstractJarSignerTask {
/**
* TSA Digest Algorithm; optional
+ *
+ * @return String
* @since Ant 1.10.2
*/
public String getTSADigestAlg() {
@@ -478,7 +486,7 @@ public class SignJar extends AbstractJarSignerTask {
*
* @param jarSource source to sign
* @param jarTarget target; may be null
- * @throws BuildException
+ * @throws BuildException if something goes wrong
*/
private void signOneJar(File jarSource, File jarTarget)
throws BuildException {
diff --git a/src/main/org/apache/tools/ant/taskdefs/SubAnt.java b/src/main/org/apache/tools/ant/taskdefs/SubAnt.java
index 17351b578..cd8c8bddd 100644
--- a/src/main/org/apache/tools/ant/taskdefs/SubAnt.java
+++ b/src/main/org/apache/tools/ant/taskdefs/SubAnt.java
@@ -39,8 +39,8 @@ import org.apache.tools.ant.util.StringUtils;
/**
* Calls a given target for all defined sub-builds. This is an extension
* of ant for bulk project execution.
- * <p>
- * <h2> Use with directories </h2>
+ *
+ * <h2>Use with directories</h2>
* <p>
* subant can be used with directory sets to execute a build from different directories.
* 2 different options are offered
@@ -82,8 +82,9 @@ public class SubAnt extends Task {
/**
* Get the default build file name to use when launching the task.
* <p>
- * This function may be overrided by providers of custom ProjectHelper so they can implement easily their sub
- * launcher.
+ * This function may be overriden by providers of custom ProjectHelper so
+ * they can implement easily their sub launcher.
+ * </p>
*
* @return the name of the default file
* @since Ant 1.8.0
@@ -376,10 +377,10 @@ public class SubAnt extends Task {
/**
* The target to call on the different sub-builds. Set to "" to execute
* the default target.
+ *
* @param target the target
- * <p>
*/
- // REVISIT: Defaults to the target name that contains this task if not specified.
+ // REVISIT: Defaults to the target name that contains this task if not specified.
public void setTarget(String target) {
this.subTarget = target;
}
@@ -470,6 +471,7 @@ public class SubAnt extends Task {
* <em>Note that the directories will be added to the build path
* in no particular order, so if order is significant, one should
* use a file list instead!</em>
+ * </p>
*
* @param set the directory set to add.
*/
@@ -483,6 +485,7 @@ public class SubAnt extends Task {
* <em>Note that the directories will be added to the build path
* in no particular order, so if order is significant, one should
* use a file list instead!</em>
+ * </p>
*
* @param set the file set to add.
*/
@@ -495,6 +498,7 @@ public class SubAnt extends Task {
* <p>
* <em>Note that contrary to file and directory sets, file lists
* can reference non-existent files or directories!</em>
+ * </p>
*
* @param list the file list to add.
*/
@@ -632,4 +636,4 @@ public class SubAnt extends Task {
}
}
-} // END class SubAnt
+}
diff --git a/src/main/org/apache/tools/ant/taskdefs/Sync.java b/src/main/org/apache/tools/ant/taskdefs/Sync.java
index cadb34278..754a650f0 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Sync.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Sync.java
@@ -177,7 +177,7 @@ public class Sync extends Task {
* <p>If the directory is an orphan, it will also be removed.</p>
*
* @param nonOrphans the table of all non-orphan <code>File</code>s.
- * @param file the initial file or directory to scan or test.
+ * @param toDir the initial file or directory to scan or test.
* @param preservedDirectories will be filled with the directories
* matched by preserveInTarget - if any. Will not be
* filled unless preserveEmptyDirs and includeEmptyDirs
@@ -459,8 +459,8 @@ public class Sync extends Task {
/**
* @see Copy#scan(File, File, String[], String[])
+ * {@inheritDoc}
*/
- /** {@inheritDoc} */
@Override
protected void scan(File fromDir, File toDir, String[] files,
String[] dirs) {
@@ -474,8 +474,8 @@ public class Sync extends Task {
/**
* @see Copy#scan(Resource[], File)
+ * {@inheritDoc}
*/
- /** {@inheritDoc} */
@Override
protected Map<Resource, String[]> scan(Resource[] resources, File toDir) {
assertTrue("No mapper", mapperElement == null);
@@ -549,6 +549,7 @@ public class Sync extends Task {
* Whether empty directories matched by this fileset should be
* preserved.
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setPreserveEmptyDirs(boolean b) {
@@ -559,6 +560,7 @@ public class Sync extends Task {
* Whether empty directories matched by this fileset should be
* preserved.
*
+ * @return Boolean
* @since Ant 1.8.0
*/
public Boolean getPreserveEmptyDirs() {
diff --git a/src/main/org/apache/tools/ant/taskdefs/TempFile.java b/src/main/org/apache/tools/ant/taskdefs/TempFile.java
index 1247cf1c6..882bb47ee 100644
--- a/src/main/org/apache/tools/ant/taskdefs/TempFile.java
+++ b/src/main/org/apache/tools/ant/taskdefs/TempFile.java
@@ -102,7 +102,7 @@ public class TempFile extends Task {
/**
* Sets the optional suffix string for the temp file.
*
- * @param suffix suffix including any "." , e.g ".xml"
+ * @param suffix suffix including any ".", e.g ".xml"
*/
public void setSuffix(String suffix) {
this.suffix = suffix;
diff --git a/src/main/org/apache/tools/ant/taskdefs/Tstamp.java b/src/main/org/apache/tools/ant/taskdefs/Tstamp.java
index 3f5c172f4..16e35c634 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Tstamp.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Tstamp.java
@@ -113,6 +113,8 @@ public class Tstamp extends Task {
/**
* Return the {@link Date} instance to use as base for DSTAMP, TSTAMP and TODAY.
+ *
+ * @return Date
*/
protected Date getNow() {
Optional<Date> now = getNow(
@@ -139,9 +141,9 @@ public class Tstamp extends Task {
/**
* Checks and returns a Date if the specified property is set.
* @param propertyName name of the property to check
- * @param map convertion of the property value as string to Date
- * @param log supplier of the log message containg the property name and value if
- * the convertion fails
+ * @param map conversion of the property value as string to Date
+ * @param log supplier of the log message containing the property name and value if
+ * the conversion fails
* @return Optional containing the Date or null
*/
protected Optional<Date> getNow(String propertyName, Function<String, Date> map, BiFunction<String, String, String> log) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/Untar.java b/src/main/org/apache/tools/ant/taskdefs/Untar.java
index fa26c3544..4e3c25320 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Untar.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Untar.java
@@ -94,8 +94,8 @@ public class Untar extends Expand {
/**
* @see Expand#expandFile(FileUtils, File, File)
+ * {@inheritDoc}
*/
- /** {@inheritDoc} */
@Override
protected void expandFile(FileUtils fileUtils, File srcF, File dir) {
if (!srcF.exists()) {
@@ -250,7 +250,7 @@ public class Untar extends Expand {
clazz.getConstructor(InputStream.class);
return c.newInstance(istream);
} catch (ClassNotFoundException ex) {
- throw new BuildException("xz uncompression requires the XZ for Java library",
+ throw new BuildException("xz decompression requires the XZ for Java library",
ex);
} catch (NoSuchMethodException
| InstantiationException
diff --git a/src/main/org/apache/tools/ant/taskdefs/WaitFor.java b/src/main/org/apache/tools/ant/taskdefs/WaitFor.java
index 4bcc0e9ce..179b97a89 100644
--- a/src/main/org/apache/tools/ant/taskdefs/WaitFor.java
+++ b/src/main/org/apache/tools/ant/taskdefs/WaitFor.java
@@ -263,8 +263,8 @@ public class WaitFor extends ConditionBase {
/**
* @see EnumeratedAttribute#getValues()
+ * {@inheritDoc}
*/
- /** {@inheritDoc} */
@Override
public String[] getValues() {
return UNITS;
diff --git a/src/main/org/apache/tools/ant/taskdefs/XSLTLiaison.java b/src/main/org/apache/tools/ant/taskdefs/XSLTLiaison.java
index 5976bce9e..617790a4a 100644
--- a/src/main/org/apache/tools/ant/taskdefs/XSLTLiaison.java
+++ b/src/main/org/apache/tools/ant/taskdefs/XSLTLiaison.java
@@ -66,4 +66,4 @@ public interface XSLTLiaison {
*/
void transform(File infile, File outfile) throws Exception; //NOSONAR
-} //-- XSLTLiaison
+}
diff --git a/src/main/org/apache/tools/ant/taskdefs/XSLTLiaison2.java b/src/main/org/apache/tools/ant/taskdefs/XSLTLiaison2.java
index f41f91511..0653b40a4 100644
--- a/src/main/org/apache/tools/ant/taskdefs/XSLTLiaison2.java
+++ b/src/main/org/apache/tools/ant/taskdefs/XSLTLiaison2.java
@@ -26,7 +26,7 @@ package org.apache.tools.ant.taskdefs;
*/
public interface XSLTLiaison2 extends XSLTLiaison {
/**
- * Configure the liaision from the XSLTProcess task
+ * Configure the liaison from the XSLTProcess task
* @param xsltTask the XSLTProcess task
*/
void configure(XSLTProcess xsltTask);
diff --git a/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java b/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java
index 0902e5504..f80ef0074 100644
--- a/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java
+++ b/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java
@@ -592,6 +592,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
/**
* Whether to suppress warning messages of the processor.
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setSuppressWarnings(final boolean b) {
@@ -601,6 +602,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
/**
* Whether to suppress warning messages of the processor.
*
+ * @return boolean
* @since Ant 1.8.0
*/
public boolean getSuppressWarnings() {
@@ -610,6 +612,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
/**
* Whether transformation errors should make the build fail.
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setFailOnTransformationError(final boolean b) {
@@ -619,6 +622,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
/**
* Whether any errors should make the build fail.
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setFailOnError(final boolean b) {
@@ -628,6 +632,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
/**
* Whether the build should fail if the nested resource collection is empty.
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setFailOnNoResources(final boolean b) {
@@ -637,6 +642,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
/**
* A system property to set during transformation.
*
+ * @param sysp Environment.Variable
* @since Ant 1.8.0
*/
public void addSysproperty(final Environment.Variable sysp) {
@@ -646,6 +652,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
/**
* A set of system properties to set during transformation.
*
+ * @param sysp PropertySet
* @since Ant 1.8.0
*/
public void addSyspropertyset(final PropertySet sysp) {
@@ -659,6 +666,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
* processor other than trax or if the Transformer is not Xalan2's
* transformer implementation.</p>
*
+ * @return TraceConfiguration
* @since Ant 1.8.0
*/
public TraceConfiguration createTrace() {
@@ -672,6 +680,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
/**
* Configuration for Xalan2 traces.
*
+ * @return TraceConfiguration
* @since Ant 1.8.0
*/
public TraceConfiguration getTraceConfiguration() {
@@ -703,7 +712,6 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
* As a side effect, the loader is set as the thread context classloader
* @param classname the name of the class to load.
* @return the requested class.
- * @exception Exception if the class could not be loaded.
*/
private Class<?> loadClass(final String classname) throws ClassNotFoundException {
setupLoader();
@@ -737,7 +745,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
/**
* specifies a single XML document to be styled. Should be used
- * with the <tt>out</tt> attribute; ; required if <tt>out</tt> is set
+ * with the <tt>out</tt> attribute; required if <tt>out</tt> is set
*
* @param inFile the input file
*/
@@ -1001,6 +1009,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
}
/**
+ * @param type String
* @see ParamType
* @since Ant 1.9.3
*/
@@ -1036,6 +1045,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
}
/**
+ * @return String
* @see ParamType
* @since Ant 1.9.3
*/
@@ -1387,6 +1397,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
* Throws an exception with the given message if failOnError is
* true, otherwise logs the message using the WARN level.
*
+ * @param msg String
* @since Ant 1.8.0
*/
protected void handleError(final String msg) {
@@ -1402,6 +1413,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
* failOnError is true, otherwise logs the message using the WARN
* level.
*
+ * @param ex Throwable
* @since Ant 1.8.0
*/
protected void handleError(final Throwable ex) {
@@ -1416,6 +1428,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
* failOnError and failOnTransformationError are true, otherwise
* logs the message using the WARN level.
*
+ * @param ex Exception
* @since Ant 1.8.0
*/
protected void handleTransformationError(final Exception ex) {
@@ -1488,6 +1501,8 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
/**
* The configured features.
* @since Ant 1.9.8
+ *
+ * @return Iterable&lt;Feature&gt;
*/
public Iterable<Feature> getFeatures() {
return features;
@@ -1659,6 +1674,8 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
/**
* Set to true if the listener is to print events that occur
* as each node is 'executed' in the stylesheet.
+ *
+ * @param b boolean
*/
public void setElements(final boolean b) {
elements = b;
@@ -1667,6 +1684,8 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
/**
* True if the listener is to print events that occur as each
* node is 'executed' in the stylesheet.
+ *
+ * @return boolean
*/
public boolean getElements() {
return elements;
@@ -1675,6 +1694,8 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
/**
* Set to true if the listener is to print information after
* each extension event.
+ *
+ * @param b boolean
*/
public void setExtension(final boolean b) {
extension = b;
@@ -1683,6 +1704,8 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
/**
* True if the listener is to print information after each
* extension event.
+ *
+ * @return boolean
*/
public boolean getExtension() {
return extension;
@@ -1691,6 +1714,8 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
/**
* Set to true if the listener is to print information after
* each result-tree generation event.
+ *
+ * @param b boolean
*/
public void setGeneration(final boolean b) {
generation = b;
@@ -1699,6 +1724,8 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
/**
* True if the listener is to print information after each
* result-tree generation event.
+ *
+ * @return boolean
*/
public boolean getGeneration() {
return generation;
@@ -1707,6 +1734,8 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
/**
* Set to true if the listener is to print information after
* each selection event.
+ *
+ * @param b boolean
*/
public void setSelection(final boolean b) {
selection = b;
@@ -1715,6 +1744,8 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
/**
* True if the listener is to print information after each
* selection event.
+ *
+ * @return boolean
*/
public boolean getSelection() {
return selection;
@@ -1723,6 +1754,8 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
/**
* Set to true if the listener is to print an event whenever a
* template is invoked.
+ *
+ * @param b boolean
*/
public void setTemplates(final boolean b) {
templates = b;
@@ -1731,6 +1764,8 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
/**
* True if the listener is to print an event whenever a
* template is invoked.
+ *
+ * @return boolean
*/
public boolean getTemplates() {
return templates;
@@ -1738,6 +1773,8 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
/**
* The stream to write traces to.
+ *
+ * @return OutputStream
*/
public OutputStream getOutputStream() {
return new LogOutputStream(XSLTProcess.this);
diff --git a/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java b/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java
index 9ebfc835c..db4efe6b9 100644
--- a/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java
+++ b/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java
@@ -142,7 +142,7 @@ import org.xml.sax.SAXException;
* &lt;/classpath&gt;
* </pre>
*
- * <p> This task <i>requires</i> the following attributes:</p>
+ * <p>This task <i>requires</i> the following attributes:</p>
*
* <ul>
* <li><b>file</b>: The name of the file to load.</li>
@@ -722,10 +722,14 @@ public class XmlProperty extends org.apache.tools.ant.Task {
return this.rootDirectory;
}
+ @Deprecated
+ protected boolean getIncludeSementicAttribute() {
+ return getIncludeSemanticAttribute();
+ }
/**
* @return the include semantic attribute.
*/
- protected boolean getIncludeSementicAttribute () {
+ protected boolean getIncludeSemanticAttribute() {
return this.includeSemanticAttribute;
}
diff --git a/src/main/org/apache/tools/ant/taskdefs/Zip.java b/src/main/org/apache/tools/ant/taskdefs/Zip.java
index 41686041b..29b627513 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Zip.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Zip.java
@@ -496,6 +496,7 @@ public class Zip extends MatchingTask {
/**
* Assume 0 Unix mode is intentional.
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setPreserve0Permissions(final boolean b) {
@@ -504,6 +505,7 @@ public class Zip extends MatchingTask {
/**
* Assume 0 Unix mode is intentional.
+ * @return boolean
* @since Ant 1.8.0
*/
public boolean getPreserve0Permissions() {
@@ -512,6 +514,7 @@ public class Zip extends MatchingTask {
/**
* Whether to set the language encoding flag.
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setUseLanguageEncodingFlag(final boolean b) {
@@ -520,6 +523,7 @@ public class Zip extends MatchingTask {
/**
* Whether the language encoding flag will be used.
+ * @return boolean
* @since Ant 1.8.0
*/
public boolean getUseLanguageEnodingFlag() {
@@ -528,6 +532,7 @@ public class Zip extends MatchingTask {
/**
* Whether Unicode extra fields will be created.
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setCreateUnicodeExtraFields(final UnicodeExtraField b) {
@@ -536,6 +541,7 @@ public class Zip extends MatchingTask {
/**
* Whether Unicode extra fields will be created.
+ * @return boolean
* @since Ant 1.8.0
*/
public UnicodeExtraField getCreateUnicodeExtraFields() {
@@ -548,6 +554,7 @@ public class Zip extends MatchingTask {
*
* <p>Defaults to false.</p>
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setFallBackToUTF8(final boolean b) {
@@ -558,6 +565,7 @@ public class Zip extends MatchingTask {
* Whether to fall back to UTF-8 if a name cannot be encoded using
* the specified encoding.
*
+ * @return boolean
* @since Ant 1.8.0
*/
public boolean getFallBackToUTF8() {
@@ -566,6 +574,7 @@ public class Zip extends MatchingTask {
/**
* Whether Zip64 extensions should be used.
+ * @param b boolean
* @since Ant 1.9.1
*/
public void setZip64Mode(final Zip64ModeAttribute b) {
@@ -574,6 +583,7 @@ public class Zip extends MatchingTask {
/**
* Whether Zip64 extensions will be used.
+ * @return boolean
* @since Ant 1.9.1
*/
public Zip64ModeAttribute getZip64Mode() {
@@ -597,6 +607,7 @@ public class Zip extends MatchingTask {
/**
* The file modification time previously provided to
* {@link #setModificationtime(String)} or {@code null} if unset.
+ * @return String
* @since Ant 1.10.2
*/
public String getModificationtime() {
@@ -1638,7 +1649,7 @@ public class Zip extends MatchingTask {
/**
* Add a directory to the zip stream.
- * @param dir the directort to add to the archive
+ * @param dir the directory to add to the archive
* @param zOut the stream to write to
* @param vPath the name this entry shall have in the archive
* @param mode the Unix permissions to set.
@@ -1733,6 +1744,7 @@ public class Zip extends MatchingTask {
/**
* Provides the extra fields for the zip entry currently being
* added to the archive - if any.
+ * @return ZipExtraField[]
* @since Ant 1.8.0
*/
protected final ZipExtraField[] getCurrentExtraFields() {
@@ -1742,6 +1754,7 @@ public class Zip extends MatchingTask {
/**
* Sets the extra fields for the zip entry currently being
* added to the archive - if any.
+ * @param extra ZipExtraField[]
* @since Ant 1.8.0
*/
protected final void setCurrentExtraFields(final ZipExtraField[] extra) {
@@ -2049,6 +2062,7 @@ public class Zip extends MatchingTask {
/**
* Drops all resources from the given array that are not selected
* @param orig the resources to filter
+ * @param selector ResourceSelector
* @return the filters resources
* @since Ant 1.8.0
*/
@@ -2066,6 +2080,8 @@ public class Zip extends MatchingTask {
* Logs a message at the given output level, but only if this is
* the pass that will actually create the archive.
*
+ * @param msg String
+ * @param level int
* @since Ant 1.8.0
*/
protected void logWhenWriting(final String msg, final int level) {
@@ -2081,8 +2097,8 @@ public class Zip extends MatchingTask {
public static class Duplicate extends EnumeratedAttribute {
/**
* @see EnumeratedAttribute#getValues()
+ * {@inheritDoc}
*/
- /** {@inheritDoc} */
@Override
public String[] getValues() {
return new String[] { "add", "preserve", "fail" };
@@ -2138,7 +2154,7 @@ public class Zip extends MatchingTask {
}
/**
- * Policiy for creation of Unicode extra fields: never, always or
+ * Policy for creation of Unicode extra fields: never, always or
* not-encodeable.
*
* @since Ant 1.8.0
diff --git a/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java b/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java
index 62fb428dc..1a630649e 100644
--- a/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java
+++ b/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java
@@ -301,7 +301,7 @@ public abstract class DefaultCompilerAdapter
cmd.createArgument().setValue("-classpath");
- // Just add "sourcepath" to classpath ( for JDK1.1 )
+ // Just add "sourcepath" to classpath (for JDK1.1)
// as well as "bootclasspath" and "extdirs"
if (assumeJava11()) {
final Path cp = new Path(project);
diff --git a/src/main/org/apache/tools/ant/taskdefs/compilers/JavacExternal.java b/src/main/org/apache/tools/ant/taskdefs/compilers/JavacExternal.java
index 6a0370976..f63d4ac2a 100644
--- a/src/main/org/apache/tools/ant/taskdefs/compilers/JavacExternal.java
+++ b/src/main/org/apache/tools/ant/taskdefs/compilers/JavacExternal.java
@@ -67,9 +67,9 @@ public class JavacExternal extends DefaultCompilerAdapter {
/**
* helper method to execute our command on VMS.
- * @param cmd
- * @param firstFileName
- * @return
+ * @param cmd Commandline
+ * @param firstFileName int
+ * @return boolean
*/
private boolean execOnVMS(Commandline cmd, int firstFileName) {
File vmsFile = null;
diff --git a/src/main/org/apache/tools/ant/taskdefs/condition/Http.java b/src/main/org/apache/tools/ant/taskdefs/condition/Http.java
index 7f3427f3b..3b718df00 100644
--- a/src/main/org/apache/tools/ant/taskdefs/condition/Http.java
+++ b/src/main/org/apache/tools/ant/taskdefs/condition/Http.java
@@ -68,7 +68,7 @@ public class Http extends ProjectComponent implements Condition {
*
* @param method The HTTP request method to use. Valid values are
* the same as those accepted by the
- * HttpURLConnection.setRequestMetho d() method,
+ * HttpURLConnection.setRequestMethod() method,
* such as "GET", "HEAD", "TRACE", etc. The default
* if not specified is "GET".
*
@@ -83,6 +83,8 @@ public class Http extends ProjectComponent implements Condition {
/**
* Whether redirects sent by the server should be followed,
* defaults to true.
+ *
+ * @param f boolean
* @since Ant 1.9.7
*/
public void setFollowRedirects(boolean f) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/condition/IsLastModified.java b/src/main/org/apache/tools/ant/taskdefs/condition/IsLastModified.java
index 51471c822..0446dd51e 100644
--- a/src/main/org/apache/tools/ant/taskdefs/condition/IsLastModified.java
+++ b/src/main/org/apache/tools/ant/taskdefs/condition/IsLastModified.java
@@ -151,8 +151,8 @@ public class IsLastModified extends ProjectComponent implements Condition {
/**
* evaluate the condition
- * @return true or false depending on the compoarison mode and the time of the resource
- * @throws BuildException
+ * @return true or false depending on the comparison mode and the time of the resource
+ * @throws BuildException if something goes wrong
*/
@Override
public boolean eval() throws BuildException {
diff --git a/src/main/org/apache/tools/ant/taskdefs/condition/IsReachable.java b/src/main/org/apache/tools/ant/taskdefs/condition/IsReachable.java
index de3f8111e..9083dd609 100644
--- a/src/main/org/apache/tools/ant/taskdefs/condition/IsReachable.java
+++ b/src/main/org/apache/tools/ant/taskdefs/condition/IsReachable.java
@@ -185,7 +185,7 @@ public class IsReachable extends ProjectComponent implements Condition {
//utterly implausible, but catered for anyway
throw new BuildException("When calling " + reachableMethod);
} catch (final InvocationTargetException e) {
- //assume this is an IOexception about un readability
+ //assume this is an IOException about un readability
final Throwable nested = e.getTargetException();
log(ERROR_ON_NETWORK + target + ": " + nested.toString());
//any kind of fault: not reachable.
diff --git a/src/main/org/apache/tools/ant/taskdefs/condition/Os.java b/src/main/org/apache/tools/ant/taskdefs/condition/Os.java
index 07ccb59f5..1d9e2d106 100644
--- a/src/main/org/apache/tools/ant/taskdefs/condition/Os.java
+++ b/src/main/org/apache/tools/ant/taskdefs/condition/Os.java
@@ -86,8 +86,8 @@ public class Os implements Condition {
/**
* OpenJDK is reported to call MacOS X "Darwin"
- * @see https://issues.apache.org/bugzilla/show_bug.cgi?id=44889
- * @see https://issues.apache.org/jira/browse/HADOOP-3318
+ * @see <a href="https://issues.apache.org/bugzilla/show_bug.cgi?id=44889">Bugzilla</a>
+ * @see <a href="https://issues.apache.org/jira/browse/HADOOP-3318">Jira</a>
*/
private static final String DARWIN = "darwin";
@@ -127,8 +127,8 @@ public class Os implements Condition {
/**
* Sets the desired OS family type
*
- * @param f The OS family type desired<br>
- * Possible values:<br>
+ * @param f The OS family type desired
+ * <p>Possible values:</p>
* <ul>
* <li>dos</li>
* <li>mac</li>
diff --git a/src/main/org/apache/tools/ant/taskdefs/condition/ResourceExists.java b/src/main/org/apache/tools/ant/taskdefs/condition/ResourceExists.java
index feda65b24..0e4de586a 100644
--- a/src/main/org/apache/tools/ant/taskdefs/condition/ResourceExists.java
+++ b/src/main/org/apache/tools/ant/taskdefs/condition/ResourceExists.java
@@ -32,6 +32,8 @@ public class ResourceExists extends ProjectComponent implements Condition {
/**
* The resource to test.
+ *
+ * @param r Resource
*/
public void add(Resource r) {
if (resource != null) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogTask.java b/src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogTask.java
index 6ef730ed4..81827494b 100644
--- a/src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogTask.java
@@ -41,36 +41,24 @@ import org.apache.tools.ant.types.FileSet;
*
* It produces an XML output representing the list of changes.
* <pre>
- * <font color=#0000ff>&lt;!-- Root element --&gt;</font>
- * <font color=#6a5acd>&lt;!ELEMENT</font> changelog <font color=#ff00ff>
- * (entry</font><font color=#ff00ff>+</font><font color=#ff00ff>)
- * </font><font color=#6a5acd>&gt;</font>
- * <font color=#0000ff>&lt;!-- CVS Entry --&gt;</font>
- * <font color=#6a5acd>&lt;!ELEMENT</font> entry <font color=#ff00ff>
- * (date,author,file</font><font color=#ff00ff>+</font><font color=#ff00ff>,msg)
- * </font><font color=#6a5acd>&gt;</font>
- * <font color=#0000ff>&lt;!-- Date of cvs entry --&gt;</font>
- * <font color=#6a5acd>&lt;!ELEMENT</font> date <font color=#ff00ff>(#PCDATA)
- * </font><font color=#6a5acd>&gt;</font>
- * <font color=#0000ff>&lt;!-- Author of change --&gt;</font>
- * <font color=#6a5acd>&lt;!ELEMENT</font> author <font color=#ff00ff>(#PCDATA)
- * </font><font color=#6a5acd>&gt;</font>
- * <font color=#0000ff>&lt;!-- List of files affected --&gt;</font>
- * <font color=#6a5acd>&lt;!ELEMENT</font> msg <font color=#ff00ff>(#PCDATA)
- * </font><font color=#6a5acd>&gt;</font>
- * <font color=#0000ff>&lt;!-- File changed --&gt;</font>
- * <font color=#6a5acd>&lt;!ELEMENT</font> file <font color=#ff00ff>
- * (name,revision,prevrevision</font><font color=#ff00ff>?</font>
- * <font color=#ff00ff>)</font><font color=#6a5acd>&gt;</font>
- * <font color=#0000ff>&lt;!-- Name of the file --&gt;</font>
- * <font color=#6a5acd>&lt;!ELEMENT</font> name <font color=#ff00ff>(#PCDATA)
- * </font><font color=#6a5acd>&gt;</font>
- * <font color=#0000ff>&lt;!-- Revision number --&gt;</font>
- * <font color=#6a5acd>&lt;!ELEMENT</font> revision <font color=#ff00ff>
- * (#PCDATA)</font><font color=#6a5acd>&gt;</font>
- * <font color=#0000ff>&lt;!-- Previous revision number --&gt;</font>
- * <font color=#6a5acd>&lt;!ELEMENT</font> prevrevision <font color=#ff00ff>
- * (#PCDATA)</font><font color=#6a5acd>&gt;</font>
+ * &lt;!-- Root element --&gt;
+ * &lt;!ELEMENT changelog (entry+)&gt;
+ * &lt;!-- CVS Entry --&gt;
+ * &lt;!ELEMENT entry (date,author,file+,msg)&gt;
+ * &lt;!-- Date of cvs entry --&gt;
+ * &lt;!ELEMENT date (#PCDATA)&gt;
+ * &lt;!-- Author of change --&gt;
+ * &lt;!ELEMENT author (#PCDATA)&gt;
+ * &lt;!-- List of files affected --&gt;
+ * &lt;!ELEMENT msg (#PCDATA)&gt;
+ * &lt;!-- File changed --&gt;
+ * &lt;!ELEMENT file (name,revision,prevrevision?)&gt;
+ * &lt;!-- Name of the file --&gt;
+ * &lt;!ELEMENT name (#PCDATA)&gt;
+ * &lt;!-- Revision number --&gt;
+ * &lt;!ELEMENT revision (#PCDATA)&gt;
+ * &lt;!-- Previous revision number --&gt;
+ * &lt;!ELEMENT prevrevision (#PCDATA)&gt;
* </pre>
*
* @since Ant 1.5
@@ -183,6 +171,7 @@ public class ChangeLogTask extends AbstractCvsTask {
* Whether to use rlog against a remote repository instead of log
* in a working copy's directory.
*
+ * @param remote boolean
* @since Ant 1.8.0
*/
public void setRemote(final boolean remote) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/cvslib/CvsTagDiff.java b/src/main/org/apache/tools/ant/taskdefs/cvslib/CvsTagDiff.java
index 83ec60701..3a61f7cee 100644
--- a/src/main/org/apache/tools/ant/taskdefs/cvslib/CvsTagDiff.java
+++ b/src/main/org/apache/tools/ant/taskdefs/cvslib/CvsTagDiff.java
@@ -42,9 +42,9 @@ import org.w3c.dom.Element;
* Examines the output of cvs rdiff between two tags.
*
* It produces an XML output representing the list of changes.
- * <PRE>
+ * <pre>
* &lt;!-- Root element --&gt;
- * &lt;!ELEMENT tagdiff ( entry+ ) &gt;
+ * &lt;!ELEMENT tagdiff (entry+) &gt;
* &lt;!-- Start tag of the report --&gt;
* &lt;!ATTLIST tagdiff startTag NMTOKEN #IMPLIED &gt;
* &lt;!-- End tag of the report --&gt;
@@ -55,16 +55,16 @@ import org.w3c.dom.Element;
* &lt;!ATTLIST tagdiff endDate NMTOKEN #IMPLIED &gt;
*
* &lt;!-- CVS tag entry --&gt;
- * &lt;!ELEMENT entry ( file ) &gt;
+ * &lt;!ELEMENT entry (file) &gt;
* &lt;!-- File added, changed or removed --&gt;
- * &lt;!ELEMENT file ( name, revision?, prevrevision? ) &gt;
+ * &lt;!ELEMENT file (name, revision?, prevrevision?) &gt;
* &lt;!-- Name of the file --&gt;
- * &lt;!ELEMENT name ( #PCDATA ) &gt;
+ * &lt;!ELEMENT name (#PCDATA) &gt;
* &lt;!-- Revision number --&gt;
- * &lt;!ELEMENT revision ( #PCDATA ) &gt;
+ * &lt;!ELEMENT revision (#PCDATA) &gt;
* &lt;!-- Previous revision number --&gt;
- * &lt;!ELEMENT prevrevision ( #PCDATA ) &gt;
- * </PRE>
+ * &lt;!ELEMENT prevrevision (#PCDATA) &gt;
+ * </pre>
*
* @since Ant 1.5
* @ant.task name="cvstagdiff"
diff --git a/src/main/org/apache/tools/ant/taskdefs/email/EmailAddress.java b/src/main/org/apache/tools/ant/taskdefs/email/EmailAddress.java
index a5154787e..f8e2133fc 100644
--- a/src/main/org/apache/tools/ant/taskdefs/email/EmailAddress.java
+++ b/src/main/org/apache/tools/ant/taskdefs/email/EmailAddress.java
@@ -92,15 +92,15 @@ public class EmailAddress {
}
}
- // DEBUG: System.out.println( email );
+ // DEBUG: System.out.println(email);
if (end == 0) {
end = len;
}
- // DEBUG: System.out.println( "address: " + start + " " + end );
+ // DEBUG: System.out.println("address: " + start + " " + end);
if (nEnd == 0) {
nEnd = len;
}
- // DEBUG: System.out.println( "name: " + nStart + " " + nEnd );
+ // DEBUG: System.out.println("name: " + nStart + " " + nEnd);
this.address = trim(email.substring(start, end), true);
this.name = trim(email.substring(nStart, nEnd), false);
diff --git a/src/main/org/apache/tools/ant/taskdefs/email/EmailTask.java b/src/main/org/apache/tools/ant/taskdefs/email/EmailTask.java
index ec2987e8b..62b8ae5b4 100644
--- a/src/main/org/apache/tools/ant/taskdefs/email/EmailTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/email/EmailTask.java
@@ -111,6 +111,7 @@ public class EmailTask extends Task {
/**
* Set the user for SMTP auth; this requires JavaMail.
+ *
* @param user the String username.
* @since Ant 1.6
*/
@@ -120,6 +121,7 @@ public class EmailTask extends Task {
/**
* Set the password for SMTP auth; this requires JavaMail.
+ *
* @param password the String password.
* @since Ant 1.6
*/
@@ -129,6 +131,7 @@ public class EmailTask extends Task {
/**
* Set whether to send data over SSL.
+ *
* @param ssl boolean; if true SSL will be used.
* @since Ant 1.6
*/
@@ -139,6 +142,7 @@ public class EmailTask extends Task {
/**
* Set whether to allow authentication to switch to a TLS
* connection via STARTTLS.
+ *
* @param b boolean; if true STARTTLS will be supported.
* @since Ant 1.8.0
*/
@@ -425,6 +429,7 @@ public class EmailTask extends Task {
* <p>Even with this property set to true the task will still fail
* if the mail couldn't be sent to any recipient at all.</p>
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setIgnoreInvalidRecipients(boolean b) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/email/Mailer.java b/src/main/org/apache/tools/ant/taskdefs/email/Mailer.java
index 4805177a6..010b87ea5 100644
--- a/src/main/org/apache/tools/ant/taskdefs/email/Mailer.java
+++ b/src/main/org/apache/tools/ant/taskdefs/email/Mailer.java
@@ -74,6 +74,8 @@ public abstract class Mailer {
/**
* Whether the port has been explicitly specified by the user.
+ *
+ * @param explicit boolean
* @since Ant 1.8.2
*/
public void setPortExplicitlySpecified(boolean explicit) {
@@ -82,6 +84,8 @@ public abstract class Mailer {
/**
* Whether the port has been explicitly specified by the user.
+ *
+ * @return boolean
* @since Ant 1.8.2
*/
protected boolean isPortExplicitlySpecified() {
@@ -151,9 +155,9 @@ public abstract class Mailer {
}
/**
- * Set the replyto addresses.
+ * Set the replyTo addresses.
*
- * @param list a vector of reployTo addresses.
+ * @param list a vector of replyTo addresses.
* @since Ant 1.6
*/
public void setReplyToList(Vector<EmailAddress> list) {
@@ -247,6 +251,7 @@ public abstract class Mailer {
* <p>Even with this property set to true the task will still fail
* if the mail couldn't be sent to any recipient at all.</p>
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setIgnoreInvalidRecipients(boolean b) {
@@ -256,6 +261,7 @@ public abstract class Mailer {
/**
* Whether invalid recipients should be ignored.
*
+ * @return boolean
* @since Ant 1.8.0
*/
protected boolean shouldIgnoreInvalidRecipients() {
@@ -267,7 +273,6 @@ public abstract class Mailer {
* header.
*
* @return the current date in SMTP suitable format.
- *
* @since Ant 1.5
*/
protected final String getDate() {
diff --git a/src/main/org/apache/tools/ant/taskdefs/launcher/CommandLauncher.java b/src/main/org/apache/tools/ant/taskdefs/launcher/CommandLauncher.java
index 5139ce919..4af793668 100644
--- a/src/main/org/apache/tools/ant/taskdefs/launcher/CommandLauncher.java
+++ b/src/main/org/apache/tools/ant/taskdefs/launcher/CommandLauncher.java
@@ -132,6 +132,9 @@ public class CommandLauncher {
/**
* Obtains the shell launcher configured for the given project or
* the default shell launcher.
+ *
+ * @param project Project
+ * @return CommandLauncher
*/
public static CommandLauncher getShellLauncher(Project project) {
CommandLauncher launcher = extractLauncher(ANT_SHELL_LAUNCHER_REF_ID,
@@ -146,6 +149,9 @@ public class CommandLauncher {
/**
* Obtains the VM launcher configured for the given project or
* the default VM launcher.
+ *
+ * @param project Project
+ * @return CommandLauncher
*/
public static CommandLauncher getVMLauncher(Project project) {
CommandLauncher launcher = extractLauncher(ANT_VM_LAUNCHER_REF_ID,
@@ -180,6 +186,9 @@ public class CommandLauncher {
/**
* Sets the VM launcher to use for the given project.
+ *
+ * @param project Project
+ * @param launcher CommandLauncher
*/
public static void setVMLauncher(Project project,
CommandLauncher launcher) {
@@ -190,6 +199,9 @@ public class CommandLauncher {
/**
* Sets the shell launcher to use for the given project.
+ *
+ * @param project Project
+ * @param launcher CommandLauncher
*/
public static void setShellLauncher(Project project,
CommandLauncher launcher) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ANTLR.java b/src/main/org/apache/tools/ant/taskdefs/optional/ANTLR.java
index 3d13f26eb..fb7071caa 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ANTLR.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ANTLR.java
@@ -96,7 +96,7 @@ public class ANTLR extends Task {
/**
* The grammar file to process.
- * @param target the gramer file
+ * @param target the grammar file
*/
public void setTarget(File target) {
log("Setting target to: " + target.toString(), Project.MSG_VERBOSE);
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/EchoProperties.java b/src/main/org/apache/tools/ant/taskdefs/optional/EchoProperties.java
index 8132f36ae..e2945fb98 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/EchoProperties.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/EchoProperties.java
@@ -54,35 +54,38 @@ import org.w3c.dom.Document;
import org.w3c.dom.Element;
/**
- * Displays all the current properties in the build. The output can be sent to
- * a file if desired. <P>
- *
- * Attribute "destfile" defines a file to send the properties to. This can be
- * processed as a standard property file later. <P>
- *
- * Attribute "prefix" defines a prefix which is used to filter the properties
- * only those properties starting with this prefix will be echoed. <P>
- *
- * By default, the "failonerror" attribute is enabled. If an error occurs while
- * writing the properties to a file, and this attribute is enabled, then a
- * BuildException will be thrown. If disabled, then IO errors will be reported
- * as a log statement, but no error will be thrown. <P>
- *
- * Examples: <pre>
+ * Displays all the current properties in the build. The output can be sent to
+ * a file if desired.
+ * <p>
+ * Attribute "destfile" defines a file to send the properties to. This can be
+ * processed as a standard property file later.
+ * </p>
+ * <p>
+ * Attribute "prefix" defines a prefix which is used to filter the properties
+ * only those properties starting with this prefix will be echoed.
+ * </p>
+ * <p>
+ * By default, the "failonerror" attribute is enabled. If an error occurs while
+ * writing the properties to a file, and this attribute is enabled, then a
+ * BuildException will be thrown. If disabled, then IO errors will be reported
+ * as a log statement, but no error will be thrown.
+ * </p>
+ * <p>Examples:</p><pre>
* &lt;echoproperties /&gt;
- * </pre> Report the current properties to the log. <P>
- *
- * <pre>
+ * </pre>
+ * Report the current properties to the log.
+ * <pre>
* &lt;echoproperties destfile="my.properties" /&gt;
- * </pre> Report the current properties to the file "my.properties", and will
- * fail the build if the file could not be created or written to. <P>
- *
- * <pre>
+ * </pre>
+ * Report the current properties to the file "my.properties", and will
+ * fail the build if the file could not be created or written to.
+ * <pre>
* &lt;echoproperties destfile="my.properties" failonerror="false"
* prefix="ant" /&gt;
- * </pre> Report all properties beginning with 'ant' to the file
- * "my.properties", and will log a message if the file could not be created or
- * written to, but will still allow the build to continue.
+ * </pre>
+ * Report all properties beginning with 'ant' to the file
+ * "my.properties", and will log a message if the file could not be created or
+ * written to, but will still allow the build to continue.
*
*@since Ant 1.5
*/
@@ -114,15 +117,15 @@ public class EchoProperties extends Task {
private File inFile = null;
/**
- * File object pointing to the output file. If this is null, then
- * we output to the project log, not to a file.
+ * File object pointing to the output file. If this is null, then
+ * we output to the project log, not to a file.
*/
private File destfile = null;
/**
- * If this is true, then errors generated during file output will become
- * build errors, and if false, then such errors will be logged, but not
- * thrown.
+ * If this is true, then errors generated during file output will become
+ * build errors, and if false, then such errors will be logged, but not
+ * thrown.
*/
private boolean failonerror = true;
@@ -150,7 +153,7 @@ public class EchoProperties extends Task {
* Set a file to store the property output. If this is never specified,
* then the output will be sent to the Ant log.
*
- *@param destfile file to store the property output
+ * @param destfile file to store the property output
*/
public void setDestfile(File destfile) {
this.destfile = destfile;
@@ -160,7 +163,7 @@ public class EchoProperties extends Task {
* If true, the task will fail if an error occurs writing the properties
* file, otherwise errors are just logged.
*
- *@param failonerror <tt>true</tt> if IO exceptions are reported as build
+ * @param failonerror <tt>true</tt> if IO exceptions are reported as build
* exceptions, or <tt>false</tt> if IO exceptions are ignored.
*/
public void setFailOnError(boolean failonerror) {
@@ -168,15 +171,15 @@ public class EchoProperties extends Task {
}
/**
- * If the prefix is set, then only properties which start with this
- * prefix string will be recorded. If regex is not set and if this
- * is never set, or it is set to an empty string or <tt>null</tt>,
- * then all properties will be recorded. <P>
+ * If the prefix is set, then only properties which start with this
+ * prefix string will be recorded. If regex is not set and if this
+ * is never set, or it is set to an empty string or <tt>null</tt>,
+ * then all properties will be recorded.
*
- * For example, if the attribute is set as:
- * <PRE>&lt;echoproperties prefix="ant." /&gt;</PRE>
- * then the property "ant.home" will be recorded, but "ant-example"
- * will not.
+ * <p>For example, if the attribute is set as:</p>
+ * <pre>&lt;echoproperties prefix="ant." /&gt;</pre>
+ * then the property "ant.home" will be recorded, but "ant-example"
+ * will not.
*
* @param prefix The new prefix value
*/
@@ -191,15 +194,15 @@ public class EchoProperties extends Task {
}
/**
- * If the regex is set, then only properties whose names match it
- * will be recorded. If prefix is not set and if this is never set,
- * or it is set to an empty string or <tt>null</tt>, then all
- * properties will be recorded.<P>
+ * If the regex is set, then only properties whose names match it
+ * will be recorded. If prefix is not set and if this is never set,
+ * or it is set to an empty string or <tt>null</tt>, then all
+ * properties will be recorded.
*
- * For example, if the attribute is set as:
- * <PRE>&lt;echoproperties prefix=".*ant.*" /&gt;</PRE>
- * then the properties "ant.home" and "user.variant" will be recorded,
- * but "ant-example" will not.
+ * <p>For example, if the attribute is set as:</p>
+ * <pre>&lt;echoproperties prefix=".*ant.*" /&gt;</pre>
+ * then the properties "ant.home" and "user.variant" will be recorded,
+ * but "ant-example" will not.
*
* @param regex The new regex value
*
@@ -250,9 +253,9 @@ public class EchoProperties extends Task {
}
/**
- * Run the task.
+ * Run the task.
*
- *@exception BuildException trouble, probably file IO
+ * @exception BuildException trouble, probably file IO
*/
@Override
public void execute() throws BuildException {
@@ -328,10 +331,10 @@ public class EchoProperties extends Task {
}
/**
- * Send the key/value pairs in the hashtable to the given output stream.
- * Only those properties matching the <tt>prefix</tt> constraint will be
- * sent to the output stream.
- * The output stream will be closed when this method returns.
+ * Send the key/value pairs in the hashtable to the given output stream.
+ * Only those properties matching the <tt>prefix</tt> constraint will be
+ * sent to the output stream.
+ * The output stream will be closed when this method returns.
*
* @param allProps propfile to save
* @param os output stream
@@ -421,7 +424,7 @@ public class EchoProperties extends Task {
}
private List<Tuple> sortProperties(Properties props) {
- //sort the list. Makes SCM and manual diffs easier.
+ // sort the list. Makes SCM and manual diffs easier.
return props.stringPropertyNames().stream()
.map(k -> new Tuple(k, props.getProperty(k))).sorted()
.collect(Collectors.toList());
@@ -459,14 +462,14 @@ public class EchoProperties extends Task {
}
/**
- * JDK 1.2 allows for the safer method
- * <tt>Properties.store(OutputStream, String)</tt>, which throws an
- * <tt>IOException</tt> on an output error.
+ * JDK 1.2 allows for the safer method
+ * <tt>Properties.store(OutputStream, String)</tt>, which throws an
+ * <tt>IOException</tt> on an output error.
*
- *@param props the properties to record
- *@param os record the properties to this output stream
- *@param header prepend this header to the property output
- *@exception IOException on an I/O error during a write.
+ * @param props the properties to record
+ * @param os record the properties to this output stream
+ * @param header prepend this header to the property output
+ * @exception IOException on an I/O error during a write.
*/
protected void jdkSaveProperties(Properties props, OutputStream os,
String header) throws IOException {
@@ -512,7 +515,7 @@ public class EchoProperties extends Task {
/**
* Uses the DocumentBuilderFactory to get a DocumentBuilder instance.
*
- * @return The DocumentBuilder instance
+ * @return The DocumentBuilder instance
*/
private static DocumentBuilder getDocumentBuilder() {
try {
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/Javah.java b/src/main/org/apache/tools/ant/taskdefs/optional/Javah.java
index dd3e107e6..1e2e18e13 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/Javah.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/Javah.java
@@ -395,6 +395,7 @@ public class Javah extends Task {
* The classpath to use when loading the javah implementation
* if it is not a built-in one.
*
+ * @return Path
* @since Ant 1.8.0
*/
public Path createImplementationClasspath() {
@@ -403,6 +404,8 @@ public class Javah extends Task {
/**
* Set the adapter explicitly.
+ *
+ * @param adapter JavahAdapter
* @since Ant 1.8.0
*/
public void add(JavahAdapter adapter) {
@@ -495,6 +498,6 @@ public class Javah extends Task {
}
private enum Settings {
- cls, files, classes;
+ cls, files, classes
}
} \ No newline at end of file
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/Native2Ascii.java b/src/main/org/apache/tools/ant/taskdefs/optional/Native2Ascii.java
index e76197530..d7de33d19 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/Native2Ascii.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/Native2Ascii.java
@@ -69,6 +69,7 @@ public class Native2Ascii extends MatchingTask {
/**
* The value of the reverse attribute.
+ *
* @return the reverse attribute.
* @since Ant 1.6.3
*/
@@ -89,6 +90,7 @@ public class Native2Ascii extends MatchingTask {
/**
* The value of the encoding attribute.
+ *
* @return the encoding attribute.
* @since Ant 1.6.3
*/
@@ -127,6 +129,7 @@ public class Native2Ascii extends MatchingTask {
/**
* Choose the implementation for this particular task.
+ *
* @param impl the name of the implementation
* @since Ant 1.6.3
*/
@@ -142,7 +145,6 @@ public class Native2Ascii extends MatchingTask {
* Defines the FileNameMapper to use (nested mapper element).
*
* @return the mapper to use for file name translations.
- *
* @throws BuildException if more than one mapper is defined.
*/
public Mapper createMapper() throws BuildException {
@@ -156,6 +158,7 @@ public class Native2Ascii extends MatchingTask {
/**
* A nested filenamemapper
+ *
* @param fileNameMapper the mapper to add
* @since Ant 1.6.3
*/
@@ -165,8 +168,8 @@ public class Native2Ascii extends MatchingTask {
/**
* Adds an implementation specific command-line argument.
- * @return a ImplementationSpecificArgument to be configured
*
+ * @return a ImplementationSpecificArgument to be configured
* @since Ant 1.6.3
*/
public ImplementationSpecificArgument createArg() {
@@ -180,6 +183,7 @@ public class Native2Ascii extends MatchingTask {
* The classpath to use when loading the native2ascii
* implementation if it is not a built-in one.
*
+ * @return Path
* @since Ant 1.8.0
*/
public Path createImplementationClasspath() {
@@ -188,6 +192,8 @@ public class Native2Ascii extends MatchingTask {
/**
* Set the adapter explicitly.
+ *
+ * @param adapter Native2AsciiAdapter
* @since Ant 1.8.0
*/
public void add(Native2AsciiAdapter adapter) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/NetRexxC.java b/src/main/org/apache/tools/ant/taskdefs/optional/NetRexxC.java
index c3bd97bef..f1fc66902 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/NetRexxC.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/NetRexxC.java
@@ -84,16 +84,15 @@ import org.apache.tools.ant.util.FileUtils;
*
* <p>When this task executes, it will recursively scan the srcdir
* looking for NetRexx source files to compile. This task makes its
- * compile decision based on timestamp.
+ * compile decision based on timestamp.</p>
* <p>Before files are compiled they and any other file in the
* srcdir will be copied to the destdir allowing support files to be
* located properly in the classpath. The reason for copying the source files
- * before the compile is that NetRexxC has only two destinations for classfiles:
+ * before the compile is that NetRexxC has only two destinations for classfiles:</p>
* <ol>
* <li>The current directory, and,</li>
* <li>The directory the source is in (see sourcedir option)
* </ol>
- *
*/
public class NetRexxC extends MatchingTask {
@@ -532,7 +531,8 @@ public class NetRexxC extends MatchingTask {
/**
* Tells whether the trailing .keep in nocompile-mode should be removed
* so that the resulting java source really ends on .java.
- * This facilitates the use of the javadoc tool lateron.
+ * This facilitates the use of the javadoc tool later on.
+ * @param removeKeepExtension boolean
*/
public void setRemoveKeepExtension(boolean removeKeepExtension) {
this.removeKeepExtension = removeKeepExtension;
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java b/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java
index 32239ce76..7ea75e563 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java
@@ -55,16 +55,17 @@ import org.apache.tools.ant.util.LayoutPreservingProperties;
* &lt;entry key="product.version.major" type="int" value="5"/&gt;
* &lt;entry key="product.version.minor" type="int" value="0"/&gt;
* &lt;entry key="product.build.major" type="int" value="0" /&gt;
- * &lt;entry key="product.build.minor" type="int" operation="+" /&gt;
- * &lt;entry key="product.build.date" type="date" value="now" /&gt;
+ * &lt;entry key="product.build.minor" type="int" operation="+"/&gt;
+ * &lt;entry key="product.build.date" type="date" value="now"/&gt;
* &lt;entry key="intSet" type="int" operation="=" value="681"/&gt;
* &lt;entry key="intDec" type="int" operation="-"/&gt;
* &lt;entry key="StringEquals" type="string" value="testValue"/&gt;
* &lt;/propertyfile&gt;
* &lt;/target&gt;
* </pre>
- *
+ * <p>
* The &lt;propertyfile&gt; task must have:
+ * </p>
* <ul>
* <li>file</li>
* </ul>
@@ -76,8 +77,9 @@ import org.apache.tools.ant.util.LayoutPreservingProperties;
* <li>type</li>
* <li>value (the final four being eliminated shortly)</li>
* </ul>
- *
+ * <p>
* The &lt;entry&gt; task must have:
+ * </p>
* <ul>
* <li>key</li>
* </ul>
@@ -89,24 +91,29 @@ import org.apache.tools.ant.util.LayoutPreservingProperties;
* <li>default</li>
* <li>unit</li>
* </ul>
- *
+ * <p>
* If type is unspecified, it defaults to string.
- *
+ * </p>
* Parameter values:
- * <ul>
- * <li>operation:</li>
+ * <dl>
+ * <dt>operation:</dt>
+ * <dd>
* <ul>
* <li>"=" (set -- default)</li>
* <li>"-" (dec)</li>
* <li>"+" (inc)</li>
* </ul>
- * <li>type:</li>
+ * </dd>
+ * <dt>type:</dt>
+ * <dd>
* <ul>
* <li>"int"</li>
* <li>"date"</li>
* <li>"string"</li>
* </ul>
- * <li>value:</li>
+ * </dd>
+ * <dt>value:</dt>
+ * <dd>
* <ul>
* <li>holds the default value, if the property
* was not found in property file</li>
@@ -115,7 +122,8 @@ import org.apache.tools.ant.util.LayoutPreservingProperties;
* date/time and used even if a valid date was
* found in the property file.</li>
* </ul>
- * </ul>
+ * </dd>
+ * </dl>
*
* <p>String property types can only use the "=" operation.
* Int property types can only use the "=", "-" or "+" operations.<p>
@@ -231,6 +239,7 @@ public class PropertyFile extends Task {
/**
* optional flag to use original Java properties (as opposed to
* layout preserving properties)
+ * @param val boolean
*/
public void setJDKProperties(boolean val) {
useJDKProperties = val;
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ReplaceRegExp.java b/src/main/org/apache/tools/ant/taskdefs/optional/ReplaceRegExp.java
index afc9a54ab..e4271ff49 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ReplaceRegExp.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ReplaceRegExp.java
@@ -147,6 +147,7 @@ public class ReplaceRegExp extends Task {
/**
* file for which the regular expression should be replaced;
* required unless a nested fileset is supplied.
+ *
* @param file The file for which the reg exp should be replaced.
*/
public void setFile(File file) {
@@ -156,6 +157,7 @@ public class ReplaceRegExp extends Task {
/**
* the regular expression pattern to match in the file(s);
* required if no nested &lt;regexp&gt; is used
+ *
* @param match the match attribute.
*/
public void setMatch(String match) {
@@ -171,6 +173,7 @@ public class ReplaceRegExp extends Task {
* The substitution pattern to place in the file(s) in place
* of the regular expression.
* Required if no nested &lt;substitution&gt; is used
+ *
* @param replace the replace attribute
*/
@@ -188,15 +191,16 @@ public class ReplaceRegExp extends Task {
* The flags to use when matching the regular expression. For more
* information, consult the Perl5 syntax.
* <ul>
- * <li>g : Global replacement. Replace all occurrences found
- * <li>i : Case Insensitive. Do not consider case in the match
+ * <li>g : Global replacement. Replace all occurrences found</li>
+ * <li>i : Case Insensitive. Do not consider case in the match</li>
* <li>m : Multiline. Treat the string as multiple lines of input,
* using "^" and "$" as the start or end of any line, respectively,
- * rather than start or end of string.
- * <li> s : Singleline. Treat the string as a single line of input, using
+ * rather than start or end of string.</li>
+ * <li>s : Singleline. Treat the string as a single line of input, using
* "." to match any character, including a newline, which normally,
- * it would not match.
- *</ul>
+ * it would not match.</li>
+ * </ul>
+ *
* @param flags the flags attribute
*/
public void setFlags(String flags) {
@@ -235,8 +239,8 @@ public class ReplaceRegExp extends Task {
/**
* Specifies the encoding Ant expects the files to be in -
* defaults to the platforms default encoding.
- * @param encoding the encoding attribute
*
+ * @param encoding the encoding attribute
* @since Ant 1.6
*/
public void setEncoding(String encoding) {
@@ -245,6 +249,7 @@ public class ReplaceRegExp extends Task {
/**
* list files to apply the replacement to
+ *
* @param set the fileset element
*/
public void addFileset(FileSet set) {
@@ -254,6 +259,7 @@ public class ReplaceRegExp extends Task {
/**
* Support arbitrary file system based resource collections.
*
+ * @param rc ResourceCollection
* @since Ant 1.8.0
*/
public void addConfigured(ResourceCollection rc) {
@@ -285,6 +291,7 @@ public class ReplaceRegExp extends Task {
/**
* A substitution pattern. You can use this element to refer to a previously
* defined substitution pattern datatype instance.
+ *
* @return the substitution pattern object to be configured as an element
*/
public Substitution createSubstitution() {
@@ -301,6 +308,7 @@ public class ReplaceRegExp extends Task {
* Whether the file timestamp shall be preserved even if the file
* is modified.
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setPreserveLastModified(boolean b) {
@@ -334,7 +342,7 @@ public class ReplaceRegExp extends Task {
}
/**
- * Perform the replacement on a file
+ * Perform the replacement on a file
*
* @param f the file to perform the replacement on
* @param options the regular expressions options
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/Rpm.java b/src/main/org/apache/tools/ant/taskdefs/optional/Rpm.java
index 7ecf35d7f..752e599b9 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/Rpm.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/Rpm.java
@@ -204,7 +204,7 @@ public class Rpm extends Task {
/**
* The directory which will have the expected
- * subdirectories, SPECS, SOURCES, BUILD, SRPMS ; optional.
+ * subdirectories, SPECS, SOURCES, BUILD, SRPMS; optional.
* If this isn't specified,
* the <tt>baseDir</tt> value is used
*
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/SchemaValidate.java b/src/main/org/apache/tools/ant/taskdefs/optional/SchemaValidate.java
index a5db9912e..4e1837c31 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/SchemaValidate.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/SchemaValidate.java
@@ -225,7 +225,7 @@ public class SchemaValidate extends XMLValidateTask {
//enable schema
setFeature(XmlConstants.FEATURE_NAMESPACES, true);
if (!enableXercesSchemaValidation() && !enableJAXP12SchemaValidation()) {
- //couldnt use the xerces or jaxp calls
+ //could not use xerces or jaxp calls
throw new BuildException(ERROR_NO_XSD_SUPPORT);
}
@@ -295,7 +295,7 @@ public class SchemaValidate extends XMLValidateTask {
try {
getXmlReader().setFeature(feature, value);
} catch (SAXNotRecognizedException e) {
- log("Not recognizied: " + feature, Project.MSG_VERBOSE);
+ log("Not recognized: " + feature, Project.MSG_VERBOSE);
} catch (SAXNotSupportedException e) {
log("Not supported: " + feature, Project.MSG_VERBOSE);
}
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/Script.java b/src/main/org/apache/tools/ant/taskdefs/optional/Script.java
index de6bf5a36..72b8f87b2 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/Script.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/Script.java
@@ -72,7 +72,7 @@ public class Script extends Task {
}
/**
- * Load the script from an external file ; optional.
+ * Load the script from an external file; optional.
*
* @param fileName the name of the file containing the script source.
*/
@@ -132,7 +132,7 @@ public class Script extends Task {
}
/**
- * Set the encoding of the script from an external file ; optional.
+ * Set the encoding of the script from an external file; optional.
*
* @param encoding the encoding of the file containing the script source.
* @since Ant 1.10.2
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/TraXLiaison.java b/src/main/org/apache/tools/ant/taskdefs/optional/TraXLiaison.java
index f5a6717fd..71c3f0029 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/TraXLiaison.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/TraXLiaison.java
@@ -310,7 +310,6 @@ public class TraXLiaison implements XSLTLiaison4, ErrorListener, XSLTLoggerAware
/**
* Create a new transformer based on the liaison settings
- * @throws Exception thrown if there is an error during creation.
* @see #setStylesheet(java.io.File)
* @see #addParam(java.lang.String, java.lang.String)
* @see #setOutputProperty(java.lang.String, java.lang.String)
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/XMLValidateTask.java b/src/main/org/apache/tools/ant/taskdefs/optional/XMLValidateTask.java
index 8a25341a1..a2d1153b8 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/XMLValidateTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/XMLValidateTask.java
@@ -145,10 +145,10 @@ public class XMLValidateTask extends Task {
* Specify the class name of the SAX parser to be used. (optional)
* @param className should be an implementation of SAX2
* <code>org.xml.sax.XMLReader</code> or SAX2 <code>org.xml.sax.Parser</code>.
- * <p> if className is an implementation of
+ * <p>If className is an implementation of
* <code>org.xml.sax.Parser</code>, {@link #setLenient(boolean)},
- * will be ignored.
- * <p> if not set, the default will be used.
+ * will be ignored.</p>
+ * <p>If not set, the default will be used.</p>
* @see org.xml.sax.XMLReader
* @see org.xml.sax.Parser
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ccm/CCMCreateTask.java b/src/main/org/apache/tools/ant/taskdefs/optional/ccm/CCMCreateTask.java
index a3d2d468d..09b39ab2e 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ccm/CCMCreateTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ccm/CCMCreateTask.java
@@ -134,22 +134,22 @@ public class CCMCreateTask extends Continuus implements ExecuteStreamHandler {
if (getPlatform() != null) {
cmd.createArgument().setValue(FLAG_PLATFORM);
cmd.createArgument().setValue(getPlatform());
- } // end of if ()
+ }
if (getResolver() != null) {
cmd.createArgument().setValue(FLAG_RESOLVER);
cmd.createArgument().setValue(getResolver());
- } // end of if ()
+ }
if (getSubSystem() != null) {
cmd.createArgument().setValue(FLAG_SUBSYSTEM);
cmd.createArgument().setValue("\"" + getSubSystem() + "\"");
- } // end of if ()
+ }
if (getRelease() != null) {
cmd.createArgument().setValue(FLAG_RELEASE);
cmd.createArgument().setValue(getRelease());
- } // end of if ()
+ }
}
/**
@@ -292,7 +292,7 @@ public class CCMCreateTask extends Continuus implements ExecuteStreamHandler {
String s = reader.readLine();
if (s != null) {
log("err " + s, Project.MSG_DEBUG);
- } // end of if ()
+ }
}
}
@@ -312,15 +312,15 @@ public class CCMCreateTask extends Continuus implements ExecuteStreamHandler {
taskstring = taskstring.substring(0, taskstring.lastIndexOf(' ')).trim();
setTask(taskstring);
log("task is " + getTask(), Project.MSG_DEBUG);
- } // end of if ()
+ }
} catch (NullPointerException npe) {
- log("error procession stream , null pointer exception", Project.MSG_ERR);
+ log("error procession stream, null pointer exception", Project.MSG_ERR);
log(StringUtils.getStackTrace(npe), Project.MSG_ERR);
throw new BuildException(npe);
} catch (Exception e) {
log("error procession stream " + e.getMessage(), Project.MSG_ERR);
throw new BuildException(e.getMessage());
- } // end of try-catch
+ }
}
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ccm/CCMReconfigure.java b/src/main/org/apache/tools/ant/taskdefs/optional/ccm/CCMReconfigure.java
index a45f8bff6..15ce99b1d 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ccm/CCMReconfigure.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ccm/CCMReconfigure.java
@@ -87,11 +87,11 @@ public class CCMReconfigure extends Continuus {
if (isRecurse()) {
cmd.createArgument().setValue(FLAG_RECURSE);
- } // end of if ()
+ }
if (isVerbose()) {
cmd.createArgument().setValue(FLAG_VERBOSE);
- } // end of if ()
+ }
if (getCcmProject() != null) {
cmd.createArgument().setValue(FLAG_PROJECT);
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCCheckin.java b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCCheckin.java
index 3e6584814..8d2c66cd5 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCCheckin.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCCheckin.java
@@ -29,6 +29,7 @@ import org.apache.tools.ant.types.Commandline;
* <p>
* The following attributes are interpreted:
* <table border="1">
+ * <caption>Task attributes</caption>
* <tr>
* <th>Attribute</th>
* <th>Values</th>
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCCheckout.java b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCCheckout.java
index afcdcbc24..795a09824 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCCheckout.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCCheckout.java
@@ -30,6 +30,7 @@ import org.apache.tools.ant.types.Commandline;
* <p>
* The following attributes are interpreted:
* <table border="1">
+ * <caption>Task attributes</caption>
* <tr>
* <th>Attribute</th>
* <th>Values</th>
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCLock.java b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCLock.java
index c2e36e94d..6e6cb0d57 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCLock.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCLock.java
@@ -37,6 +37,7 @@ import org.apache.tools.ant.types.Commandline;
* <p>
* The following attributes are interpreted:
* <table border="1">
+ * <caption>Task attributes</caption>
* <tr>
* <th>Attribute</th>
* <th>Values</th>
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkattr.java b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkattr.java
index c428af02d..b83e16265 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkattr.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkattr.java
@@ -29,6 +29,7 @@ import org.apache.tools.ant.types.Commandline;
* <p>
* The following attributes are interpreted:
* <table border="1">
+ * <caption>Task attributes</caption>
* <tr>
* <th>Attribute</th>
* <th>Values</th>
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkbl.java b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkbl.java
index 94cb5a10a..bd597b162 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkbl.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkbl.java
@@ -28,6 +28,7 @@ import org.apache.tools.ant.types.Commandline;
* <p>
* The following attributes are interpreted:
* <table border="1">
+ * <caption>Task attributes</caption>
* <tr>
* <th>Attribute</th>
* <th>Values</th>
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkdir.java b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkdir.java
index 09af65e72..c37e82c39 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkdir.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkdir.java
@@ -29,6 +29,7 @@ import org.apache.tools.ant.types.Commandline;
* <p>
* The following attributes are interpreted:
* <table border="1">
+ * <caption>Task attributes</caption>
* <tr>
* <th>Attribute</th>
* <th>Values</th>
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkelem.java b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkelem.java
index 72a736aa0..bdab620c5 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkelem.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkelem.java
@@ -29,6 +29,7 @@ import org.apache.tools.ant.types.Commandline;
* <p>
* The following attributes are interpreted:
* <table border="1">
+ * <caption>Task attributes</caption>
* <tr>
* <th>Attribute</th>
* <th>Values</th>
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMklabel.java b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMklabel.java
index c75dc6d56..d873e9003 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMklabel.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMklabel.java
@@ -28,6 +28,7 @@ import org.apache.tools.ant.types.Commandline;
* <p>
* The following attributes are interpreted:
* <table border="1">
+ * <caption>Task attributes</caption>
* <tr>
* <th>Attribute</th>
* <th>Values</th>
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMklbtype.java b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMklbtype.java
index 87e213755..eb0745861 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMklbtype.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCMklbtype.java
@@ -28,6 +28,7 @@ import org.apache.tools.ant.types.Commandline;
* <p>
* The following attributes are interpreted:
* <table border="1">
+ * <caption>Task attributes</caption>
* <tr>
* <th>Attribute</th>
* <th>Values</th>
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCRmtype.java b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCRmtype.java
index c699de126..1cf080481 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCRmtype.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCRmtype.java
@@ -28,6 +28,7 @@ import org.apache.tools.ant.types.Commandline;
* <p>
* The following attributes are interpreted:
* <table border="1">
+ * <caption>Task attributes</caption>
* <tr>
* <th>Attribute</th>
* <th>Values</th>
@@ -41,7 +42,7 @@ import org.apache.tools.ant.types.Commandline;
* eltype element type<br>
* hltype hyperlink type<br>
* lbtype label type<br>
- * trtype trigger type<br>
+ * trtype trigger type
* </td>
* <td>Yes</td>
* <tr>
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUnCheckout.java b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUnCheckout.java
index 266c0984c..b7ee573da 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUnCheckout.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUnCheckout.java
@@ -29,6 +29,7 @@ import org.apache.tools.ant.types.Commandline;
* <p>
* The following attributes are interpreted:
* <table border="1">
+ * <caption>Task attributes</caption>
* <tr>
* <th>Attribute</th>
* <th>Values</th>
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUnlock.java b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUnlock.java
index dbb5f12af..4da01f65a 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUnlock.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUnlock.java
@@ -36,6 +36,7 @@ import org.apache.tools.ant.types.Commandline;
* <p>
* The following attributes are interpreted:
* <table border="1">
+ * <caption>Task attributes</caption>
* <tr>
* <th>Attribute</th>
* <th>Values</th>
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUpdate.java b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUpdate.java
index 96afe8d74..6fd91f4c2 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUpdate.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUpdate.java
@@ -29,6 +29,7 @@ import org.apache.tools.ant.types.Commandline;
* <p>
* The following attributes are interpreted:
* <table border="1">
+ * <caption>Task attributes</caption>
* <tr>
* <th>Attribute</th>
* <th>Values</th>
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/depend/Depend.java b/src/main/org/apache/tools/ant/taskdefs/optional/depend/Depend.java
index cb3da261f..3b6d34102 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/depend/Depend.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/depend/Depend.java
@@ -510,7 +510,7 @@ public class Depend extends MatchingTask {
* warn when a class is out of date, but not deleted as its source is unknown.
* MSG_WARN is the normal level, but we downgrade to MSG_VERBOSE for RMI files
* if {@link #warnOnRmiStubs is false}
- * @param affectedClassInfo info about the affectd class
+ * @param affectedClassInfo info about the affected class
* @param affectedClass the name of the affected .class file
* @param className the file that is triggering the out of dateness
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/depend/DirectoryIterator.java b/src/main/org/apache/tools/ant/taskdefs/optional/depend/DirectoryIterator.java
index 71379188f..98c91a9f7 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/depend/DirectoryIterator.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/depend/DirectoryIterator.java
@@ -19,14 +19,14 @@ package org.apache.tools.ant.taskdefs.optional.depend;
import java.io.File;
import java.io.IOException;
+import java.io.InputStream;
+import java.nio.file.Files;
import java.util.ArrayDeque;
import java.util.Arrays;
import java.util.Collections;
import java.util.Deque;
import java.util.Iterator;
import java.util.List;
-import java.io.InputStream;
-import java.nio.file.Files;
/**
* An iterator which iterates through the contents of a java directory. The
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/depend/constantpool/InterfaceMethodRefCPInfo.java b/src/main/org/apache/tools/ant/taskdefs/optional/depend/constantpool/InterfaceMethodRefCPInfo.java
index 4f7246cb0..5a3ba0f82 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/depend/constantpool/InterfaceMethodRefCPInfo.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/depend/constantpool/InterfaceMethodRefCPInfo.java
@@ -99,7 +99,7 @@ public class InterfaceMethodRefCPInfo extends ConstantPoolEntry {
return "InterfaceMethod : Class = " + interfaceMethodClassName
+ ", name = " + interfaceMethodName + ", type = "
+ interfaceMethodType;
- }
+ }
return "InterfaceMethod : Class index = " + classIndex
+ ", name and type index = " + nameAndTypeIndex;
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/depend/constantpool/MethodHandleCPInfo.java b/src/main/org/apache/tools/ant/taskdefs/optional/depend/constantpool/MethodHandleCPInfo.java
index e304d4170..f8fbbdb04 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/depend/constantpool/MethodHandleCPInfo.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/depend/constantpool/MethodHandleCPInfo.java
@@ -29,7 +29,7 @@ public class MethodHandleCPInfo extends ConstantPoolEntry {
/** reference kind **/
private ReferenceKind referenceKind;
- /** Must be a valid index into the constant pool tabel. */
+ /** Must be a valid index into the constant pool table. */
private int referenceIndex;
/**
* the index into the constant pool which defined the name and type
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/EjbJar.java b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/EjbJar.java
index 948da53be..672a0945a 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/EjbJar.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/EjbJar.java
@@ -198,7 +198,7 @@ public class EjbJar extends MatchingTask {
* Stores a handle to the directory to put the Jar files in. This is
* only used by the generic deployment descriptor tool which is created
* if no other deployment descriptor tools are provided. Normally each
- * deployment tool will specify the desitination dir itself.
+ * deployment tool will specify the destination dir itself.
*/
private File destDir;
@@ -482,11 +482,11 @@ public class EjbJar extends MatchingTask {
/**
* Sets the CMP version.
+ * Must be either <code>1.0</code> or <code>2.0</code>.
+ * Default is <code>1.0</code>.
+ * Initially, only the JBoss implementation does something specific for CMP 2.0.
*
* @param version CMP version.
- * Must be either <code>1.0</code> or <code>2.0</code>.<br/>
- * Default is <code>1.0</code>.<br/>
- * Initially, only the JBoss implementation does something specific for CMP 2.0.<br/>
* @since ant 1.6
*/
public void setCmpversion(CMPVersion version) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java
index d25e3c35d..bff47e980 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java
@@ -385,7 +385,7 @@ public class GenericDeploymentTool implements EJBDeploymentTool {
try {
handler = getDescriptorHandler(config.srcDir);
- // Retrive the files to be added to JAR from EJB descriptor
+ // Retreive the files to be added to JAR from EJB descriptor
Hashtable<String, File> ejbFiles = parseEjbFiles(descriptorFileName, saxParser);
// Add any support classes specified in the build file
@@ -616,7 +616,7 @@ public class GenericDeploymentTool implements EJBDeploymentTool {
/**
* Add any vendor specific files which should be included in the
* EJB Jar.
- * @param ejbFiles a hashtable entryname -> file.
+ * @param ejbFiles a hashtable entryname -&gt; file.
* @param ddPrefix a prefix to use.
*/
protected void addVendorFiles(Hashtable<String, File> ejbFiles, String ddPrefix) {
@@ -626,7 +626,9 @@ public class GenericDeploymentTool implements EJBDeploymentTool {
/**
* Get the vendor specific name of the Jar that will be output. The modification date
* of this jar will be checked against the dependent bean classes.
+ *
* @param baseName the basename to use.
+ * @return File
*/
File getVendorOutputJarFile(String baseName) {
return new File(destDir, baseName + genericJarSuffix);
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/IPlanetDeploymentTool.java b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/IPlanetDeploymentTool.java
index 181720f78..fd7517f05 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/IPlanetDeploymentTool.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/IPlanetDeploymentTool.java
@@ -35,9 +35,8 @@ import org.xml.sax.SAXException;
* <code>ejbjar</code> task. If only stubs and skeletons need to be generated
* (in other words, if no JAR file needs to be created), refer to the
* <code>iplanet-ejbc</code> task and the <code>IPlanetEjbcTask</code> class.
- * <p>
- * The following attributes may be specified by the user:
- * <ul>
+ * <p>The following attributes may be specified by the user:</p>
+ * <ul>
* <li><i>destdir</i> -- The base directory into which the generated JAR
* files will be written. Each JAR file is written
* in directories which correspond to their location
@@ -72,15 +71,14 @@ import org.xml.sax.SAXException;
* <li><i>suffix</i> -- String value appended to the JAR filename when
* creating each JAR. This attribute is not required
* (if omitted, it defaults to ".jar").
- * </ul>
- * <p>
- * For each EJB descriptor found in the "ejbjar" parent task, this deployment
+ * </ul>
+ * <p>For each EJB descriptor found in the "ejbjar" parent task, this deployment
* tool will locate the three classes that comprise the EJB. If these class
* files cannot be located in the specified <code>srcdir</code> directory, the
* task will fail. The task will also attempt to locate the EJB stubs and
* skeletons in this directory. If found, the timestamps on the stubs and
* skeletons will be checked to ensure they are up to date. Only if these files
- * cannot be found or if they are out of date will ejbc be called.
+ * cannot be found or if they are out of date will ejbc be called.</p>
*
* @see IPlanetEjbc
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/IPlanetEjbc.java b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/IPlanetEjbc.java
index c15a07a54..3e1f21e09 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/IPlanetEjbc.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/IPlanetEjbc.java
@@ -57,16 +57,14 @@ import org.apache.tools.ant.util.StringUtils;
* and skeletons in the specified destination directory. Only if the stubs and
* skeletons cannot be found or if they're out of date will the iPlanet
* Application Server ejbc utility be run.
- * <p>
- * Because this class (and it's assorted inner classes) may be bundled into the
+ * <p>Because this class (and it's assorted inner classes) may be bundled into the
* iPlanet Application Server distribution at some point (and removed from the
* Ant distribution), the class has been written to be independent of all
* Ant-specific classes. It is also for this reason (and to avoid cluttering
* the Apache Ant source files) that this utility has been packaged into a
- * single source file.
- * <p>
- * For more information on Ant Tasks for iPlanet Application Server, see the
- * <code>IPlanetDeploymentTool</code> and <code>IPlanetEjbcTask</code> classes.
+ * single source file.</p>
+ * <p>For more information on Ant Tasks for iPlanet Application Server, see the
+ * <code>IPlanetDeploymentTool</code> and <code>IPlanetEjbcTask</code> classes.</p>
*
* @see IPlanetDeploymentTool
* @see IPlanetEjbcTask
@@ -318,15 +316,12 @@ public class IPlanetEjbc {
} catch (IOException e) {
System.out.println("An IOException has occurred while reading the "
+ "XML descriptors (" + e.getMessage() + ").");
- return;
} catch (SAXException e) {
System.out.println("A SAXException has occurred while reading the "
+ "XML descriptors (" + e.getMessage() + ").");
- return;
} catch (IPlanetEjbc.EjbcException e) {
System.out.println("An error has occurred while executing the ejbc "
+ "utility (" + e.getMessage() + ").");
- return;
}
}
@@ -398,7 +393,7 @@ public class IPlanetEjbc {
private void callEjbc(String[] arguments) {
- /* If an iAS home directory is specified, prepend it to the commmand */
+ /* If an iAS home directory is specified, prepend it to the command */
String command;
if (iasHomeDir == null) {
command = "";
@@ -1060,7 +1055,8 @@ public class IPlanetEjbc {
if (hasession && (!beantype.equals(STATEFUL_SESSION))) {
System.out.println(
- "Highly available stubs and skeletons may only be generated for a Stateful Session Bean -- the \"hasession\" attribute will be ignored for the "
+ "Highly available stubs and skeletons may only be generated for a Stateful Session Bean"
+ + "-- the \"hasession\" attribute will be ignored for the "
+ name + " EJB.");
}
@@ -1106,12 +1102,9 @@ public class IPlanetEjbc {
* implementation) and returns the modification timestamp for the
* "oldest" class.
*
- * @param classpath The classpath to be used to find the source EJB
- * classes. If <code>null</code>, the system classpath
- * is used.
+ * @param buildDir The directory to be used to find the source EJB
+ * classes.
* @return The modification timestamp for the "oldest" EJB source class.
- * @throws BuildException If one of the EJB source classes cannot be
- * found on the classpath.
*/
private long sourceClassesModified(File buildDir) {
long latestModified; // The timestamp of the "newest" class
@@ -1198,16 +1191,14 @@ public class IPlanetEjbc {
/**
* Examines each of the EJB stubs and skeletons in the destination
* directory and returns the modification timestamp for the "oldest"
- * class. If one of the stubs or skeletons cannot be found, <code>-1
- * </code> is returned.
+ * class. If one of the stubs or skeletons cannot be found,
+ * <code>-1</code> is returned.
*
- * @param dest The directory in which the EJB stubs and skeletons are
+ * @param destDir The directory in which the EJB stubs and skeletons are
* stored.
* @return The modification timestamp for the "oldest" EJB stub or
- * skeleton. If one of the classes cannot be found, <code>-1
- * </code> is returned.
- * @throws BuildException If the canonical path of the destination
- * directory cannot be found.
+ * skeleton. If one of the classes cannot be found,
+ * <code>-1</code> is returned.
*/
private long destClassesModified(File destDir) {
String[] classnames = classesToGenerate(); // List of all stubs & skels
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/JbossDeploymentTool.java b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/JbossDeploymentTool.java
index c3a48ecae..895129293 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/JbossDeploymentTool.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/JbossDeploymentTool.java
@@ -75,7 +75,6 @@ public class JbossDeploymentTool extends GenericDeploymentTool {
} else {
log("Unable to locate jboss cmp descriptor. It was expected to be in "
+ jbossCMPD.getPath(), Project.MSG_VERBOSE);
- return;
}
}
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/OrionDeploymentTool.java b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/OrionDeploymentTool.java
index 38e2ae3cc..03db7c591 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/OrionDeploymentTool.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/OrionDeploymentTool.java
@@ -35,13 +35,15 @@ public class OrionDeploymentTool extends GenericDeploymentTool {
protected static final String ORION_DD = "orion-ejb-jar.xml";
-
/** Instance variable that stores the suffix for the jboss jarfile. */
private String jarSuffix = ".jar";
/**
* Add any vendor specific files which should be included in the
* EJB Jar.
+ *
+ * @param ejbFiles Hashtable&lt;String, File&gt;
+ * @param baseName String
*/
protected void addVendorFiles(Hashtable ejbFiles, String baseName) {
String ddPrefix = (usingBaseJarName() ? "" : baseName );
@@ -51,7 +53,6 @@ public class OrionDeploymentTool extends GenericDeploymentTool {
ejbFiles.put(META_DIR + ORION_DD, orionDD);
} else {
log("Unable to locate Orion deployment descriptor. It was expected to be in " + orionDD.getPath(), Project.MSG_WARN);
- return;
}
}
@@ -59,6 +60,8 @@ public class OrionDeploymentTool extends GenericDeploymentTool {
/**
* Get the vendor specific name of the Jar that will be output. The modification date
* of this jar will be checked against the dependent bean classes.
+ *
+ * @param baseName String
*/
File getVendorOutputJarFile(String baseName) {
return new File(getDestDir(), baseName + jarSuffix);
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WebsphereDeploymentTool.java b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WebsphereDeploymentTool.java
index 6acdc4781..2ea7279d5 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WebsphereDeploymentTool.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WebsphereDeploymentTool.java
@@ -156,7 +156,7 @@ public class WebsphereDeploymentTool extends GenericDeploymentTool {
this.wasClasspath = wasClasspath;
}
- /** Sets the DB Vendor for the Entity Bean mapping ; optional.
+ /** Sets the DB Vendor for the Entity Bean mapping; optional.
* <p>
* Valid options can be obtained by running the following command:
* <code>
@@ -258,7 +258,7 @@ public class WebsphereDeploymentTool extends GenericDeploymentTool {
}
/**
- * Flag to use the WebSphere 3.5 compatible mapping rules ; optional, default false.
+ * Flag to use the WebSphere 3.5 compatible mapping rules; optional, default false.
*
* @param attr a <code>boolean</code> value.
*/
@@ -381,7 +381,7 @@ public class WebsphereDeploymentTool extends GenericDeploymentTool {
/**
* Add any vendor specific files which should be included in the EJB Jar.
- * @param ejbFiles a hashtable entryname -> file.
+ * @param ejbFiles a hashtable entryname -&gt; file.
* @param baseName a prefix to use.
*/
@Override
@@ -441,7 +441,7 @@ public class WebsphereDeploymentTool extends GenericDeploymentTool {
log("Unable to locate the websphere Schema: "
+ websphereSchema.getPath(), Project.MSG_VERBOSE);
}
- // Theres nothing else to see here...keep moving sonny
+ // There is nothing else to see here...keep moving sonny
} catch (Exception e) {
throw new BuildException(
"Exception while adding Vendor specific files: "
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/extension/Compatability.java b/src/main/org/apache/tools/ant/taskdefs/optional/extension/Compatability.java
index 1d748e451..262753cc7 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/extension/Compatability.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/extension/Compatability.java
@@ -23,7 +23,7 @@ package org.apache.tools.ant.taskdefs.optional.extension;
* of object.
*
* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
- * This file is from excalibur.extension package. Dont edit this file
+ * This file is from excalibur.extension package. Do not edit this file
* directly as there is no unit tests to make sure it is operational
* in ant. Edit file in excalibur and run tests there before changing
* ants file.
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/extension/Compatibility.java b/src/main/org/apache/tools/ant/taskdefs/optional/extension/Compatibility.java
index 5c3240dcb..8e1ef163b 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/extension/Compatibility.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/extension/Compatibility.java
@@ -23,7 +23,7 @@ package org.apache.tools.ant.taskdefs.optional.extension;
* of object.
*
* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
- * This file is from excalibur.extension package. Dont edit this file
+ * This file is from excalibur.extension package. Do not edit this file
* directly as there is no unit tests to make sure it is operational
* in ant. Edit file in excalibur and run tests there before changing
* ants file.
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/extension/ExtensionUtil.java b/src/main/org/apache/tools/ant/taskdefs/optional/extension/ExtensionUtil.java
index 7ed5fb991..4be001cf2 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/extension/ExtensionUtil.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/extension/ExtensionUtil.java
@@ -45,7 +45,7 @@ public final class ExtensionUtil {
/**
* Convert a list of extensionAdapter objects to extensions.
*
- * @param adapters the list of ExtensionAdapterss to add to convert
+ * @param adapters the list of ExtensionAdapters to add to convert
* @throws BuildException if an error occurs
*/
static ArrayList<Extension> toExtensions(final List<? extends ExtensionAdapter> adapters)
@@ -58,7 +58,7 @@ public final class ExtensionUtil {
* Generate a list of extensions from a specified fileset.
*
* @param libraries the list to add extensions to
- * @param fileset the filesets containing librarys
+ * @param fileset the filesets containing libraries
* @throws BuildException if an error occurs
*/
static void extractExtensions(final Project project,
@@ -180,7 +180,7 @@ public final class ExtensionUtil {
*
* @param file the file
* @return the manifest
- * @throws BuildException if errror occurs (file doesn't exist,
+ * @throws BuildException if error occurs (file doesn't exist,
* file not a jar, manifest doesn't exist in file)
*/
static Manifest getManifest(final File file)
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/extension/JarLibAvailableTask.java b/src/main/org/apache/tools/ant/taskdefs/optional/extension/JarLibAvailableTask.java
index 84ba74add..cde8834d2 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/extension/JarLibAvailableTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/extension/JarLibAvailableTask.java
@@ -38,7 +38,7 @@ public class JarLibAvailableTask extends Task {
private File libraryFile;
/**
- * Filesets specifying all the librarys
+ * Filesets specifying all the libraries
* to display information about.
*/
private final List<ExtensionSet> extensionFileSets = new Vector<>();
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/extension/JarLibDisplayTask.java b/src/main/org/apache/tools/ant/taskdefs/optional/extension/JarLibDisplayTask.java
index 0f316573f..82820335f 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/extension/JarLibDisplayTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/extension/JarLibDisplayTask.java
@@ -46,7 +46,7 @@ public class JarLibDisplayTask extends Task {
private File libraryFile;
/**
- * Filesets specifying all the librarys
+ * Filesets specifying all the libraries
* to display information about.
*/
private final List<FileSet> libraryFileSets = new Vector<>();
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/extension/JarLibManifestTask.java b/src/main/org/apache/tools/ant/taskdefs/optional/extension/JarLibManifestTask.java
index 6e5329448..78343092b 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/extension/JarLibManifestTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/extension/JarLibManifestTask.java
@@ -247,8 +247,8 @@ public final class JarLibManifestTask extends Task {
* Also use specified extensionKey so that can generate list of
* optional dependencies as well.
*
- * @param size the number of librarys to list
- * @param listPrefix the prefix for all librarys
+ * @param size the number of libraries to list
+ * @param listPrefix the prefix for all libraries
* @param attributes the attributes to add key-value to
* @param extensionKey the key to use
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/extension/JarLibResolveTask.java b/src/main/org/apache/tools/ant/taskdefs/optional/extension/JarLibResolveTask.java
index 5cdc32fc6..e1be0553a 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/extension/JarLibResolveTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/extension/JarLibResolveTask.java
@@ -54,7 +54,7 @@ public class JarLibResolveTask extends Task {
/**
* Flag to indicate that you should check that
- * the librarys resolved actually contain
+ * the libraries resolved actually contain
* extension and if they don't then raise
* an exception.
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/extension/LibFileSet.java b/src/main/org/apache/tools/ant/taskdefs/optional/extension/LibFileSet.java
index bade00f32..3a877ac82 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/extension/LibFileSet.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/extension/LibFileSet.java
@@ -41,7 +41,7 @@ public class LibFileSet extends FileSet {
private boolean includeImpl;
/**
- * String that is the base URL for the librarys
+ * String that is the base URL for the libraries
* when constructing the "Implementation-URL"
* attribute. For instance setting the base to
* "http://jakarta.apache.org/avalon/libs/" and then
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/extension/LibraryDisplayer.java b/src/main/org/apache/tools/ant/taskdefs/optional/extension/LibraryDisplayer.java
index d3eb0566b..0d2af0d08 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/extension/LibraryDisplayer.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/extension/LibraryDisplayer.java
@@ -27,7 +27,7 @@ import org.apache.tools.ant.BuildException;
/**
* Utility class to output the information in a jar relating
- * to "Optional Packages" (formely known as "Extensions")
+ * to "Optional Packages" (formerly known as "Extensions")
* and Package Specifications.
*
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/extension/Specification.java b/src/main/org/apache/tools/ant/taskdefs/optional/extension/Specification.java
index ea8405ce3..f1d33e29f 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/extension/Specification.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/extension/Specification.java
@@ -445,7 +445,7 @@ public final class Specification {
* Combine all specifications objects that are identical except
* for the sections.
*
- * <p>Note this is very inefficent and should probably be fixed
+ * <p>Note this is very inefficient and should probably be fixed
* in the future.</p>
*
* @param list the array of results to trim
@@ -475,8 +475,8 @@ public final class Specification {
/**
* Test if two specifications are equal except for their sections.
*
- * @param specification one specificaiton
- * @param other the ohter specification
+ * @param specification one specification
+ * @param other the other specification
* @return true if two specifications are equal except for their
* sections, else false
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/i18n/Translate.java b/src/main/org/apache/tools/ant/taskdefs/optional/i18n/Translate.java
index 3ec7d77a0..edcced8a1 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/i18n/Translate.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/i18n/Translate.java
@@ -356,7 +356,7 @@ public class Translate extends MatchingTask {
* basebundlename + "_" + language2 + "_" + country2
* basebundlename + "_" + language2
*
- * To the generated name, a ".properties" string is appeneded and
+ * To the generated name, a ".properties" string is appended and
* once this file is located, it is treated just like a properties file
* but with bundle encoding also considered while loading.
*/
@@ -411,7 +411,7 @@ public class Translate extends MatchingTask {
log(propsFile + " not found.", Project.MSG_DEBUG);
//if all resource files associated with this bundle
//have been scanned for and still not able to
- //find a single resrouce file, throw exception
+ //find a single resource file, throw exception
if (!loaded && checkLoaded) {
throw new BuildException(ioe.getMessage(), getLocation());
}
@@ -476,7 +476,7 @@ public class Translate extends MatchingTask {
* and endToken. The values for these keys are looked up from
* the hashtable and substituted. If the hashtable doesn't
* contain the key, they key itself is used as the value.
- * Detination files and directories are created as needed.
+ * Destination files and directories are created as needed.
* The destination file is overwritten only if
* the forceoverwritten attribute is set to true if
* the source file or any associated bundle resource file is
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/image/Image.java b/src/main/org/apache/tools/ant/taskdefs/optional/image/Image.java
index 53b234b05..ac4762eeb 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/image/Image.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/image/Image.java
@@ -211,6 +211,11 @@ public class Image extends MatchingTask {
/**
* Executes all the chained ImageOperations on the files inside
* the directory.
+ * @param srcDir File
+ * @param srcNames String[]
+ * @param dstDir File
+ * @param mapper FileNameMapper
+ * @return int
* @since Ant 1.8.0
*/
public int processDir(final File srcDir, final String[] srcNames,
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/j2ee/AbstractHotDeploymentTool.java b/src/main/org/apache/tools/ant/taskdefs/optional/j2ee/AbstractHotDeploymentTool.java
index 21d847829..b5296bdfb 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/j2ee/AbstractHotDeploymentTool.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/j2ee/AbstractHotDeploymentTool.java
@@ -27,17 +27,17 @@ import org.apache.tools.ant.types.Path;
*
* Subclassing this class for a vendor specific tool involves the
* following.
- * <ol><li>Implement the <code>isActionValid()<code> method to insure the
- * action supplied as the "action" attribute of ServerDeploy is valid.
+ * <ol><li>Implement the <code>isActionValid()</code> method to insure the
+ * action supplied as the "action" attribute of ServerDeploy is valid.</li>
* <li>Implement the <code>validateAttributes()</code> method to insure
- * all required attributes are supplied, and are in the correct format.
+ * all required attributes are supplied, and are in the correct format.</li>
* <li>Add a <code>add&lt;TOOL&gt;</code> method to the ServerDeploy
* class. This method will be called when Ant encounters a
* <code>add&lt;TOOL&gt;</code> task nested in the
- * <code>serverdeploy</code> task.
+ * <code>serverdeploy</code> task.</li>
* <li>Define the <code>deploy</code> method. This method should perform
* whatever task it takes to hot-deploy the component. IE: spawn a JVM and
- * run class, exec a native executable, run Java code...
+ * run class, exec a native executable, run Java code...</li></ol>
*
* @see org.apache.tools.ant.taskdefs.optional.j2ee.HotDeploymentTool
* @see org.apache.tools.ant.taskdefs.optional.j2ee.ServerDeploy
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/j2ee/JonasHotDeploymentTool.java b/src/main/org/apache/tools/ant/taskdefs/optional/j2ee/JonasHotDeploymentTool.java
index 6e7f11882..f5c908c4d 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/j2ee/JonasHotDeploymentTool.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/j2ee/JonasHotDeploymentTool.java
@@ -143,17 +143,17 @@ public class JonasHotDeploymentTool extends GenericHotDeploymentTool implements
}
/**
- * Validates the passed in attributes. <p>
+ * Validates the passed in attributes.
*
- * The rules are:
- * <ol>
+ * <p>The rules are:</p>
+ * <ol>
* <li> If action is "deploy" or "update" the "application"
- * and "source" attributes must be supplied.
+ * and "source" attributes must be supplied.</li>
* <li> If action is "delete" or "undeploy" the
- * "application" attribute must be supplied.
+ * "application" attribute must be supplied.</li>
+ * </ol>
*
- *@exception BuildException Description
- * of Exception
+ * @exception BuildException if something goes wrong
*/
@Override
public void validateAttributes() throws BuildException {
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/j2ee/WebLogicHotDeploymentTool.java b/src/main/org/apache/tools/ant/taskdefs/optional/j2ee/WebLogicHotDeploymentTool.java
index e186dcb46..2838c2d94 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/j2ee/WebLogicHotDeploymentTool.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/j2ee/WebLogicHotDeploymentTool.java
@@ -28,7 +28,7 @@ import org.apache.tools.ant.taskdefs.Java;
* This task assumes the archive (EAR, JAR, or WAR) file has been
* assembled and is supplied as the "source" attribute.
* <p>In the end, this task assembles the commandline parameters
- * and runs the weblogic.deploy tool in a separate JVM.
+ * and runs the weblogic.deploy tool in a separate JVM.</p>
*
* @see org.apache.tools.ant.taskdefs.optional.j2ee.HotDeploymentTool
* @see org.apache.tools.ant.taskdefs.optional.j2ee.AbstractHotDeploymentTool
@@ -57,7 +57,7 @@ public class WebLogicHotDeploymentTool extends AbstractHotDeploymentTool
* Perform the actual deployment.
* For this implementation, a JVM is spawned and the weblogic.deploy
* tools is executed.
- * @exception org.apache.tools.ant.BuildException if the attributes are invalid or incomplete.
+ * @exception BuildException if the attributes are invalid or incomplete.
*/
@Override
public void deploy() {
@@ -73,12 +73,13 @@ public class WebLogicHotDeploymentTool extends AbstractHotDeploymentTool
/**
* Validates the passed in attributes.
- * <p>The rules are:
+ * <p>The rules are:</p>
* <ol><li>If action is "deploy" or "update" the "application" and "source"
- * attributes must be supplied.
+ * attributes must be supplied.</li>
* <li>If action is "delete" or "undeploy" the "application" attribute must
- * be supplied.
- * @exception org.apache.tools.ant.BuildException if the attributes are invalid or incomplete
+ * be supplied.</li></ol>
+ *
+ * @exception BuildException if the attributes are invalid or incomplete
*/
@Override
public void validateAttributes() throws BuildException {
@@ -114,9 +115,9 @@ public class WebLogicHotDeploymentTool extends AbstractHotDeploymentTool
}
/**
- * Builds the arguments to pass to weblogic.deploy according to the
- * supplied action.
- * @return A String containing the arguments for the weblogic.deploy tool.
+ * Builds the arguments to pass to weblogic.deploy according to the
+ * supplied action.
+ * @return A String containing the arguments for the weblogic.deploy tool.
* @throws BuildException if there is an error.
*/
public String getArguments() throws BuildException {
@@ -135,9 +136,9 @@ public class WebLogicHotDeploymentTool extends AbstractHotDeploymentTool
}
/**
- * Determines if the action supplied is valid.
- * <p>Valid actions are contained in the static array VALID_ACTIONS
- * @return true if the action attribute is valid, false if not.
+ * Determines if the action supplied is valid.
+ * <p>Valid actions are contained in the static array VALID_ACTIONS</p>
+ * @return true if the action attribute is valid, false if not.
*/
@Override
protected boolean isActionValid() {
@@ -160,7 +161,7 @@ public class WebLogicHotDeploymentTool extends AbstractHotDeploymentTool
protected StringBuffer buildArgsPrefix() {
ServerDeploy task = getTask();
// constructs the "-url <url> -debug <action> <password>" portion
- // of the commmand line
+ // of the command line
return new StringBuffer(STRING_BUFFER_SIZE)
.append((getServer() != null)
? "-url " + getServer()
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/javacc/JJTree.java b/src/main/org/apache/tools/ant/taskdefs/optional/javacc/JJTree.java
index e3bca20cc..433ce22f1 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/javacc/JJTree.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/javacc/JJTree.java
@@ -338,10 +338,10 @@ public class JJTree extends Task {
* handled as if relative of this -OUTPUT_DIRECTORY. Thus when the
* -OUTPUT_FILE is absolute or contains a drive letter we have a problem.
*
- * @param destFile
- * @param outputDir
+ * @param destFile String
+ * @param outputDir String
* @return validation file, relative if possible; <tt>null</tt> if not set
- * @throws BuildException
+ * @throws BuildException if something goes wrong
*/
private String validateOutputFile(String destFile,
String outputDir)
@@ -395,7 +395,7 @@ public class JJTree extends Task {
/**
* Determine root directory for a given file.
*
- * @param file
+ * @param file File
* @return file's root directory
*/
private File getRoot(File file) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java b/src/main/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java
index 331c97558..c1febfa7f 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java
@@ -30,6 +30,7 @@ import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Optional;
+
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.Task;
@@ -162,7 +163,7 @@ public class JDependTask extends Task {
* If true, forks into a new JVM. Default: false.
*
* @param value <tt>true</tt> if a JVM should be forked,
- * otherwise <tt>false<tt>
+ * otherwise <tt>false</tt>
*/
public void setFork(boolean value) {
fork = value;
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/jlink/JlinkTask.java b/src/main/org/apache/tools/ant/taskdefs/optional/jlink/JlinkTask.java
index 4e4b0aaaf..db8b3a333 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/jlink/JlinkTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/jlink/JlinkTask.java
@@ -34,8 +34,7 @@ import org.apache.tools.ant.types.Path;
* org.apache.tools.ant.taskdefs.optional.jlink.ClassNameReader
* support this class.</p>
*
- * <p>For example:
- * <code>
+ * <p>For example:</p>
* <pre>
* &lt;jlink compress=&quot;false&quot; outfile=&quot;out.jar&quot;/&gt;
* &lt;mergefiles&gt;
@@ -48,7 +47,6 @@ import org.apache.tools.ant.types.Path;
* &lt;/addfiles&gt;
* &lt;/jlink&gt;
* </pre>
- * </code>
*
* @ant.task ignore="true"
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java b/src/main/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java
index 4af9f3d4e..c5caca184 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java
@@ -35,22 +35,22 @@ import org.apache.tools.ant.types.Reference;
/**
* Runs a JSP compiler.
*
- * <p> This task takes the given jsp files and compiles them into java
- * files. It is then up to the user to compile the java files into classes.
+ * <p>This task takes the given jsp files and compiles them into java
+ * files. It is then up to the user to compile the java files into classes.</p>
*
- * <p> The task requires the srcdir and destdir attributes to be
+ * <p>The task requires the srcdir and destdir attributes to be
* set. This Task is a MatchingTask, so the files to be compiled can be
* specified using includes/excludes attributes or nested include/exclude
* elements. Optional attributes are verbose (set the verbosity level passed
* to jasper), package (name of the destination package for generated java
* classes and classpath (the classpath to use when running the jsp
- * compiler).
- * <p> This task supports the nested elements classpath (A Path) and
- * classpathref (A Reference) which can be used in preference to the
+ * compiler).</p>
+ * <p>This task supports the nested elements classpath (a Path) and
+ * classpathref (a Reference) which can be used in preference to the
* attribute classpath, if the jsp compiler is not already in the ant
- * classpath.
+ * classpath.</p>
*
- * <p><h4>Usage</h4>
+ * <h2>Usage</h2>
* <pre>
* &lt;jspc srcdir="${basedir}/src/war"
* destdir="${basedir}/gensrc"
@@ -60,7 +60,7 @@ import org.apache.tools.ant.types.Reference;
* &lt;/jspc&gt;
* </pre>
*
- * <p> Large Amount of cutting and pasting from the Javac task...
+ * <p>Large amount of cutting and pasting from the Javac task...</p>
* @since 1.5
*/
public class JspC extends MatchingTask {
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/jsp/compilers/DefaultJspCompilerAdapter.java b/src/main/org/apache/tools/ant/taskdefs/optional/jsp/compilers/DefaultJspCompilerAdapter.java
index 303ef6f37..5814597a9 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/jsp/compilers/DefaultJspCompilerAdapter.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/jsp/compilers/DefaultJspCompilerAdapter.java
@@ -87,7 +87,7 @@ public abstract class DefaultJspCompilerAdapter
}
/**
- * add an argument oneple to the argument list, if the value aint null
+ * add a single argument to the argument list, if the value aint null
* @param cmd the command line
* @param argument The argument
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/jsp/compilers/JspCompilerAdapter.java b/src/main/org/apache/tools/ant/taskdefs/optional/jsp/compilers/JspCompilerAdapter.java
index 16b67f9d6..68e693c2d 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/jsp/compilers/JspCompilerAdapter.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/jsp/compilers/JspCompilerAdapter.java
@@ -22,7 +22,7 @@ import org.apache.tools.ant.taskdefs.optional.jsp.JspC;
import org.apache.tools.ant.taskdefs.optional.jsp.JspMangler;
/**
- * The interface that all jsp compiler adapters must adher to.
+ * The interface that all jsp compiler adapters must adhere to.
*
* <p>A compiler adapter is an adapter that interprets the jspc's
* parameters in preparation to be passed off to the compiler this
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/BaseTest.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/BaseTest.java
index 046296980..6beb81c2a 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/BaseTest.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/BaseTest.java
@@ -132,6 +132,7 @@ public abstract class BaseTest {
/**
* The if expression
+ * @return Object
* @since Ant 1.8.0
*/
public Object getIfCondition() {
@@ -163,6 +164,7 @@ public abstract class BaseTest {
/**
* The unless expression
+ * @return Object
* @since Ant 1.8.0
*/
public Object getUnlessCondition() {
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/BatchTest.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/BatchTest.java
index fb5d44b5e..11271bf2e 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/BatchTest.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/BatchTest.java
@@ -31,13 +31,13 @@ import org.apache.tools.ant.types.ResourceCollection;
import org.apache.tools.ant.types.resources.Resources;
/**
- * <p> Create then run <code>JUnitTest</code>'s based on the list of files
- * given by the fileset attribute.
+ * <p>Create then run <code>JUnitTest</code>'s based on the list of files
+ * given by the fileset attribute.</p>
*
- * <p> Every <code>.java</code> or <code>.class</code> file in the fileset is
+ * <p>Every <code>.java</code> or <code>.class</code> file in the fileset is
* assumed to be a testcase.
* A <code>JUnitTest</code> is created for each of these named classes with
- * basic setup inherited from the parent <code>BatchTest</code>.
+ * basic setup inherited from the parent <code>BatchTest</code>.</p>
*
* @see JUnitTest
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/BriefJUnitResultFormatter.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/BriefJUnitResultFormatter.java
index 975de6894..4f00180e7 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/BriefJUnitResultFormatter.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/BriefJUnitResultFormatter.java
@@ -97,8 +97,8 @@ public class BriefJUnitResultFormatter implements JUnitResultFormatter, IgnoredT
/**
* @see JUnitResultFormatter#setSystemOutput(String)
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
public void setSystemOutput(String out) {
systemOutput = out;
@@ -106,8 +106,8 @@ public class BriefJUnitResultFormatter implements JUnitResultFormatter, IgnoredT
/**
* @see JUnitResultFormatter#setSystemError(String)
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
public void setSystemError(String err) {
systemError = err;
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/Enumerations.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/Enumerations.java
index 1ca4a0c0b..d965e4c11 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/Enumerations.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/Enumerations.java
@@ -35,7 +35,8 @@ public final class Enumerations {
/**
* creates an enumeration from an array of objects.
- * @param array the array of object to enumerate.
+ * @param <T> object type
+ * @param array the array of object to enumerate.
* @return the enumeration over the array of objects.
*/
@SafeVarargs
@@ -44,11 +45,12 @@ public final class Enumerations {
}
/**
- * creates an enumeration from an array of enumeration. The created enumeration
- * will sequentially enumerate over all elements of each enumeration and skip
- * <tt>null</tt> enumeration elements in the array.
- * @param enums the array of enumerations.
- * @return the enumeration over the array of enumerations.
+ * creates an enumeration from an array of enumeration. The created enumeration
+ * will sequentially enumerate over all elements of each enumeration and skip
+ * <tt>null</tt> enumeration elements in the array.
+ * @param <T> object type
+ * @param enums the array of enumerations.
+ * @return the enumeration over the array of enumerations.
*/
@SafeVarargs
public static <T> Enumeration<T> fromCompound(Enumeration<? extends T>... enums) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/FailureRecorder.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/FailureRecorder.java
index 26ef42463..f2a570a12 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/FailureRecorder.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/FailureRecorder.java
@@ -61,7 +61,7 @@ import org.apache.tools.ant.util.StringUtils;
* </pre>
*
* Because each running test case gets its own formatter, we collect
- * the failing test cases in a static list. Because we dont have a finalizer
+ * the failing test cases in a static list. Because we don't have a finalizer
* method in the formatters "lifecycle", we register this formatter as
* BuildListener and generate the new java source on taskFinished event.
*
@@ -171,8 +171,8 @@ public class FailureRecorder extends ProjectComponent implements JUnitResultForm
/**
* Add the failed test to the list.
- * @param test the test that errored.
- * @param throwable the reason it errored.
+ * @param test the test that erred.
+ * @param throwable the reason it erred.
* @see junit.framework.TestListener#addError(junit.framework.Test, java.lang.Throwable)
*/
@Override
@@ -437,7 +437,7 @@ public class FailureRecorder extends ProjectComponent implements JUnitResultForm
}
/**
- * The task outside of this JUnitResultFormatter is the <junit> task. So all tests passed
+ * The task outside of this JUnitResultFormatter is the &lt;junit&gt; task. So all tests passed
* and we could create the new java class.
* @param event not used
* @see org.apache.tools.ant.BuildListener#taskFinished(org.apache.tools.ant.BuildEvent)
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.java
index 81841a01b..d76e06c1a 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.java
@@ -36,20 +36,21 @@ import org.apache.tools.ant.types.EnumeratedAttribute;
import org.apache.tools.ant.util.KeepAliveOutputStream;
/**
- * <p> A wrapper for the implementations of <code>JUnitResultFormatter</code>.
+ * <p>A wrapper for the implementations of <code>JUnitResultFormatter</code>.
* In particular, used as a nested <code>&lt;formatter&gt;</code> element in
- * a <code>&lt;junit&gt;</code> task.
- * <p> For example,
- * <code><pre>
+ * a <code>&lt;junit&gt;</code> task.</p>
+ *
+ * For example,
+ * <pre>
* &lt;junit printsummary="no" haltonfailure="yes" fork="false"&gt;
* &lt;formatter type="plain" usefile="false" /&gt;
* &lt;test name="org.apache.ecs.InternationalCharTest" /&gt;
- * &lt;/junit&gt;</pre></code>
+ * &lt;/junit&gt;</pre>
* adds a <code>plain</code> type implementation
* (<code>PlainJUnitResultFormatter</code>) to display the results of the test.
*
- * <p> Either the <code>type</code> or the <code>classname</code> attribute
- * must be set.
+ * <p>Either the <code>type</code> or the <code>classname</code> attribute
+ * must be set.</p>
*
* @see JUnitTask
* @see XMLJUnitResultFormatter
@@ -87,18 +88,19 @@ public class FormatterElement {
private Project project;
/**
- * <p> Quick way to use a standard formatter.
+ * <p>Quick way to use a standard formatter.</p>
*
- * <p> At the moment, there are three supported standard formatters.
+ * <p>At the moment, there are three supported standard formatters.</p>
* <ul>
- * <li> The <code>xml</code> type uses a <code>XMLJUnitResultFormatter</code>.
- * <li> The <code>brief</code> type uses a <code>BriefJUnitResultFormatter</code>.
- * <li> The <code>plain</code> type (the default) uses a <code>PlainJUnitResultFormatter</code>.
- * <li> The <code>failure</code> type uses a <code>FailureRecorder</code>.
+ * <li>The <code>xml</code> type uses a <code>XMLJUnitResultFormatter</code>.</li>
+ * <li>The <code>brief</code> type uses a <code>BriefJUnitResultFormatter</code>.</li>
+ * <li>The <code>plain</code> type (the default) uses a <code>PlainJUnitResultFormatter</code>.</li>
+ * <li>The <code>failure</code> type uses a <code>FailureRecorder</code>.</li>
* </ul>
*
- * <p> Sets <code>classname</code> attribute - so you can't use that
- * attribute if you use this one.
+ * <p>Sets <code>classname</code> attribute - so you can't use that
+ * attribute if you use this one.</p>
+ *
* @param type the enumerated value to use.
*/
public void setType(TypeAttribute type) {
@@ -119,9 +121,9 @@ public class FormatterElement {
}
/**
- * <p> Set name of class to be used as the formatter.
+ * Set name of class to be used as the formatter.
+ * <p>This class must implement <code>JUnitResultFormatter</code></p>
*
- * <p> This class must implement <code>JUnitResultFormatter</code>
* @param classname the name of the formatter class.
*/
public void setClassname(String classname) {
@@ -166,18 +168,18 @@ public class FormatterElement {
}
/**
- * <p> Set the file which the formatte should log to.
+ * Set the file which the formatter should log to.
*
- * <p> Note that logging to file must be enabled .
+ * <p>Note that logging to file must be enabled.</p>
*/
void setOutfile(File out) {
this.outFile = out;
}
/**
- * <p> Set output stream for formatter to use.
+ * Set output stream for formatter to use.
*
- * <p> Defaults to standard out.
+ * <p>Defaults to standard out.</p>
* @param out the output stream to use.
*/
public void setOutput(OutputStream out) {
@@ -227,7 +229,7 @@ public class FormatterElement {
/**
* Set whether this formatter should NOT be used. It will be used
* if the expression evaluates to false or the name of a property
- * which has not been set, orthwise it will not be used.
+ * which has not been set, otherwise it will not be used.
* @param unlessCond name of property
* @since Ant 1.8.0
*/
@@ -238,7 +240,7 @@ public class FormatterElement {
/**
* Set whether this formatter should NOT be used. It will be used
* if the expression evaluates to false or the name of a property
- * which has not been set, orthwise it will not be used.
+ * which has not been set, otherwise it will not be used.
* @param unlessCond name of property
*/
public void setUnless(String unlessCond) {
@@ -322,7 +324,7 @@ public class FormatterElement {
Field field = r.getClass().getField("project");
Object value = field.get(r);
if (value instanceof Project) {
- // there is already a project reference so dont overwrite this
+ // there is already a project reference so don't overwrite this
needToSetProjectReference = false;
}
} catch (NoSuchFieldException e) {
@@ -349,9 +351,9 @@ public class FormatterElement {
}
/**
- * <p> Enumerated attribute with the values "plain", "xml", "brief" and "failure".
+ * Enumerated attribute with the values "plain", "xml", "brief" and "failure".
*
- * <p> Use to enumerate options for <code>type</code> attribute.
+ * <p>Use to enumerate options for <code>type</code> attribute.</p>
*/
public static class TypeAttribute extends EnumeratedAttribute {
/** {@inheritDoc}. */
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/IgnoredTestListener.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/IgnoredTestListener.java
index 6741912e9..2c3103a71 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/IgnoredTestListener.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/IgnoredTestListener.java
@@ -41,10 +41,10 @@ public interface IgnoredTestListener extends TestListener {
/**
* Receive a report that a test has failed an assumption. Within JUnit4
* this is normally treated as a test being skipped, although how any
- * listener handles this is up to that specific listener.<br />
- * <b>Note:</b> Tests that throw assumption failures will still report
+ * listener handles this is up to that specific listener.
+ * <p><b>Note:</b> Tests that throw assumption failures will still report
* the endTest method, which may differ from how the addError and addFailure
- * methods work, it's up for any implementing classes to handle this.
+ * methods work, it's up for any implementing classes to handle this.</p>
* @param test the details of the test and failure that have triggered this report.
* @param exception the AssumptionViolatedException thrown from the current assumption failure.
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java
index d37337ab0..b1f477949 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java
@@ -68,13 +68,13 @@ import org.apache.tools.ant.util.StringUtils;
/**
* Runs JUnit tests.
*
- * <p> JUnit is a framework to create unit tests. It has been initially
+ * <p>JUnit is a framework to create unit tests. It has been initially
* created by Erich Gamma and Kent Beck. JUnit can be found at <a
* href="http://www.junit.org">http://www.junit.org</a>.
*
- * <p> <code>JUnitTask</code> can run a single specific
+ * <p><code>JUnitTask</code> can run a single specific
* <code>JUnitTest</code> using the <code>test</code> element.</p>
- * For example, the following target <code><pre>
+ * For example, the following target <pre>
* &lt;target name="test-int-chars" depends="jar-test"&gt;
* &lt;echo message="testing international characters"/&gt;
* &lt;junit printsummary="no" haltonfailure="yes" fork="false"&gt;
@@ -83,19 +83,19 @@ import org.apache.tools.ant.util.StringUtils;
* &lt;test name="org.apache.ecs.InternationalCharTest" /&gt;
* &lt;/junit&gt;
* &lt;/target&gt;
- * </pre></code>
+ * </pre>
* <p>runs a single junit test
* (<code>org.apache.ecs.InternationalCharTest</code>) in the current
* VM using the path with id <code>classpath</code> as classpath and
* presents the results formatted using the standard
* <code>plain</code> formatter on the command line.</p>
*
- * <p> This task can also run batches of tests. The
+ * <p>This task can also run batches of tests. The
* <code>batchtest</code> element creates a <code>BatchTest</code>
* based on a fileset. This allows, for example, all classes found in
* directory to be run as testcases.</p>
*
- * <p>For example,</p><code><pre>
+ * <p>For example,</p><pre>
* &lt;target name="run-tests" depends="dump-info,compile-tests" if="junit.present"&gt;
* &lt;junit printsummary="no" haltonfailure="yes" fork="${junit.fork}"&gt;
* &lt;jvmarg value="-classic"/&gt;
@@ -109,18 +109,18 @@ import org.apache.tools.ant.util.StringUtils;
* &lt;/batchtest&gt;
* &lt;/junit&gt;
* &lt;/target&gt;
- * </pre></code>
+ * </pre>
* <p>this target finds any classes with a <code>test</code> directory
* anywhere in their path (under the top <code>${tests.dir}</code>, of
* course) and creates <code>JUnitTest</code>'s for each one.</p>
*
- * <p> Of course, <code>&lt;junit&gt;</code> and
+ * <p>Of course, <code>&lt;junit&gt;</code> and
* <code>&lt;batch&gt;</code> elements can be combined for more
* complex tests. For an example, see the ant <code>build.xml</code>
* target <code>run-tests</code> (the second example is an edited
* version).</p>
*
- * <p> To spawn a new Java VM to prevent interferences between
+ * <p>To spawn a new Java VM to prevent interferences between
* different testcases, you need to enable <code>fork</code>. A
* number of attributes and elements allow you to set up how this JVM
* runs.
@@ -220,7 +220,7 @@ public class JUnitTask extends Task {
* JUnitTest (test) however it can possibly be overridden by their
* own properties.</p>
* @param value <tt>false</tt> if it should not filter, otherwise
- * <tt>true<tt>
+ * <tt>true</tt>
*
* @since Ant 1.5
*/
@@ -335,6 +335,7 @@ public class JUnitTask extends Task {
* <p>This attribute will be ignored if tests run in the same VM
* as Ant.</p>
*
+ * @param threads int
* @since Ant 1.9.4
*/
public void setThreads(final int threads) {
@@ -348,11 +349,11 @@ public class JUnitTask extends Task {
* to also show standard output and error.
*
* Can take the values on, off, and withOutAndErr.
+ *
* @param value <tt>true</tt> to print a summary,
- * <tt>withOutAndErr</tt> to include the test&apos;s output as
+ * <tt>withOutAndErr</tt> to include the test's output as
* well, <tt>false</tt> otherwise.
* @see SummaryJUnitResultFormatter
- *
* @since Ant 1.2
*/
public void setPrintsummary(final SummaryAttribute value) {
@@ -366,7 +367,7 @@ public class JUnitTask extends Task {
public static class SummaryAttribute extends EnumeratedAttribute {
/**
* list the possible values
- * @return array of allowed values
+ * @return array of allowed values
*/
@Override
public String[] getValues() {
@@ -392,10 +393,10 @@ public class JUnitTask extends Task {
*
* <p>If the test is running for more than this value, the test
* will be canceled. (works only when in 'fork' mode).</p>
+ *
* @param value the maximum time (in milliseconds) allowed before
* declaring the test as 'timed-out'
* @see #setFork(boolean)
- *
* @since Ant 1.2
*/
public void setTimeout(final Integer value) {
@@ -404,9 +405,9 @@ public class JUnitTask extends Task {
/**
* Set the maximum memory to be used by all forked JVMs.
+ *
* @param max the value as defined by <tt>-mx</tt> or <tt>-Xmx</tt>
* in the java command line options.
- *
* @since Ant 1.2
*/
public void setMaxmemory(final String max) {
@@ -433,7 +434,6 @@ public class JUnitTask extends Task {
* @return create a new JVM argument so that any argument can be
* passed to the JVM.
* @see #setFork(boolean)
- *
* @since Ant 1.2
*/
public Commandline.Argument createJvmarg() {
@@ -442,9 +442,9 @@ public class JUnitTask extends Task {
/**
* The directory to invoke the VM in. Ignored if no JVM is forked.
+ *
* @param dir the directory to invoke the JVM from.
* @see #setFork(boolean)
- *
* @since Ant 1.2
*/
public void setDir(final File dir) {
@@ -457,7 +457,7 @@ public class JUnitTask extends Task {
* testcases when JVM forking is not enabled.
*
* @since Ant 1.3
- * @deprecated since ant 1.6
+ * @deprecated since Ant 1.6
* @param sysp environment variable to add
*/
@Deprecated
@@ -470,6 +470,7 @@ public class JUnitTask extends Task {
* Adds a system property that tests can access.
* This might be useful to transfer Ant properties to the
* testcases when JVM forking is not enabled.
+ *
* @param sysp new environment variable to add
* @since Ant 1.6
*/
@@ -485,8 +486,8 @@ public class JUnitTask extends Task {
* Adds a set of properties that will be used as system properties
* that tests can access.
*
- * This might be useful to transfer Ant properties to the
- * testcases when JVM forking is not enabled.
+ * <p>This might be useful to transfer Ant properties to the
+ * testcases when JVM forking is not enabled.</p>
*
* @param sysp set of properties to be added
* @since Ant 1.6
@@ -507,6 +508,7 @@ public class JUnitTask extends Task {
/**
* Adds a path to the bootclasspath.
+ *
* @return reference to the bootclasspath in the embedded java command line
* @since Ant 1.6
*/
@@ -538,6 +540,7 @@ public class JUnitTask extends Task {
* Adds an environment variable; used when forking.
*
* <p>Will be ignored if we are not forking a new VM.</p>
+ *
* @param var environment variable to be added
* @since Ant 1.5
*/
@@ -561,9 +564,11 @@ public class JUnitTask extends Task {
* Preset the attributes of the test
* before configuration in the build
* script.
- * This allows attributes in the <junit> task
+ * This allows attributes in the &lt;junit&gt; task
* be be defaults for the tests, but allows
* individual tests to override the defaults.
+ *
+ * @param test BaseTest
*/
private void preConfigure(final BaseTest test) {
test.setFiltertrace(filterTrace);
@@ -582,7 +587,6 @@ public class JUnitTask extends Task {
* Add a new single testcase.
* @param test a new single testcase
* @see JUnitTest
- *
* @since Ant 1.2
*/
public void addTest(final JUnitTest test) {
@@ -595,7 +599,6 @@ public class JUnitTask extends Task {
*
* @return a new instance of a batch test.
* @see BatchTest
- *
* @since Ant 1.2
*/
public BatchTest createBatchTest() {
@@ -657,6 +660,7 @@ public class JUnitTask extends Task {
* If true, write a single "FAILED" line for failed tests to Ant's
* log system.
*
+ * @param logFailedTests boolean
* @since Ant 1.8.0
*/
public void setLogFailedTests(final boolean logFailedTests) {
@@ -665,6 +669,7 @@ public class JUnitTask extends Task {
/**
* Assertions to enable in this program (if fork=true)
+ *
* @since Ant 1.6
* @param asserts assertion set
*/
@@ -677,8 +682,9 @@ public class JUnitTask extends Task {
/**
* Sets the permissions for the application run inside the same JVM.
+ *
* @since Ant 1.6
- * @return .
+ * @return Permissions
*/
public Permissions createPermissions() {
if (perm == null) {
@@ -693,6 +699,7 @@ public class JUnitTask extends Task {
* a bootclasspath.
*
* <p>Doesn't have any effect unless fork is true.</p>
+ *
* @param cloneVm a <code>boolean</code> value.
* @since Ant 1.7
*/
@@ -731,6 +738,7 @@ public class JUnitTask extends Task {
* <p>This value will be overridden by the magic property
* ant.junit.enabletestlistenerevents if it has been set.</p>
*
+ * @param b boolean
* @since Ant 1.8.2
*/
public void setEnableTestListenerEvents(final boolean b) {
@@ -739,6 +747,8 @@ public class JUnitTask extends Task {
/**
* Whether test listener events shall be generated.
+ *
+ * @return boolean
* @since Ant 1.8.2
*/
public boolean getEnableTestListenerEvents() {
@@ -1428,7 +1438,7 @@ public class JUnitTask extends Task {
* Will auto-delete on (graceful) exit.
* The file will be in the project basedir unless tmpDir declares
* something else.
- * @param prefix
+ * @param prefix String
* @return created file
*/
private File createTempPropertiesFile(final String prefix) {
@@ -2052,11 +2062,11 @@ public class JUnitTask extends Task {
/**
* constructor for forked test configuration
- * @param filterTrace
- * @param haltOnError
- * @param haltOnFailure
- * @param errorProperty
- * @param failureProperty
+ * @param filterTrace boolean
+ * @param haltOnError boolean
+ * @param haltOnFailure boolean
+ * @param errorProperty String
+ * @param failureProperty String
*/
ForkedTestConfiguration(final boolean filterTrace, final boolean haltOnError,
final boolean haltOnFailure, final String errorProperty,
@@ -2070,7 +2080,7 @@ public class JUnitTask extends Task {
/**
* configure from a test; sets member variables to attributes of the test
- * @param test
+ * @param test JUnitTest
*/
ForkedTestConfiguration(final JUnitTest test) {
this(test.getFiltertrace(),
@@ -2082,7 +2092,7 @@ public class JUnitTask extends Task {
/**
* equality test checks all the member variables
- * @param other
+ * @param other object to compare
* @return true if everything is equal
*/
@Override
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.java
index 2ec56535a..d7889ba70 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.java
@@ -27,10 +27,10 @@ import org.apache.tools.ant.Project;
import org.apache.tools.ant.PropertyHelper;
/**
- * <p> Run a single JUnit test.
+ * Run a single JUnit test.
*
- * <p> The JUnit test is actually run by {@link JUnitTestRunner}.
- * So read the doc comments for that class :)
+ * <p>The JUnit test is actually run by {@link JUnitTestRunner}.
+ * So read the doc comments for that class :)</p>
*
* @since Ant 1.2
*
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java
index 400966654..e9bd1155f 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java
@@ -60,21 +60,21 @@ import org.apache.tools.ant.util.TeeOutputStream;
* <p>This TestRunner expects a name of a TestCase class as its
* argument. If this class provides a static suite() method it will be
* called and the resulting Test will be run. So, the signature should be
- * <pre><code>
+ * <pre>
* public static junit.framework.Test suite()
- * </code></pre>
+ * </pre>
*
- * <p> If no such method exists, all public methods starting with
- * "test" and taking no argument will be run.
+ * <p>If no such method exists, all public methods starting with
+ * "test" and taking no argument will be run.</p>
*
- * <p> Summary output is generated at the end.
+ * <p>Summary output is generated at the end.</p>
*
* @since Ant 1.2
*/
public class JUnitTestRunner implements TestListener, JUnitTaskMirror.JUnitTestRunnerMirror {
private static final String JUNIT_4_TEST_ADAPTER
- = "junit.framework.JUnit4TestAdapter";
+ = "junit.framework.JUnit4TestAdapter";
private static final String[] DEFAULT_TRACE_FILTERS = new String[] {
"junit.framework.TestCase",
@@ -287,6 +287,14 @@ public class JUnitTestRunner implements TestListener, JUnitTaskMirror.JUnitTestR
/**
* Constructor to use when the user has specified a classpath.
+ * @param test JUnitTest
+ * @param methods String[]
+ * @param haltOnError boolean
+ * @param filtertrace boolean
+ * @param haltOnFailure boolean
+ * @param showOutput boolean
+ * @param logTestListenerEvents boolean
+ * @param loader ClassLoader
* @since 1.8.2
*/
public JUnitTestRunner(final JUnitTest test, final String[] methods, final boolean haltOnError,
@@ -883,33 +891,38 @@ public class JUnitTestRunner implements TestListener, JUnitTaskMirror.JUnitTestR
/**
* Entry point for standalone (forked) mode.
- *
+ * <p>
* Parameters: testcaseclassname plus parameters in the format
* key=value, none of which is required.
- *
- * <table cols="4" border="1">
- * <tr><th>key</th><th>description</th><th>default value</th></tr>
- *
- * <tr><td>haltOnError</td><td>halt test on
- * errors?</td><td>false</td></tr>
- *
- * <tr><td>haltOnFailure</td><td>halt test on
- * failures?</td><td>false</td></tr>
- *
- * <tr><td>formatter</td><td>A JUnitResultFormatter given as
+ * </p>
+ * <table border="1">
+ * <caption>Test runner attributes</caption>
+ * <tr>
+ * <th>key</th><th>description</th><th>default value</th>
+ * </tr>
+ * <tr>
+ * <td>haltOnError</td><td>halt test on errors?</td><td>false</td>
+ * </tr>
+ * <tr>
+ * <td>haltOnFailure</td><td>halt test on failures?</td><td>false</td>
+ * </tr>
+ * <tr>
+ * <td>formatter</td><td>A JUnitResultFormatter given as
* classname,filename. If filename is omitted, System.out is
- * assumed.</td><td>none</td></tr>
- *
- * <tr><td>showoutput</td><td>send output to System.err/.out as
- * well as to the formatters?</td><td>false</td></tr>
- *
- * <tr><td>logtestlistenerevents</td><td>log TestListener events to
- * System.out.</td><td>false</td></tr>
- *
- * <tr><td>methods</td><td>Comma-separated list of names of individual
- * test methods to execute.
- * </td><td>null</td></tr>
- *
+ * assumed.</td><td>none</td>
+ * </tr>
+ * <tr>
+ * <td>showoutput</td><td>send output to System.err/.out as
+ * well as to the formatters?</td><td>false</td>
+ * </tr>
+ * <tr>
+ * <td>logtestlistenerevents</td><td>log TestListener events to
+ * System.out.</td><td>false</td>
+ * </tr>
+ * <tr>
+ * <td>methods</td><td>Comma-separated list of names of individual
+ * test methods to execute.</td><td>null</td>
+ * </tr>
* </table>
* @param args the command line arguments.
* @throws IOException on error.
@@ -1115,7 +1128,9 @@ public class JUnitTestRunner implements TestListener, JUnitTaskMirror.JUnitTestR
}
/**
- * Line format is: formatter=<classname>(,<pathname>)?
+ * Line format is: formatter=&lt;classname&gt;(,&lt;pathname&gt;)?
+ *
+ * @param line String
*/
private static void createAndStoreFormatter(final String line)
throws BuildException {
@@ -1328,4 +1343,4 @@ public class JUnitTestRunner implements TestListener, JUnitTaskMirror.JUnitTestR
return new int[] { failures, errors };
}
-} // JUnitTestRunner
+}
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/PlainJUnitResultFormatter.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/PlainJUnitResultFormatter.java
index 85cfb0c79..0d71cd2b5 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/PlainJUnitResultFormatter.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/PlainJUnitResultFormatter.java
@@ -327,4 +327,4 @@ public class PlainJUnitResultFormatter implements JUnitResultFormatter, IgnoredT
throw new BuildException("Unable to write output " + ex, ex);
}
}
-} // PlainJUnitResultFormatter
+}
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.java
index 03760cc92..c29271d9e 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.java
@@ -18,16 +18,16 @@
package org.apache.tools.ant.taskdefs.optional.junit;
/**
- * <p> Interface groups XML constants.
+ * <p>Interface groups XML constants.
* Interface that groups all constants used throughout the <tt>XML</tt>
* documents that are generated by the <tt>XMLJUnitResultFormatter</tt>.
- * <p>
+ * </p>
* As of now the DTD is:
- * <code><pre>
+ * <pre>
* &lt;!ELEMENT testsuites (testsuite*)&gt;
*
* &lt;!ELEMENT testsuite (properties, testcase*,
- * failure?, error?,
+ * failure?, error?,
* system-out?, system-err?)&gt;
* &lt;!ATTLIST testsuite name CDATA #REQUIRED&gt;
* &lt;!ATTLIST testsuite tests CDATA #REQUIRED&gt;
@@ -61,7 +61,7 @@ package org.apache.tools.ant.taskdefs.optional.junit;
*
* &lt;!ELEMENT system-out (#PCDATA)&gt;
*
- * </pre></code>
+ * </pre>
* @see XMLJUnitResultFormatter
* @see XMLResultAggregator
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLJUnitResultFormatter.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLJUnitResultFormatter.java
index d62a847d4..ed282207a 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLJUnitResultFormatter.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLJUnitResultFormatter.java
@@ -54,7 +54,7 @@ public class XMLJUnitResultFormatter implements JUnitResultFormatter, XMLConstan
private static final double ONE_SECOND = 1000.0;
- /** constant for unnnamed testsuites/cases */
+ /** constant for unnamed testsuites/cases */
private static final String UNKNOWN = "unknown";
private static DocumentBuilder getDocumentBuilder() {
@@ -361,4 +361,4 @@ public class XMLJUnitResultFormatter implements JUnitResultFormatter, XMLConstan
skippedTests.put(createDescription(test), test);
}
-} // XMLJUnitResultFormatter
+}
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.java
index b877c0bb8..71cd82870 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.java
@@ -49,11 +49,11 @@ import org.xml.sax.SAXException;
* It is not particularly clean but
* should be helpful while I am thinking about another technique.
*
- * <p> The main problem is due to the fact that a JVM can be forked for a testcase
+ * <p>The main problem is due to the fact that a JVM can be forked for a testcase
* thus making it impossible to aggregate all testcases since the listener is
* (obviously) in the forked JVM. A solution could be to write a
* TestListener that will receive events from the TestRunner via sockets. This
- * is IMHO the simplest way to do it to avoid this file hacking thing.
+ * is IMHO the simplest way to do it to avoid this file hacking thing.</p>
*
* @ant.task name="junitreport" category="testing"
*/
@@ -108,7 +108,7 @@ public class XMLResultAggregator extends Task implements XMLConstants {
}
/**
- * Set the name of the aggregegated results file. It must be relative
+ * Set the name of the aggregated results file. It must be relative
* from the <tt>todir</tt> attribute. If not set it will use {@link #DEFAULT_FILENAME}
* @param value the name of the file.
* @see #setTodir(File)
@@ -215,7 +215,7 @@ public class XMLResultAggregator extends Task implements XMLConstants {
}
/**
- * <p> Create a DOM tree.
+ * Create a DOM tree.
* Has 'testsuites' as firstchild and aggregates all
* testsuite results that exists in the base directory.
* @return the root element of DOM tree that aggregates all testsuites.
@@ -271,11 +271,12 @@ public class XMLResultAggregator extends Task implements XMLConstants {
}
/**
- * <p> Add a new testsuite node to the document.
+ * <p>Add a new testsuite node to the document.
* The main difference is that it
- * split the previous fully qualified name into a package and a name.
- * <p> For example: <tt>org.apache.Whatever</tt> will be split into
- * <tt>org.apache</tt> and <tt>Whatever</tt>.
+ * split the previous fully qualified name into a package and a name.</p>
+ * <p>For example: <tt>org.apache.Whatever</tt> will be split into
+ * <tt>org.apache</tt> and <tt>Whatever</tt>.</p>
+ *
* @param root the root element to which the <tt>testsuite</tt> node should
* be appended.
* @param testsuite the element to append to the given root. It will slightly
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/native2ascii/DefaultNative2Ascii.java b/src/main/org/apache/tools/ant/taskdefs/optional/native2ascii/DefaultNative2Ascii.java
index 438bfe9e7..51ff3f952 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/native2ascii/DefaultNative2Ascii.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/native2ascii/DefaultNative2Ascii.java
@@ -25,7 +25,7 @@ import org.apache.tools.ant.taskdefs.optional.Native2Ascii;
import org.apache.tools.ant.types.Commandline;
/**
- * encapsulates the handling common to diffent Native2Asciiadapter
+ * encapsulates the handling common to different Native2AsciiAdapter
* implementations.
*
* @since Ant 1.6.3
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java
index 2a5239022..72f45e0a9 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java
@@ -60,13 +60,13 @@ import org.apache.tools.ant.util.VectorSet;
/**
* Basic FTP client. Performs the following actions:
* <ul>
- * <li> <strong>send</strong> - send files to a remote server. This is the
+ * <li><strong>send</strong> - send files to a remote server. This is the
* default action.</li>
- * <li> <strong>get</strong> - retrieve files from a remote server.</li>
- * <li> <strong>del</strong> - delete files from a remote server.</li>
- * <li> <strong>list</strong> - create a file listing.</li>
- * <li> <strong>chmod</strong> - change unix file permissions.</li>
- * <li> <strong>rmdir</strong> - remove directories, if empty, from a
+ * <li><strong>get</strong> - retrieve files from a remote server.</li>
+ * <li><strong>del</strong> - delete files from a remote server.</li>
+ * <li><strong>list</strong> - create a file listing.</li>
+ * <li><strong>chmod</strong> - change unix file permissions.</li>
+ * <li><strong>rmdir</strong> - remove directories, if empty, from a
* remote server.</li>
* </ul>
* <strong>Note:</strong> Some FTP servers - notably the Solaris server - seem
@@ -190,7 +190,7 @@ public class FTP extends Task implements FTPTaskConfig {
/**
* creates a proxy to a FTP file
- * @param file
+ * @param file FTPFile
*/
public FTPFileProxy(FTPFile file) {
super(file.getName());
@@ -585,7 +585,7 @@ public class FTP extends Task implements FTPTaskConfig {
* @param name path of the directory relative to the directory of
* the fileset
* @param file directory as file
- * @param fast
+ * @param fast boolean
*/
private void accountForIncludedDir(String name, AntFTPFile file, boolean fast) {
if (!dirsIncluded.contains(name)
@@ -861,7 +861,7 @@ public class FTP extends Task implements FTPTaskConfig {
}
/**
- * find a file in a directory in case unsensitive way
+ * find a file in a directory in case insensitive way
* @param parentPath where we are
* @param soughtPathElement what is being sought
* @return the first file found or null if not found
@@ -1689,6 +1689,7 @@ public class FTP extends Task implements FTPTaskConfig {
* Whether to verify that data and control connections are
* connected to the same remote host.
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setEnableRemoteVerification(boolean b) {
@@ -1744,7 +1745,7 @@ public class FTP extends Task implements FTPTaskConfig {
* Executable a retryable object.
* @param h the retry handler.
* @param r the object that should be retried until it succeeds
- * or the number of retrys is reached.
+ * or the number of retries is reached.
* @param descr a description of the command that is being run.
* @throws IOException if there is a problem.
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTask.java b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTask.java
index 2e5228d9b..c96d16aaf 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTask.java
@@ -717,6 +717,7 @@ public class FTPTask extends Task implements FTPTaskConfig {
* Whether to verify that data and control connections are
* connected to the same remote host.
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setEnableRemoteVerification(boolean b) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTaskMirrorImpl.java b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTaskMirrorImpl.java
index f546b230b..817345c43 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTaskMirrorImpl.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTaskMirrorImpl.java
@@ -93,7 +93,7 @@ public class FTPTaskMirrorImpl implements FTPTaskMirror {
/**
* creates a proxy to a FTP file
- * @param file
+ * @param file FTPFile
*/
public FTPFileProxy(FTPFile file) {
super(file.getName());
@@ -478,7 +478,7 @@ public class FTPTaskMirrorImpl implements FTPTaskMirror {
* @param name path of the directory relative to the directory of
* the fileset
* @param file directory as file
- * @param fast
+ * @param fast boolean
*/
private void accountForIncludedDir(String name, AntFTPFile file, boolean fast) {
if (!dirsIncluded.contains(name)
@@ -761,7 +761,7 @@ public class FTPTaskMirrorImpl implements FTPTaskMirror {
this.ftpFile = getFile(theFiles, lastpathelement);
}
/**
- * find a file in a directory in case unsensitive way
+ * find a file in a directory in case insensitive way
* @param parentPath where we are
* @param soughtPathElement what is being sought
* @return the first file found or null if not found
@@ -1117,7 +1117,7 @@ public class FTPTaskMirrorImpl implements FTPTaskMirror {
* Executable a retryable object.
* @param h the retry handler.
* @param r the object that should be retried until it succeeds
- * or the number of retrys is reached.
+ * or the number of retries is reached.
* @param descr a description of the command that is being run.
* @throws IOException if there is a problem.
*/
@@ -1640,7 +1640,7 @@ public class FTPTaskMirrorImpl implements FTPTaskMirror {
* Retrieve a single file from the remote host. <code>filename</code> may
* contain a relative path specification. <p>
*
- * The file will then be retreived using the entire relative path spec -
+ * The file will then be retrieved using the entire relative path spec -
* no attempt is made to change directories. It is anticipated that this
* may eventually cause problems with some FTP servers, but it simplifies
* the coding.</p>
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/pvcs/Pvcs.java b/src/main/org/apache/tools/ant/taskdefs/optional/pvcs/Pvcs.java
index 9d844a157..1492ae5fa 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/pvcs/Pvcs.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/pvcs/Pvcs.java
@@ -46,11 +46,11 @@ import org.apache.tools.ant.util.FileUtils;
* Extracts the latest edition of the source code from a PVCS repository.
* PVCS is a version control system
* developed by <a href="http://www.merant.com/products/pvcs">Merant</a>.
- * <br>
+ * <p>
* Before using this tag, the user running ant must have access to the commands
* of PVCS (get and pcli) and must have access to the repository. Note that the way to specify
* the repository is platform dependent so use property to specify location of repository.
- * <br>
+ * </p>
* This version has been tested against PVCS version 6.5 and 6.6 under Windows and Solaris.
*
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/script/ScriptDef.java b/src/main/org/apache/tools/ant/taskdefs/optional/script/ScriptDef.java
index 35d873cc8..4aad07b20 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/script/ScriptDef.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/script/ScriptDef.java
@@ -367,7 +367,7 @@ public class ScriptDef extends DefBase {
}
/**
- * Defines the compilation feature ; optional.
+ * Defines the compilation feature; optional.
*
* @param compiled enables the script compilation if available.
* @since Ant 1.10.2
@@ -377,7 +377,7 @@ public class ScriptDef extends DefBase {
}
/**
- * Loads the script from an external file ; optional.
+ * Loads the script from an external file; optional.
*
* @param file the file containing the script source.
*/
@@ -386,7 +386,7 @@ public class ScriptDef extends DefBase {
}
/**
- * Sets the encoding of the script from an external file ; optional.
+ * Sets the encoding of the script from an external file; optional.
*
* @param encoding the encoding of the file containing the script source.
* @since Ant 1.10.2
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/sos/SOS.java b/src/main/org/apache/tools/ant/taskdefs/optional/sos/SOS.java
index 66e0eb2a5..c9b462d5a 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/sos/SOS.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/sos/SOS.java
@@ -403,9 +403,9 @@ public abstract class SOS extends Task implements SOSCmd {
/**
* Execute the created command line.
*
- * @param cmd The command line to run.
- * @return int the exit code.
- * @throws BuildException
+ * @param cmd The command line to run.
+ * @return int the exit code.
+ * @throws BuildException if something goes wrong
*/
protected int run(Commandline cmd) {
try {
@@ -440,7 +440,7 @@ public abstract class SOS extends Task implements SOSCmd {
commandLine.createArgument().setValue(FLAG_USERNAME);
commandLine.createArgument().setValue(getUsername());
// The SOS class knows that the SOS server needs the password flag,
- // even if there is no password ,so we send a " "
+ // even if there is no password, so we send a " "
commandLine.createArgument().setValue(FLAG_PASSWORD);
commandLine.createArgument().setValue(getPassword());
// VSS Info is required
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/sos/SOSCheckin.java b/src/main/org/apache/tools/ant/taskdefs/optional/sos/SOSCheckin.java
index 3a82ea4f9..fe8bd0ec5 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/sos/SOSCheckin.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/sos/SOSCheckin.java
@@ -56,8 +56,8 @@ public class SOSCheckin extends SOS {
}
/**
- * Build the command line. <p>
- *
+ * Build the command line.
+ * <p>
* CheckInFile required parameters: -server -name -password -database -project
* -file<br>
* CheckInFile optional parameters: -workdir -log -verbose -nocache -nocompression
@@ -65,7 +65,8 @@ public class SOSCheckin extends SOS {
* CheckInProject required parameters: -server -name -password -database
* -project<br>
* CheckInProject optional parameters: workdir -recursive -log -verbose
- * -nocache -nocompression -soshome<br>
+ * -nocache -nocompression -soshome
+ * </p>
*
* @return Commandline the generated command to be executed
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/sos/SOSCheckout.java b/src/main/org/apache/tools/ant/taskdefs/optional/sos/SOSCheckout.java
index a7b23c5bb..447be0e53 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/sos/SOSCheckout.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/sos/SOSCheckout.java
@@ -47,14 +47,15 @@ public class SOSCheckout extends SOS {
}
/**
- * Build the command line <br>
- *
+ * Build the command line
+ * <p>
* CheckOutFile required parameters: -server -name -password -database -project -file<br>
* CheckOutFile optional parameters: -workdir -verbose -nocache -nocompression -soshome<br>
*
* CheckOutProject required parameters: -server -name -password -database -project<br>
* CheckOutProject optional parameters:-workdir -recursive -verbose -nocache
- * -nocompression -soshome<br>
+ * -nocompression -soshome
+ * </p>
*
* @return Commandline the generated command to be executed
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/sos/SOSGet.java b/src/main/org/apache/tools/ant/taskdefs/optional/sos/SOSGet.java
index b17e0c16f..c55165eec 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/sos/SOSGet.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/sos/SOSGet.java
@@ -67,14 +67,15 @@ public class SOSGet extends SOS {
}
/**
- * Build the command line <br>
- *
+ * Build the command line
+ * <p>
* GetFile required parameters: -server -name -password -database -project -file<br>
* GetFile optional parameters: -workdir -revision -verbose -nocache -nocompression -soshome<br>
*
* GetProject required parameters: -server -name -password -database -project<br>
* GetProject optional parameters: -label -workdir -recursive -verbose -nocache
- * -nocompression -soshome<br>
+ * -nocompression -soshome
+ * </p>
*
* @return Commandline the generated command to be executed
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/sos/SOSLabel.java b/src/main/org/apache/tools/ant/taskdefs/optional/sos/SOSLabel.java
index 0b4110548..79cb11da1 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/sos/SOSLabel.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/sos/SOSLabel.java
@@ -57,9 +57,11 @@ public class SOSLabel extends SOS {
}
/**
- * Build the command line <br>
- * AddLabel required parameters: -server -name -password -database -project -label<br>
- * AddLabel optional parameters: -verbose -comment<br>
+ * Build the command line
+ * <p>
+ * AddLabel required parameters: -server -name -password -database -project -label<br>
+ * AddLabel optional parameters: -verbose -comment
+ * </p>
*
* @return Commandline the generated command to be executed
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/sos/package.html b/src/main/org/apache/tools/ant/taskdefs/optional/sos/package.html
index a0538c21c..401c7d736 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/sos/package.html
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/sos/package.html
@@ -20,10 +20,10 @@
Ant tasks for working with a SourceOffSite source control system.
</p>
<p>
- The &lt;SOSGet&gt; Retreives file(s) from a SOS database<br>
- The &lt;SOSCheckin&gt; Commits and unlocks file(s) in a SOS database<br>
- The &lt;SOSCheckout&gt; Retreives and lock file(s) in a SOS database<br>
- The &lt;SOSLabel&gt; Label a SOS database<br>
+ The &lt;SOSGet&gt; Retrieves file(s) from a SOS database<br/>
+ The &lt;SOSCheckin&gt; Commits and unlocks file(s) in a SOS database<br/>
+ The &lt;SOSCheckout&gt; Retrieves and lock file(s) in a SOS database<br/>
+ The &lt;SOSLabel&gt; Label a SOS database
</p>
</body>
</html>
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/AbstractSshMessage.java b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/AbstractSshMessage.java
index 1a26fa433..d564eb4b1 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/AbstractSshMessage.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/AbstractSshMessage.java
@@ -66,7 +66,7 @@ public abstract class AbstractSshMessage {
/**
* Constructor for AbstractSshMessage
* @param verbose if true do verbose logging
- * @param compression if true use compression
+ * @param compressed if true use compression
* @param session the ssh session to use
* @since Ant 1.9.8
*/
@@ -211,7 +211,7 @@ public abstract class AbstractSshMessage {
}
/**
- * Track progress every 10% if 100kb < filesize < 1mb. For larger
+ * Track progress every 10% if 100kb &lt; filesize &lt; 1Mb. For larger
* files track progress for every percent transmitted.
* @param filesize the size of the file been transmitted
* @param totalLength the total transmission size
@@ -285,6 +285,7 @@ public abstract class AbstractSshMessage {
public void end() {
}
+ @SuppressWarnings("unused")
public long getTotalLength() {
return totalLength;
}
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHBase.java b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHBase.java
index 2e426ee15..1dcf3b9df 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHBase.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHBase.java
@@ -73,7 +73,7 @@ public abstract class SSHBase extends Task implements LogListener {
/**
* Set the failonerror flag.
* Default is true
- * @param failure if true throw a build exception when a failure occuries,
+ * @param failure if true throw a build exception when a failure occurs,
* otherwise just log the failure and continue
*/
public void setFailonerror(final boolean failure) {
@@ -108,6 +108,7 @@ public abstract class SSHBase extends Task implements LogListener {
/**
* Set the serverAliveCountMax value.
+ * @param countMax int
* @since Ant 1.9.7
*/
public void setServerAliveCountMax(final int countMax) {
@@ -128,6 +129,7 @@ public abstract class SSHBase extends Task implements LogListener {
/**
* Set the serverAliveIntervalSeconds value in seconds.
+ * @param interval int
* @since Ant 1.9.7
*/
public void setServerAliveIntervalSeconds(final int interval) {
@@ -223,7 +225,7 @@ public abstract class SSHBase extends Task implements LogListener {
/**
* Initialize the task.
- * This initializizs the known hosts and sets the default port.
+ * This initializes the known hosts and sets the default port.
* @throws BuildException on error
*/
@Override
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java
index 1206d7979..c3e4821b4 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java
@@ -235,6 +235,7 @@ public class SSHExec extends SSHBase {
/**
* Whether a pseudo-tty should be allocated.
+ * @param b boolean
* @since Apache Ant 1.8.3
*/
public void setUsePty(final boolean b) {
@@ -252,8 +253,9 @@ public class SSHExec extends SSHBase {
}
/**
- * If suppressSystemOut is <code>true</code>, output will not be sent to System.out<br/>
- * If suppressSystemOut is <code>false</code>, normal behavior
+ * If suppressSystemOut is <code>true</code>, output will not be sent to System.out,
+ * if suppressSystemOut is <code>false</code>, normal behavior
+ * @param suppressSystemOut boolean
* @since Ant 1.9.0
*/
public void setSuppressSystemOut(final boolean suppressSystemOut) {
@@ -261,8 +263,9 @@ public class SSHExec extends SSHBase {
}
/**
- * If suppressSystemErr is <code>true</code>, output will not be sent to System.err<br/>
- * If suppressSystemErr is <code>false</code>, normal behavior
+ * If suppressSystemErr is <code>true</code>, output will not be sent to System.err,
+ * if suppressSystemErr is <code>false</code>, normal behavior
+ * @param suppressSystemErr boolean
* @since Ant 1.9.4
*/
public void setSuppressSystemErr(final boolean suppressSystemErr) {
@@ -478,7 +481,6 @@ public class SSHExec extends SSHBase {
* @param from string to write
* @param to file to write to
* @param append if true, append to existing file, else overwrite
- * @exception Exception most likely an IOException
*/
private void writeToFile(final String from, final boolean append, final File to)
throws IOException {
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHSession.java b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHSession.java
index 3fec9114e..016b90eea 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHSession.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHSession.java
@@ -58,9 +58,8 @@ public class SSHSession extends SSHBase {
/**
* Add a nested task to Sequential.
- * <p>
- * @param nestedTask Nested task to execute Sequential
- * <p>
+ *
+ * @param nestedTask Nested task to execute sequentially
*/
public void addTask(final Task nestedTask) {
nestedTasks.add(nestedTask);
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/Scp.java b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/Scp.java
index 71ea26d33..ab598ab72 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/Scp.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/Scp.java
@@ -63,11 +63,16 @@ public class Scp extends SSHBase {
/**
* Sets the file to be transferred. This can either be a remote
- * file or a local file. Remote files take the form:<br>
- * <i>user:password@host:/directory/path/file.example</i><br>
+ * file or a local file. Remote files take the form:
+ * <p>
+ * <i>user:password@host:/directory/path/file.example</i>
+ * </p>
* Files to transfer can also include a wildcard to include all
- * files in a remote directory. For example:<br>
- * <i>user:password@host:/directory/path/*</i><br>
+ * files in a remote directory. For example:
+ * <p>
+ * <i>user:password@host:/directory/path/*</i>
+ * </p>
+ *
* @param aFromUri a string representing the file to transfer.
*/
public void setFile(final String aFromUri) {
@@ -78,8 +83,10 @@ public class Scp extends SSHBase {
/**
* Sets the location where files will be transferred to.
* This can either be a remote directory or a local directory.
- * Remote directories take the form of:<br>
- * <i>user:password@host:/directory/path/</i><br>
+ * Remote directories take the form of:
+ * <p>
+ * <i>user:password@host:/directory/path/</i>
+ * </p>
* This parameter is required.
* @param aToUri a string representing the target of the copy.
@@ -113,9 +120,10 @@ public class Scp extends SSHBase {
this.isFromRemote = true;
}
- /**
+ /**
* Sets flag to determine if compression should
* be used for the copy.
+ * @param compressed boolean
* @since Ant 1.9.8
*/
public void setCompressed(boolean compressed) {
@@ -137,6 +145,7 @@ public class Scp extends SSHBase {
/**
* Sets flag to determine if file timestamp
* is to be preserved during copy.
+ * @param yesOrNo boolean
* @since Ant 1.8.0
*/
public void setPreservelastmodified(final boolean yesOrNo) {
@@ -197,6 +206,7 @@ public class Scp extends SSHBase {
/**
* Set the file mode, defaults to "644".
+ * @param fileMode String
* @since Ant 1.9.5
*/
public void setFileMode(String fileMode) {
@@ -205,6 +215,7 @@ public class Scp extends SSHBase {
/**
* Set the dir mode, defaults to "755".
+ * @param dirMode String
* @since Ant 1.9.5
*/
public void setDirMode(String dirMode) {
@@ -223,7 +234,7 @@ public class Scp extends SSHBase {
/**
* Adds a ResourceCollection of local files to transfer to remote host.
- * @param set ResourceCollection to send to remote host.
+ * @param res ResourceCollection to send to remote host.
* @since Ant 1.9.7
*/
public void add(ResourceCollection res) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java
index 67424f412..5fc5f194a 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java
@@ -407,6 +407,7 @@ public class ScpToMessage extends AbstractSshMessage {
/**
* Set the file mode, defaults to 0644.
+ * @param fileMode int
* @since Ant 1.9.5
*/
public void setFileMode(int fileMode) {
@@ -415,6 +416,7 @@ public class ScpToMessage extends AbstractSshMessage {
/**
* Get the file mode.
+ * @return int
* @since Ant 1.9.5
*/
public int getFileMode() {
@@ -423,6 +425,7 @@ public class ScpToMessage extends AbstractSshMessage {
/**
* Set the dir mode, defaults to 0755.
+ * @param dirMode int
* @since Ant 1.9.5
*/
public void setDirMode(int dirMode) {
@@ -431,6 +434,7 @@ public class ScpToMessage extends AbstractSshMessage {
/**
* Get the dir mode.
+ * @return int
* @since Ant 1.9.5
*/
public int getDirMode() {
@@ -439,6 +443,7 @@ public class ScpToMessage extends AbstractSshMessage {
/**
* Whether to preserve the last modified time.
+ * @return boolean
* @since Ant 1.9.7
*/
public boolean getPreserveLastModified() {
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessageBySftp.java b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessageBySftp.java
index f9b1ba138..ef3e2cee6 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessageBySftp.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessageBySftp.java
@@ -344,7 +344,7 @@ public class ScpToMessageBySftp extends ScpToMessage/*AbstractSshMessage*/ {
* Returns true if the last modified time needs to be preserved on the
* file(s) that get transferred. Returns false otherwise.
*
- * @return
+ * @return boolean
*/
public boolean getPreserveLastModified() {
return this.preserveLastModified;
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/testing/Funtest.java b/src/main/org/apache/tools/ant/taskdefs/optional/testing/Funtest.java
index a7eb85fb8..4f376cf29 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/testing/Funtest.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/testing/Funtest.java
@@ -501,20 +501,15 @@ public class Funtest extends Task {
/**
* Now faults are analysed.
- * <p> The priority is
+ * <p>The priority is</p>
* <ol>
* <li>testexceptions, except those indicating a build timeout when the application itself
- failed.<br>
- (because often it is the application fault that is more interesting than the probe
- failure, which is usually triggered by the application not starting
- </li><li>
- Application exceptions (above test timeout exceptions)
- </li><li>
- Teardown exceptions -except when they are being ignored
- </li><li>
- Test failures as indicated by the failure property
- </li></ol>
-
+ * failed. (Because often it is the application fault that is more interesting than the probe
+ * failure, which is usually triggered by the application not starting.)</li>
+ * <li>Application exceptions (above test timeout exceptions)</li>
+ * <li>Teardown exceptions -except when they are being ignored</li>
+ * <li>Test failures as indicated by the failure property</li>
+ * </ol>
*/
protected void processExceptions() {
taskException = testException;
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/unix/AbstractAccessTask.java b/src/main/org/apache/tools/ant/taskdefs/optional/unix/AbstractAccessTask.java
index baced9e50..83847ed34 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/unix/AbstractAccessTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/unix/AbstractAccessTask.java
@@ -17,11 +17,11 @@
*/
/*
- * Since the initial version of this file was deveolped on the clock on
+ * Since the initial version of this file was developed on the clock on
* an NSF grant I should say the following boilerplate:
*
* This material is based upon work supported by the National Science
- * Foundaton under Grant No. EIA-0196404. Any opinions, findings, and
+ * Foundation under Grant No. EIA-0196404. Any opinions, findings, and
* conclusions or recommendations expressed in this material are those
* of the author and do not necessarily reflect the views of the
* National Science Foundation.
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/unix/Chgrp.java b/src/main/org/apache/tools/ant/taskdefs/optional/unix/Chgrp.java
index ecf819b92..529c14634 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/unix/Chgrp.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/unix/Chgrp.java
@@ -17,11 +17,11 @@
*/
/*
- * Since the initial version of this file was deveolped on the clock on
+ * Since the initial version of this file was developed on the clock on
* an NSF grant I should say the following boilerplate:
*
* This material is based upon work supported by the National Science
- * Foundaton under Grant No. EIA-0196404. Any opinions, findings, and
+ * Foundation under Grant No. EIA-0196404. Any opinions, findings, and
* conclusions or recommendations expressed in this material are those
* of the author and do not necessarily reflect the views of the
* National Science Foundation.
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/unix/Chown.java b/src/main/org/apache/tools/ant/taskdefs/optional/unix/Chown.java
index cd827e616..c3d50a7ab 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/unix/Chown.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/unix/Chown.java
@@ -17,11 +17,11 @@
*/
/*
- * Since the initial version of this file was deveolped on the clock on
+ * Since the initial version of this file was developed on the clock on
* an NSF grant I should say the following boilerplate:
*
* This material is based upon work supported by the National Science
- * Foundaton under Grant No. EIA-0196404. Any opinions, findings, and
+ * Foundation under Grant No. EIA-0196404. Any opinions, findings, and
* conclusions or recommendations expressed in this material are those
* of the author and do not necessarily reflect the views of the
* National Science Foundation.
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/unix/Symlink.java b/src/main/org/apache/tools/ant/taskdefs/optional/unix/Symlink.java
index 606a2b3c4..7317c0414 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/unix/Symlink.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/unix/Symlink.java
@@ -21,7 +21,7 @@
* an NSF grant I should say the following boilerplate:
*
* This material is based upon work supported by the National Science
- * Foundaton under Grant No. EIA-0196404. Any opinions, findings, and
+ * Foundation under Grant No. EIA-0196404. Any opinions, findings, and
* conclusions or recommendations expressed in this material are those
* of the author and do not necessarily reflect the views of the
* National Science Foundation.
@@ -60,7 +60,7 @@ import org.apache.tools.ant.util.SymbolicLinkUtils;
/**
* Creates, Deletes, Records and Restores Symlinks.
*
- * <p> This task performs several related operations. In the most trivial
+ * <p>This task performs several related operations. In the most trivial
* and default usage, it creates a link specified in the link attribute to
* a resource specified in the resource attribute. The second usage of this
* task is to traverse a directory structure specified by a fileset,
@@ -69,33 +69,33 @@ import org.apache.tools.ant.util.SymbolicLinkUtils;
* directory structure specified by a fileset, looking for properties files
* (also specified as included in the fileset) and recreate the links
* that have been previously recorded for each directory. Finally, it can be
- * used to remove a symlink without deleting the associated resource.
+ * used to remove a symlink without deleting the associated resource.</p>
*
- * <p> Usage examples:
+ * <p>Usage examples:</p>
*
- * <p> Make a link named &quot;foo&quot; to a resource named
- * &quot;bar.foo&quot; in subdir:
+ * <p>Make a link named &quot;foo&quot; to a resource named
+ * &quot;bar.foo&quot; in subdir:</p>
* <pre>
* &lt;symlink link=&quot;${dir.top}/foo&quot; resource=&quot;${dir.top}/subdir/bar.foo&quot;/&gt;
* </pre>
*
- * <p> Record all links in subdir and its descendants in files named
- * &quot;dir.links&quot;:
+ * <p>Record all links in subdir and its descendants in files named
+ * &quot;dir.links&quot;:</p>
* <pre>
* &lt;symlink action=&quot;record&quot; linkfilename=&quot;dir.links&quot;&gt;
* &lt;fileset dir=&quot;${dir.top}&quot; includes=&quot;subdir&#47;**&quot; /&gt;
* &lt;/symlink&gt;
* </pre>
*
- * <p> Recreate the links recorded in the previous example:
+ * <p>Recreate the links recorded in the previous example:</p>
* <pre>
* &lt;symlink action=&quot;recreate&quot;&gt;
* &lt;fileset dir=&quot;${dir.top}&quot; includes=&quot;subdir&#47;**&#47;dir.links&quot; /&gt;
* &lt;/symlink&gt;
* </pre>
*
- * <p> Delete a link named &quot;foo&quot; to a resource named
- * &quot;bar.foo&quot; in subdir:
+ * <p>Delete a link named &quot;foo&quot; to a resource named
+ * &quot;bar.foo&quot; in subdir:</p>
* <pre>
* &lt;symlink action=&quot;delete&quot; link=&quot;${dir.top}/foo&quot;/&gt;
* </pre>
@@ -109,9 +109,9 @@ import org.apache.tools.ant.util.SymbolicLinkUtils;
* or action=&quot;recreate&quot;, but action=&quot;record&quot; should still
* work. Finally, the lack of support for symlinks in Java means that all links
* are recorded as links to the <strong>canonical</strong> resource name.
- * Therefore the link: <code>link --> subdir/dir/../foo.bar</code> will be
+ * Therefore the link: <code>link --&gt; subdir/dir/../foo.bar</code> will be
* recorded as <code>link=subdir/foo.bar</code> and restored as
- * <code>link --> subdir/foo.bar</code>.
+ * <code>link --&gt; subdir/foo.bar</code>.</p>
*
*/
public class Symlink extends DispatchTask {
@@ -448,7 +448,7 @@ public class Symlink extends DispatchTask {
/**
* Conduct the actual construction of a link.
*
- * <p> The link is constructed by calling <code>Execute.runCommand</code>.
+ * <p>The link is constructed by calling <code>Execute.runCommand</code>.</p>
*
* @param res The path of the resource we are linking to.
* @param lnk The name of the link we wish to make.
@@ -484,9 +484,9 @@ public class Symlink extends DispatchTask {
/**
* Find all the links in all supplied filesets.
*
- * <p> This method is invoked when the action attribute is
+ * <p>This method is invoked when the action attribute is
* &quot;record&quot;. This means that filesets are interpreted
- * as the directories in which links may be found.
+ * as the directories in which links may be found.</p>
*
* @param fileSets The filesets specified by the user.
* @return A HashSet of <code>File</code> objects containing the
@@ -519,10 +519,10 @@ public class Symlink extends DispatchTask {
/**
* Load links from properties files included in one or more FileSets.
*
- * <p> This method is only invoked when the action attribute is set to
+ * <p>This method is only invoked when the action attribute is set to
* &quot;recreate&quot;. The filesets passed in are assumed to specify the
* names of the property files with the link information and the
- * subdirectories in which to look for them.
+ * subdirectories in which to look for them.</p>
*
* @param fileSets The <code>FileSet</code>s for this task.
* @return The links to be made.
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java b/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java
index a47b230b9..ce240e3e8 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java
@@ -95,15 +95,15 @@ public abstract class MSVSS extends Task implements MSVSSConstants {
private int numDays = Integer.MIN_VALUE;
/** Date format for History */
private DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);
- /** Timestamp for retreived files */
+ /** Timestamp for retrieved files */
private CurrentModUpdated timestamp = null;
/** Behaviour for writable files */
private WritableFiles writableFiles = null;
/**
- * Each sub-class must implemnt this method and return the constructed
+ * Each sub-class must implement this method and return the constructed
* command line to be executed. It is up to the sub-task to determine the
- * required attrubutes and their order.
+ * required attributes and their order.
* @return The Constructed command line.
*/
abstract Commandline buildCmdLine();
@@ -170,9 +170,12 @@ public abstract class MSVSS extends Task implements MSVSSConstants {
}
/**
- * Executes the task. <br>
+ * Executes the task.
+ * <p>
* Builds a command line to execute ss.exe and then calls Exec's run method
* to execute the command line.
+ * </p>
+ *
* @throws BuildException if the command cannot execute.
*/
public void execute() throws BuildException {
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSADD.java b/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSADD.java
index 0241ee3c8..2e04e209d 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSADD.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSADD.java
@@ -94,7 +94,7 @@ public class MSVSSADD extends MSVSS {
}
/**
- * Autoresponce behaviour. Valid options are Y and N.
+ * Autoresponse behaviour. Valid options are Y and N.
*
* @param response The auto response value.
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCHECKOUT.java b/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCHECKOUT.java
index edbcde963..4e56e0ba2 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCHECKOUT.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCHECKOUT.java
@@ -123,7 +123,7 @@ public class MSVSSCHECKOUT extends MSVSS {
}
/**
- * Autoresponce behaviour. Valid options are Y and N.
+ * Autoresponse behaviour. Valid options are Y and N.
*
* @param response The auto response value.
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCP.java b/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCP.java
index ae2fcb7c8..7d7edc27c 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCP.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCP.java
@@ -59,7 +59,7 @@ public class MSVSSCP extends MSVSS {
}
/**
- * Autoresponce behaviour. Valid options are Y and N.
+ * Autoresponse behaviour. Valid options are Y and N.
*
* @param response The auto response value.
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCREATE.java b/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCREATE.java
index 4f298c030..16f10158b 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCREATE.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCREATE.java
@@ -81,7 +81,7 @@ public class MSVSSCREATE extends MSVSS {
}
/**
- * Autoresponce behaviour. Valid options are Y and N.
+ * Autoresponse behaviour. Valid options are Y and N.
*
* @param response The auto response value.
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSGET.java b/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSGET.java
index fd5ed096a..59ee27298 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSGET.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSGET.java
@@ -140,7 +140,7 @@ public class MSVSSGET extends MSVSS {
}
/**
- * Autoresponce behaviour. Valid options are Y and N.
+ * Autoresponse behaviour. Valid options are Y and N.
*
* @param response The auto response value.
*/
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSHISTORY.java b/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSHISTORY.java
index 05ec91c2c..4fdc95d98 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSHISTORY.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSHISTORY.java
@@ -147,7 +147,7 @@ public class MSVSSHISTORY extends MSVSS {
}
/**
- * Format of dates in <code>fromDate</code and <code>toDate</code>.
+ * Format of dates in <code>fromDate</code> and <code>toDate</code>.
* Used when calculating dates with the numdays attribute.
* This string uses the formatting rules of <code>SimpleDateFormat</code>.
* Defaults to <code>DateFormat.SHORT</code>.
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSLABEL.java b/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSLABEL.java
index 4ba9d7b33..6290f2e09 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSLABEL.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSLABEL.java
@@ -98,7 +98,7 @@ public class MSVSSLABEL extends MSVSS {
}
/**
- * Autoresponce behaviour. Valid options are Y and N.
+ * Autoresponse behaviour. Valid options are Y and N.
*
* @param response The auto response value.
*/
diff --git a/src/main/org/apache/tools/ant/types/AbstractFileSet.java b/src/main/org/apache/tools/ant/types/AbstractFileSet.java
index bcfc5a0b3..868e7fa7a 100644
--- a/src/main/org/apache/tools/ant/types/AbstractFileSet.java
+++ b/src/main/org/apache/tools/ant/types/AbstractFileSet.java
@@ -432,6 +432,7 @@ public abstract class AbstractFileSet extends DataType
* The maximum number of times a symbolic link may be followed
* during a scan.
*
+ * @param max int
* @since Ant 1.8.0
*/
public void setMaxLevelsOfSymlinks(int max) {
@@ -442,6 +443,7 @@ public abstract class AbstractFileSet extends DataType
* The maximum number of times a symbolic link may be followed
* during a scan.
*
+ * @return int
* @since Ant 1.8.0
*/
public int getMaxLevelsOfSymlinks() {
@@ -461,6 +463,8 @@ public abstract class AbstractFileSet extends DataType
/**
* Gets whether an error is/should be thrown if the base directory
* does not exist.
+ *
+ * @return boolean
* @since Ant 1.8.2
*/
public boolean getErrorOnMissingDir() {
@@ -829,6 +833,7 @@ public abstract class AbstractFileSet extends DataType
}
/**
+ * @param e ExecutableSelector
* @since 1.10.0
*/
public void addExecutable(ExecutableSelector e) {
@@ -836,6 +841,7 @@ public abstract class AbstractFileSet extends DataType
}
/**
+ * @param e SymlinkSelector
* @since 1.10.0
*/
public void addSymlink(SymlinkSelector e) {
@@ -843,6 +849,7 @@ public abstract class AbstractFileSet extends DataType
}
/**
+ * @param o OwnedBySelector
* @since 1.10.0
*/
public void addOwnedBy(OwnedBySelector o) {
diff --git a/src/main/org/apache/tools/ant/types/Assertions.java b/src/main/org/apache/tools/ant/types/Assertions.java
index 6be6569d3..0bb2f3031 100644
--- a/src/main/org/apache/tools/ant/types/Assertions.java
+++ b/src/main/org/apache/tools/ant/types/Assertions.java
@@ -98,7 +98,7 @@ public class Assertions extends DataType implements Cloneable {
/**
* enable or disable system assertions.
- * Default is not set (neither -enablesystemassersions or -disablesytemassertions
+ * Default is not set (neither -enablesystemassertions or -disablesytemassertions
* are used on the command line).
* @param enableSystemAssertions if true enable system assertions
*/
@@ -228,8 +228,8 @@ public class Assertions extends DataType implements Cloneable {
/**
* helper method to add a string JVM argument to a command
- * @param command
- * @param arg
+ * @param command ditto
+ * @param arg ditto
*/
private static void addVmArgument(CommandlineJava command, String arg) {
Commandline.Argument argument;
diff --git a/src/main/org/apache/tools/ant/types/Commandline.java b/src/main/org/apache/tools/ant/types/Commandline.java
index a996f91ae..2ba14b4dc 100644
--- a/src/main/org/apache/tools/ant/types/Commandline.java
+++ b/src/main/org/apache/tools/ant/types/Commandline.java
@@ -35,19 +35,19 @@ import org.apache.tools.ant.util.StringUtils;
/**
* Commandline objects help handling command lines specifying processes to
* execute.
- *
+ * <p>
* The class can be used to define a command line as nested elements or as a
* helper to define a command line by an application.
- * <p>
- * <code>
- * &lt;someelement&gt;<br>
- * &nbsp;&nbsp;&lt;acommandline executable="/executable/to/run"&gt;<br>
- * &nbsp;&nbsp;&nbsp;&nbsp;&lt;argument value="argument 1" /&gt;<br>
- * &nbsp;&nbsp;&nbsp;&nbsp;&lt;argument line="argument_1 argument_2 argument_3" /&gt;<br>
- * &nbsp;&nbsp;&nbsp;&nbsp;&lt;argument value="argument 4" /&gt;<br>
- * &nbsp;&nbsp;&lt;/acommandline&gt;<br>
- * &lt;/someelement&gt;<br>
- * </code>
+ * </p>
+ * <pre>
+ * &lt;someelement&gt;
+ * &lt;acommandline executable="/executable/to/run"&gt;
+ * &lt;argument value="argument 1"/&gt;
+ * &lt;argument line="argument_1 argument_2 argument_3"/&gt;
+ * &lt;argument value="argument 4"/&gt;
+ * &lt;/acommandline&gt;
+ * &lt;/someelement&gt;
+ * </pre>
* The element <code>someelement</code> must provide a method
* <code>createAcommandline</code> which returns an instance of this class.
*
@@ -250,6 +250,7 @@ public class Commandline implements Cloneable {
/**
* Get the prefix to be placed in front of the inserted argument.
*
+ * @return String
* @since Ant 1.8.0
*/
public String getPrefix() {
@@ -269,6 +270,7 @@ public class Commandline implements Cloneable {
/**
* Get the suffix to be placed at the end of the inserted argument.
*
+ * @return String
* @since Ant 1.8.0
*/
public String getSuffix() {
@@ -588,7 +590,7 @@ public class Commandline implements Cloneable {
/**
* Return a String that describes the command and arguments suitable for
- * verbose output before a call to <code>Runtime.exec(String[])<code>.
+ * verbose output before a call to <code>Runtime.exec(String[])</code>.
* @return a string that describes the command and arguments.
* @since Ant 1.5
*/
@@ -598,7 +600,7 @@ public class Commandline implements Cloneable {
/**
* Return a String that describes the arguments suitable for
- * verbose output before a call to <code>Runtime.exec(String[])<code>.
+ * verbose output before a call to <code>Runtime.exec(String[])</code>.
* @return a string that describes the arguments.
* @since Ant 1.5
*/
@@ -608,7 +610,7 @@ public class Commandline implements Cloneable {
/**
* Return a String that describes the command and arguments suitable for
- * verbose output before a call to <code>Runtime.exec(String[])<code>.
+ * verbose output before a call to <code>Runtime.exec(String[])</code>.
* @param line the Commandline to describe.
* @return a string that describes the command and arguments.
* @since Ant 1.5
@@ -619,7 +621,7 @@ public class Commandline implements Cloneable {
/**
* Return a String that describes the arguments suitable for
- * verbose output before a call to <code>Runtime.exec(String[])<code>.
+ * verbose output before a call to <code>Runtime.exec(String[])</code>.
* @param line the Commandline whose arguments to describe.
* @return a string that describes the arguments.
* @since Ant 1.5
@@ -630,7 +632,7 @@ public class Commandline implements Cloneable {
/**
* Return a String that describes the command and arguments suitable for
- * verbose output before a call to <code>Runtime.exec(String[])<code>.
+ * verbose output before a call to <code>Runtime.exec(String[])</code>.
*
* <p>This method assumes that the first entry in the array is the
* executable to run.</p>
@@ -655,7 +657,7 @@ public class Commandline implements Cloneable {
/**
* Return a String that describes the arguments suitable for
- * verbose output before a call to <code>Runtime.exec(String[])<code>.
+ * verbose output before a call to <code>Runtime.exec(String[])</code>.
* @param args the command line to describe as an array of strings.
* @return a string that describes the arguments.
* @since Ant 1.5
@@ -666,7 +668,7 @@ public class Commandline implements Cloneable {
/**
* Return a String that describes the arguments suitable for
- * verbose output before a call to <code>Runtime.exec(String[])<code>.
+ * verbose output before a call to <code>Runtime.exec(String[])</code>.
*
* @param args the command line to describe as an array of strings.
* @param offset ignore entries before this index.
diff --git a/src/main/org/apache/tools/ant/types/CommandlineJava.java b/src/main/org/apache/tools/ant/types/CommandlineJava.java
index a14c38e0c..4f6bacdf3 100644
--- a/src/main/org/apache/tools/ant/types/CommandlineJava.java
+++ b/src/main/org/apache/tools/ant/types/CommandlineJava.java
@@ -572,7 +572,7 @@ public class CommandlineJava implements Cloneable {
/**
* Return a String that describes the command and arguments suitable for
- * verbose output before a call to <code>Runtime.exec(String[])<code>.
+ * verbose output before a call to <code>Runtime.exec(String[])</code>.
* @return the description string.
* @since Ant 1.5
*/
diff --git a/src/main/org/apache/tools/ant/types/DataType.java b/src/main/org/apache/tools/ant/types/DataType.java
index 24f7682a6..b2d81e28c 100644
--- a/src/main/org/apache/tools/ant/types/DataType.java
+++ b/src/main/org/apache/tools/ant/types/DataType.java
@@ -128,7 +128,7 @@ public abstract class DataType extends ProjectComponent implements Cloneable {
* cannot hold other DataTypes as children.</p>
*
* <p>The general contract of this method is that it shouldn't do
- * anything if {@link #checked <code>checked</code>} is true and
+ * anything if {@link #checked} is true and
* set it to true on exit.</p>
* @param stack the stack of references to check.
* @param project the project to use to dereference the references.
@@ -217,6 +217,7 @@ public abstract class DataType extends ProjectComponent implements Cloneable {
/**
* Performs the check for circular references and returns the
* referenced object.
+ * @param <T> required reference type
* @param requiredClass the class that this reference should be a subclass of.
* @param dataTypeName the name of the datatype that the reference should be
* (error message use only).
@@ -231,6 +232,7 @@ public abstract class DataType extends ProjectComponent implements Cloneable {
/**
* Performs the check for circular references and returns the
* referenced object. This version allows the fallback Project instance to be specified.
+ * @param <T> required reference type
* @param requiredClass the class that this reference should be a subclass of.
* @param dataTypeName the name of the datatype that the reference should be
* (error message use only).
diff --git a/src/main/org/apache/tools/ant/types/EnumeratedAttribute.java b/src/main/org/apache/tools/ant/types/EnumeratedAttribute.java
index 23ea205d0..dac396615 100644
--- a/src/main/org/apache/tools/ant/types/EnumeratedAttribute.java
+++ b/src/main/org/apache/tools/ant/types/EnumeratedAttribute.java
@@ -71,7 +71,7 @@ public abstract class EnumeratedAttribute {
String value) throws BuildException {
if (!EnumeratedAttribute.class.isAssignableFrom(clazz)) {
throw new BuildException(
- "You have to provide a subclass from EnumeratedAttribut as clazz-parameter.");
+ "You have to provide a subclass from EnumeratedAttribute as clazz-parameter.");
}
EnumeratedAttribute ea;
try {
diff --git a/src/main/org/apache/tools/ant/types/FileList.java b/src/main/org/apache/tools/ant/types/FileList.java
index f91059ee0..32485e7b5 100644
--- a/src/main/org/apache/tools/ant/types/FileList.java
+++ b/src/main/org/apache/tools/ant/types/FileList.java
@@ -101,7 +101,7 @@ public class FileList extends DataType implements ResourceCollection {
/**
* Set the filenames attribute.
*
- * @param filenames a string contains filenames, separated by , or
+ * @param filenames a string containing filenames, separated by comma or
* by whitespace.
*/
public void setFiles(String filenames) {
diff --git a/src/main/org/apache/tools/ant/types/Path.java b/src/main/org/apache/tools/ant/types/Path.java
index edd5d309d..9501080b0 100644
--- a/src/main/org/apache/tools/ant/types/Path.java
+++ b/src/main/org/apache/tools/ant/types/Path.java
@@ -40,28 +40,27 @@ import org.apache.tools.ant.util.JavaEnvUtils;
* This object represents a path as used by CLASSPATH or PATH
* environment variable. A path might also be described as a collection
* of unique filesystem resources.
- * <p>
- * <code>
- * &lt;sometask&gt;<br>
- * &nbsp;&nbsp;&lt;somepath&gt;<br>
- * &nbsp;&nbsp;&nbsp;&nbsp;&lt;pathelement location="/path/to/file.jar" /&gt;<br>
- * &nbsp;&nbsp;&nbsp;&nbsp;&lt;pathelement
- * path="/path/to/file2.jar:/path/to/class2;/path/to/class3" /&gt;
- * <br>
- * &nbsp;&nbsp;&nbsp;&nbsp;&lt;pathelement location="/path/to/file3.jar" /&gt;<br>
- * &nbsp;&nbsp;&nbsp;&nbsp;&lt;pathelement location="/path/to/file4.jar" /&gt;<br>
- * &nbsp;&nbsp;&lt;/somepath&gt;<br>
- * &lt;/sometask&gt;<br>
- * </code>
+ * <pre>
+ * &lt;sometask&gt;
+ * &lt;somepath&gt;
+ * &lt;pathelement location="/path/to/file.jar"/&gt;
+ * &lt;pathelement path="/path/to/file2.jar:/path/to/class2;/path/to/class3"/&gt;
+ * &lt;pathelement location="/path/to/file3.jar"/&gt;
+ * &lt;pathelement location="/path/to/file4.jar"/&gt;
+ * &lt;/somepath&gt;
+ * &lt;/sometask&gt;
+ * </pre>
* <p>
* The object implementation <code>sometask</code> must provide a method called
* <code>createSomepath</code> which returns an instance of <code>Path</code>.
* Nested path definitions are handled by the Path object and must be labeled
- * <code>pathelement</code>.<p>
- *
+ * <code>pathelement</code>.
+ * </p>
+ * <p>
* The path element takes a parameter <code>path</code> which will be parsed
* and split into single elements. It will usually be used
* to define a path from an environment variable.
+ * </p>
*/
public class Path extends DataType implements Cloneable, ResourceCollection {
@@ -360,6 +359,7 @@ public class Path extends DataType implements Cloneable, ResourceCollection {
/**
* Whether to cache the current path.
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setCache(boolean b) {
@@ -670,7 +670,7 @@ public class Path extends DataType implements Cloneable, ResourceCollection {
}
/**
- * Emulation of extdirs feature in java >= 1.2.
+ * Emulation of extdirs feature in Java &gt;= 1.2.
* This method adds all files in the given
* directories (but not in sub-directories!) to the classpath,
* so that you don't have to specify them all one by one.
diff --git a/src/main/org/apache/tools/ant/types/Quantifier.java b/src/main/org/apache/tools/ant/types/Quantifier.java
index 1aedcb6f7..a62346fa4 100644
--- a/src/main/org/apache/tools/ant/types/Quantifier.java
+++ b/src/main/org/apache/tools/ant/types/Quantifier.java
@@ -28,17 +28,17 @@ import org.apache.tools.ant.BuildException;
/**
* EnumeratedAttribute for quantifier comparisons. Evaluates a
* <code>boolean[]</code> or raw <code>true</code> and <code>false</code>
- * counts. Accepts the following values:<ul>
- * <li>"all"</li> - none <code>false</code>
- * <li>"each"</li> - none <code>false</code>
- * <li>"every"</li> - none <code>false</code>
- * <li>"any"</li> - at least one <code>true</code>
- * <li>"some"</li> - at least one <code>true</code>
- * <li>"one"</li> - exactly one <code>true</code>
- * <li>"majority"</li> - more <code>true</code> than <code>false</code>
- * <li>"most"</li> - more <code>true</code> than <code>false</code>
- * <li>"none"</li> - none <code>true</code>
- * </ul>
+ * counts. Accepts the following values:<dl>
+ * <dt>"all"</dt><dd>none <code>false</code></dd>
+ * <dt>"each"</dt><dd>none <code>false</code></dd>
+ * <dt>"every"</dt><dd>none <code>false</code></dd>
+ * <dt>"any"</dt><dd>at least one <code>true</code></dd>
+ * <dt>"some"</dt><dd>at least one <code>true</code></dd>
+ * <dt>"one"</dt><dd>exactly one <code>true</code></dd>
+ * <dt>"majority"</dt><dd>more <code>true</code> than <code>false</code></dd>
+ * <dt>"most"</dt><dd>more <code>true</code> than <code>false</code></dd>
+ * <dt>"none"</dt><dd>none <code>true</code></dd>
+ * </dl>
* @since Ant 1.7
*/
public class Quantifier extends EnumeratedAttribute {
@@ -148,7 +148,7 @@ public class Quantifier extends EnumeratedAttribute {
}
/**
- * Evaluate a <code>boolean<code> array.
+ * Evaluate a <code>boolean</code> array.
* @param b the <code>boolean[]</code> to evaluate.
* @return true if the argument fell within the parameters of this Quantifier.
*/
diff --git a/src/main/org/apache/tools/ant/types/RedirectorElement.java b/src/main/org/apache/tools/ant/types/RedirectorElement.java
index 7f7271a90..b97abbcee 100644
--- a/src/main/org/apache/tools/ant/types/RedirectorElement.java
+++ b/src/main/org/apache/tools/ant/types/RedirectorElement.java
@@ -435,6 +435,7 @@ public class RedirectorElement extends DataType {
* <p>Binary output will not be split into lines which may make
* error and normal output look mixed up when they get written to
* the same stream.</p>
+ * @param b boolean
* @since 1.9.4
*/
public void setBinaryOutput(boolean b) {
diff --git a/src/main/org/apache/tools/ant/types/Resource.java b/src/main/org/apache/tools/ant/types/Resource.java
index abeb83f20..cbe4dd261 100644
--- a/src/main/org/apache/tools/ant/types/Resource.java
+++ b/src/main/org/apache/tools/ant/types/Resource.java
@@ -29,10 +29,11 @@ import org.apache.tools.ant.types.resources.FileProvider;
/**
* Describes a "File-like" resource (File, ZipEntry, etc.).
- *
+ * <p>
* This class is meant to be used by classes needing to record path
* and date/time information about a file, a zip entry or some similar
* resource (URL, archive in a version control repository, ...).
+ * </p>
*
* @since Ant 1.5.2
* @see org.apache.tools.ant.types.resources.Touchable
@@ -429,8 +430,8 @@ public class Resource extends DataType implements Comparable<Resource>, Resource
* instance itself if it can be assigned to the given class.</p>
*
* @param <T> desired type
- * @param clazz
- * @return <T>
+ * @param clazz a class
+ * @return resource of a desired type
* @since Ant 1.8.0
*/
public <T> T as(Class<T> clazz) {
@@ -440,8 +441,8 @@ public class Resource extends DataType implements Comparable<Resource>, Resource
/**
* Return {@link #as(Class)} as an {@link Optional}.
* @param <T> desired type
- * @param clazz
- * @return {@link Optional} <T>
+ * @param clazz a class
+ * @return {@link Optional} resource of a desired type
* @since Ant 1.10.2
*/
public <T> Optional<T> asOptional(Class<T> clazz) {
diff --git a/src/main/org/apache/tools/ant/types/ResourceLocation.java b/src/main/org/apache/tools/ant/types/ResourceLocation.java
index c5a44ea2c..08791541a 100644
--- a/src/main/org/apache/tools/ant/types/ResourceLocation.java
+++ b/src/main/org/apache/tools/ant/types/ResourceLocation.java
@@ -27,12 +27,11 @@ import java.net.URL;
* href="http://oasis-open.org/committees/entity/spec-2001-08-06.html">
* OASIS "Open Catalog" standard</a>.</p>
*
- * <p>Possible Future Enhancements:
+ * <p>Possible Future Enhancements:</p>
* <ul>
* <li>Bring the Ant element names into conformance with the OASIS standard</li>
* <li>Add support for additional OASIS catalog entry types</li>
* </ul>
- * </p>
*
* @see org.apache.xml.resolver.Catalog
* @since Ant 1.6
@@ -103,4 +102,4 @@ public class ResourceLocation {
return base;
}
-} //-- ResourceLocation
+}
diff --git a/src/main/org/apache/tools/ant/types/Substitution.java b/src/main/org/apache/tools/ant/types/Substitution.java
index 343f4c49e..2b11da5e7 100644
--- a/src/main/org/apache/tools/ant/types/Substitution.java
+++ b/src/main/org/apache/tools/ant/types/Substitution.java
@@ -17,7 +17,6 @@
*/
package org.apache.tools.ant.types;
-
import org.apache.tools.ant.Project;
/***
diff --git a/src/main/org/apache/tools/ant/types/XMLCatalog.java b/src/main/org/apache/tools/ant/types/XMLCatalog.java
index 753e533c1..020765e8e 100644
--- a/src/main/org/apache/tools/ant/types/XMLCatalog.java
+++ b/src/main/org/apache/tools/ant/types/XMLCatalog.java
@@ -78,19 +78,18 @@ import org.xml.sax.XMLReader;
* <code>URI</code> respectively.</p>
*
* <p>The following is a usage example:</p>
- *
- * <code>
- * &lt;xmlcatalog&gt;<br>
- * &nbsp;&nbsp;&lt;dtd publicId="" location="/path/to/file.jar" /&gt;<br>
- * &nbsp;&nbsp;&lt;dtd publicId="" location="/path/to/file2.jar" /&gt;<br>
- * &nbsp;&nbsp;&lt;entity publicId="" location="/path/to/file3.jar" /&gt;<br>
- * &nbsp;&nbsp;&lt;entity publicId="" location="/path/to/file4.jar" /&gt;<br>
- * &nbsp;&nbsp;&lt;catalogpath&gt;<br>
- * &nbsp;&nbsp;&nbsp;&nbsp;&lt;pathelement location="/etc/sgml/catalog"/&gt;<br>
- * &nbsp;&nbsp;&lt;/catalogpath&gt;<br>
- * &nbsp;&nbsp;&lt;catalogfiles dir="/opt/catalogs/" includes="**\catalog.xml" /&gt;<br>
- * &lt;/xmlcatalog&gt;<br>
- * </code>
+ * <pre>
+ * &lt;xmlcatalog&gt;
+ * &lt;dtd publicId="" location="/path/to/file.jar"/&gt;
+ * &lt;dtd publicId="" location="/path/to/file2.jar"/&gt;
+ * &lt;entity publicId="" location="/path/to/file3.jar"/&gt;
+ * &lt;entity publicId="" location="/path/to/file4.jar"/&gt;
+ * &lt;catalogpath&gt;
+ * &lt;pathelement location="/etc/sgml/catalog"/&gt;
+ * &lt;/catalogpath&gt;
+ * &lt;catalogfiles dir="/opt/catalogs/" includes="**\catalog.xml"/&gt;
+ * &lt;/xmlcatalog&gt;
+ * </pre>
* <p>
* Tasks wishing to use <code>&lt;xmlcatalog&gt;</code> must provide a method called
* <code>createXMLCatalog</code> which returns an instance of
@@ -100,14 +99,13 @@ import org.xml.sax.XMLReader;
*
* <p>The following is a description of the resolution algorithm:
* entities/URIs/dtds are looked up in each of the following contexts,
- * stopping when a valid and readable resource is found:
+ * stopping when a valid and readable resource is found:</p>
* <ol>
* <li>In the local filesystem</li>
* <li>In the classpath</li>
* <li>Using the Apache xml-commons resolver (if it is available)</li>
* <li>In URL-space</li>
* </ol>
- * </p>
*
* <p>See {@link
* org.apache.tools.ant.taskdefs.optional.XMLValidateTask
@@ -488,7 +486,7 @@ public class XMLCatalog extends DataType
/**
* Factory method for creating the appropriate CatalogResolver
* strategy implementation.
- * <p> Until we query the classpath, we don't know whether the Apache
+ * <p>Until we query the classpath, we don't know whether the Apache
* resolver (Norm Walsh's library from xml-commons) is available or not.
* This method determines whether the library is available and creates the
* appropriate implementation of CatalogResolver based on the answer.</p>
@@ -1125,4 +1123,4 @@ public class XMLCatalog extends DataType
externalCatalogsProcessed = true;
}
}
-} //-- XMLCatalog
+}
diff --git a/src/main/org/apache/tools/ant/types/mappers/CutDirsMapper.java b/src/main/org/apache/tools/ant/types/mappers/CutDirsMapper.java
index 8f24e926b..6a1d0bdef 100644
--- a/src/main/org/apache/tools/ant/types/mappers/CutDirsMapper.java
+++ b/src/main/org/apache/tools/ant/types/mappers/CutDirsMapper.java
@@ -37,6 +37,7 @@ public class CutDirsMapper implements FileNameMapper {
/**
* The number of leading directories to cut.
+ * @param dirs int
*/
public void setDirs(final int dirs) {
this.dirs = dirs;
diff --git a/src/main/org/apache/tools/ant/types/optional/AbstractScriptComponent.java b/src/main/org/apache/tools/ant/types/optional/AbstractScriptComponent.java
index 8fefe860b..84a9e8bca 100644
--- a/src/main/org/apache/tools/ant/types/optional/AbstractScriptComponent.java
+++ b/src/main/org/apache/tools/ant/types/optional/AbstractScriptComponent.java
@@ -61,7 +61,7 @@ public abstract class AbstractScriptComponent extends ProjectComponent {
}
/**
- * Load the script from an external file ; optional.
+ * Load the script from an external file; optional.
*
* @param file the file containing the script source.
*/
@@ -158,7 +158,7 @@ public abstract class AbstractScriptComponent extends ProjectComponent {
}
/**
- * Set the encoding of the script from an external file ; optional.
+ * Set the encoding of the script from an external file; optional.
*
* @param encoding the encoding of the file containing the script source.
* @since Ant 1.10.2
diff --git a/src/main/org/apache/tools/ant/types/optional/ScriptFilter.java b/src/main/org/apache/tools/ant/types/optional/ScriptFilter.java
index a990fd067..c88c0871e 100644
--- a/src/main/org/apache/tools/ant/types/optional/ScriptFilter.java
+++ b/src/main/org/apache/tools/ant/types/optional/ScriptFilter.java
@@ -71,7 +71,7 @@ public class ScriptFilter extends TokenFilter.ChainableReaderFilter {
/**
* Initialize.
*
- * @exception BuildException if someting goes wrong
+ * @exception BuildException if something goes wrong
*/
private void init() throws BuildException {
if (runner != null) {
@@ -115,7 +115,7 @@ public class ScriptFilter extends TokenFilter.ChainableReaderFilter {
}
/**
- * Load the script from an external file ; optional.
+ * Load the script from an external file; optional.
*
* @param file the file containing the script source.
*/
@@ -184,7 +184,7 @@ public class ScriptFilter extends TokenFilter.ChainableReaderFilter {
}
/**
- * Set the encoding of the script from an external file ; optional.
+ * Set the encoding of the script from an external file; optional.
*
* @param encoding the encoding of the file containing the script source.
* @since Ant 1.10.2
diff --git a/src/main/org/apache/tools/ant/types/optional/ScriptMapper.java b/src/main/org/apache/tools/ant/types/optional/ScriptMapper.java
index 6fa4b58f6..5fd3edfb8 100644
--- a/src/main/org/apache/tools/ant/types/optional/ScriptMapper.java
+++ b/src/main/org/apache/tools/ant/types/optional/ScriptMapper.java
@@ -66,7 +66,7 @@ public class ScriptMapper extends AbstractScriptComponent implements FileNameMap
/**
* Returns an array containing the target filename(s) for the given source
* file.
- * <p/>
+ *
* <p>if the given rule doesn't apply to the source file, implementation
* must return null. SourceFileScanner will then omit the source file in
* question.</p>
diff --git a/src/main/org/apache/tools/ant/types/optional/ScriptSelector.java b/src/main/org/apache/tools/ant/types/optional/ScriptSelector.java
index e5e11a51d..da9f0624c 100644
--- a/src/main/org/apache/tools/ant/types/optional/ScriptSelector.java
+++ b/src/main/org/apache/tools/ant/types/optional/ScriptSelector.java
@@ -87,7 +87,7 @@ public class ScriptSelector extends BaseSelector {
* Initialize on demand.
*
* @throws org.apache.tools.ant.BuildException
- * if someting goes wrong
+ * if something goes wrong
*/
private void init() throws BuildException {
if (runner != null) {
@@ -97,7 +97,7 @@ public class ScriptSelector extends BaseSelector {
}
/**
- * Load the script from an external file ; optional.
+ * Load the script from an external file; optional.
*
* @param file the file containing the script source.
*/
@@ -223,7 +223,7 @@ public class ScriptSelector extends BaseSelector {
}
/**
- * Set the encoding of the script from an external file ; optional.
+ * Set the encoding of the script from an external file; optional.
*
* @param encoding the encoding of the file containing the script source.
* @since Ant 1.10.2
diff --git a/src/main/org/apache/tools/ant/types/optional/depend/DependScanner.java b/src/main/org/apache/tools/ant/types/optional/depend/DependScanner.java
index f21b855a5..4f2e1eb57 100644
--- a/src/main/org/apache/tools/ant/types/optional/depend/DependScanner.java
+++ b/src/main/org/apache/tools/ant/types/optional/depend/DependScanner.java
@@ -149,8 +149,8 @@ public class DependScanner extends DirectoryScanner {
/**
* @see DirectoryScanner#getExcludedDirectories
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
public String[] getExcludedDirectories() {
return null;
@@ -158,8 +158,8 @@ public class DependScanner extends DirectoryScanner {
/**
* @see DirectoryScanner#getExcludedFiles
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
public String[] getExcludedFiles() {
return null;
@@ -167,8 +167,8 @@ public class DependScanner extends DirectoryScanner {
/**
* @see DirectoryScanner#getIncludedDirectories
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
public String[] getIncludedDirectories() {
return new String[0];
@@ -176,8 +176,8 @@ public class DependScanner extends DirectoryScanner {
/**
* @see DirectoryScanner#getIncludedDirsCount
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
public int getIncludedDirsCount() {
return 0;
@@ -185,8 +185,8 @@ public class DependScanner extends DirectoryScanner {
/**
* @see DirectoryScanner#getNotIncludedDirectories
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
public String[] getNotIncludedDirectories() {
return null;
@@ -194,8 +194,8 @@ public class DependScanner extends DirectoryScanner {
/**
* @see DirectoryScanner#getNotIncludedFiles
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
public String[] getNotIncludedFiles() {
return null;
@@ -203,24 +203,24 @@ public class DependScanner extends DirectoryScanner {
/**
* @see DirectoryScanner#setExcludes
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
public void setExcludes(String[] excludes) {
}
/**
* @see DirectoryScanner#setIncludes
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
public void setIncludes(String[] includes) {
}
/**
* @see DirectoryScanner#setCaseSensitive
+ * {@inheritDoc}.
*/
- /** {@inheritDoc}. */
@Override
public void setCaseSensitive(boolean isCaseSensitive) {
}
diff --git a/src/main/org/apache/tools/ant/types/optional/image/DrawOperation.java b/src/main/org/apache/tools/ant/types/optional/image/DrawOperation.java
index 4f6410ca2..e02d0c8ee 100644
--- a/src/main/org/apache/tools/ant/types/optional/image/DrawOperation.java
+++ b/src/main/org/apache/tools/ant/types/optional/image/DrawOperation.java
@@ -24,7 +24,7 @@ import javax.media.jai.PlanarImage;
* Interface which represents an Operation which is "drawable", such
* as a Rectangle, Circle or Text. The Operation is responsible for
* creating its own image buffer and drawing itself into it, then
- * wrapping and returning it as a PlanarImage. This allows multible
+ * wrapping and returning it as a PlanarImage. This allows multiple
* "drawable" objects to be nested.
*
* @see org.apache.tools.ant.taskdefs.optional.image.Image
diff --git a/src/main/org/apache/tools/ant/types/optional/image/Ellipse.java b/src/main/org/apache/tools/ant/types/optional/image/Ellipse.java
index 46a3b8bc6..8b35afac9 100644
--- a/src/main/org/apache/tools/ant/types/optional/image/Ellipse.java
+++ b/src/main/org/apache/tools/ant/types/optional/image/Ellipse.java
@@ -36,7 +36,7 @@ public class Ellipse extends BasicShape implements DrawOperation {
/**
* Set the width.
- * @param width the width of the elipse.
+ * @param width the width of the ellipse.
*/
public void setWidth(int width) {
this.width = width;
diff --git a/src/main/org/apache/tools/ant/types/optional/image/Rotate.java b/src/main/org/apache/tools/ant/types/optional/image/Rotate.java
index 0904ba256..3c813a8d6 100644
--- a/src/main/org/apache/tools/ant/types/optional/image/Rotate.java
+++ b/src/main/org/apache/tools/ant/types/optional/image/Rotate.java
@@ -73,18 +73,18 @@ public class Rotate extends TransformOperation implements DrawOperation {
if (instr instanceof DrawOperation) {
// If this TransformOperation has DrawOperation children
// then Rotate the first child and return.
- System.out.println("Execing Draws");
+ System.out.println("Exec'ing Draws");
PlanarImage op = ((DrawOperation) instr).executeDrawOperation();
return performRotate(op);
}
if (instr instanceof TransformOperation) {
BufferedImage bi = image.getAsBufferedImage();
- System.out.println("Execing Transforms");
+ System.out.println("Exec'ing Transforms");
image = ((TransformOperation) instr)
.executeTransformOperation(PlanarImage.wrapRenderedImage(bi));
}
}
- System.out.println("Execing as TransformOperation");
+ System.out.println("Exec'ing as TransformOperation");
image = performRotate(image);
System.out.println(image);
return image;
diff --git a/src/main/org/apache/tools/ant/types/resolver/ApacheCatalog.java b/src/main/org/apache/tools/ant/types/resolver/ApacheCatalog.java
index 6097b836c..04047da62 100644
--- a/src/main/org/apache/tools/ant/types/resolver/ApacheCatalog.java
+++ b/src/main/org/apache/tools/ant/types/resolver/ApacheCatalog.java
@@ -35,7 +35,7 @@ import org.apache.xml.resolver.helpers.PublicId;
* See XMLCatalog.java for the details of the entity and URI
* resolution algorithms.
*
- * @see org.apache.tools.ant.types.XMLCatalog.CatalogResolver
+ * @see org.apache.tools.ant.types.XMLCatalog
* @since Ant 1.6
*/
public class ApacheCatalog extends Catalog {
@@ -120,4 +120,4 @@ public class ApacheCatalog extends Catalog {
super.addEntry(entry);
}
-} //- ApacheCatalog
+}
diff --git a/src/main/org/apache/tools/ant/types/resolver/ApacheCatalogResolver.java b/src/main/org/apache/tools/ant/types/resolver/ApacheCatalogResolver.java
index 1a7b44c7a..fccedf7f6 100644
--- a/src/main/org/apache/tools/ant/types/resolver/ApacheCatalogResolver.java
+++ b/src/main/org/apache/tools/ant/types/resolver/ApacheCatalogResolver.java
@@ -52,7 +52,7 @@ import org.apache.xml.resolver.tools.CatalogResolver;
* in XMLCatalog's lookup algorithm. See XMLCatalog.java for more
* details.</p>
*
- * @see org.apache.tools.ant.types.XMLCatalog.CatalogResolver
+ * @see org.apache.tools.ant.types.XMLCatalog
* @see org.apache.xml.resolver.CatalogManager
* @since Ant 1.6
*/
@@ -168,4 +168,4 @@ public class ApacheCatalogResolver extends CatalogResolver {
xmlCatalog.addEntity(entity);
}
-} //-- ApacheCatalogResolver
+}
diff --git a/src/main/org/apache/tools/ant/types/resources/AbstractClasspathResource.java b/src/main/org/apache/tools/ant/types/resources/AbstractClasspathResource.java
index d37e5ee35..9bc14810d 100644
--- a/src/main/org/apache/tools/ant/types/resources/AbstractClasspathResource.java
+++ b/src/main/org/apache/tools/ant/types/resources/AbstractClasspathResource.java
@@ -30,11 +30,10 @@ import org.apache.tools.ant.types.Resource;
import org.apache.tools.ant.util.FileUtils;
/**
- *
* A Resource representation of anything that is accessed via a Java classloader.
* The core methods to set/resolve the classpath are provided.
- * @since Ant 1.8.0
*
+ * @since Ant 1.8.0
*/
public abstract class AbstractClasspathResource extends Resource {
@@ -107,10 +106,11 @@ public abstract class AbstractClasspathResource extends Resource {
* Use the reference to locate the loader. If the loader is not
* found, taskdef will use the specified classpath and register it
* with the specified name.
- *
+ * <p>
* This allow multiple taskdef/typedef to use the same class loader,
* so they can be used together. It eliminate the need to
* put them in the CLASSPATH.
+ * </p>
*
* @param r the reference to locate the loader.
*/
@@ -124,6 +124,7 @@ public abstract class AbstractClasspathResource extends Resource {
*
* <p>Only relevant if a classpath has been specified.</p>
*
+ * @param b boolean
* @since Ant 1.8.0
*/
public void setParentFirst(boolean b) {
@@ -132,6 +133,7 @@ public abstract class AbstractClasspathResource extends Resource {
/**
* Overrides the super version.
+ *
* @param r the Reference to set.
*/
public void setRefid(Reference r) {
@@ -144,6 +146,7 @@ public abstract class AbstractClasspathResource extends Resource {
/**
* Learn whether this resource exists. This implementation opens the input stream
* as the test.
+ *
* @return true if this resource exists.
*/
public boolean isExists() {
@@ -160,6 +163,7 @@ public abstract class AbstractClasspathResource extends Resource {
/**
* Return an InputStream for reading the contents of this Resource.
+ *
* @return an InputStream object.
* @throws IOException if an error occurs.
*/
@@ -194,6 +198,8 @@ public abstract class AbstractClasspathResource extends Resource {
* combines the various ways that could specify a ClassLoader and
* potentially creates one that needs to be cleaned up when it is
* no longer needed so that classes can get garbage collected.
+ *
+ * @return ClassLoaderWithFlag
*/
protected ClassLoaderWithFlag getClassLoader() {
ClassLoader cl = null;
@@ -225,6 +231,7 @@ public abstract class AbstractClasspathResource extends Resource {
/**
* open the input stream from a specific classloader
+ *
* @param cl the classloader to use. Will be null if the system classloader is used
* @return an open input stream for the resource
* @throws IOException if an error occurs.
diff --git a/src/main/org/apache/tools/ant/types/resources/ArchiveResource.java b/src/main/org/apache/tools/ant/types/resources/ArchiveResource.java
index 9fe16abd5..6ac43ea87 100644
--- a/src/main/org/apache/tools/ant/types/resources/ArchiveResource.java
+++ b/src/main/org/apache/tools/ant/types/resources/ArchiveResource.java
@@ -242,7 +242,7 @@ public abstract class ArchiveResource extends Resource {
/**
* Format this Resource as a String.
- * @return String representatation of this Resource.
+ * @return String representation of this Resource.
*/
@Override
public String toString() {
diff --git a/src/main/org/apache/tools/ant/types/resources/Archives.java b/src/main/org/apache/tools/ant/types/resources/Archives.java
index f616eb74b..23c18f3a8 100644
--- a/src/main/org/apache/tools/ant/types/resources/Archives.java
+++ b/src/main/org/apache/tools/ant/types/resources/Archives.java
@@ -48,6 +48,8 @@ public class Archives extends DataType
/**
* Wrapper to identify nested resource collections as ZIP
* archives.
+ *
+ * @return Union
*/
public Union createZips() {
if (isReference()) {
@@ -60,6 +62,8 @@ public class Archives extends DataType
/**
* Wrapper to identify nested resource collections as ZIP
* archives.
+ *
+ * @return Union
*/
public Union createTars() {
if (isReference()) {
@@ -71,6 +75,8 @@ public class Archives extends DataType
/**
* Sums the sizes of nested archives.
+ *
+ * @return int
*/
@Override
public int size() {
@@ -83,6 +89,8 @@ public class Archives extends DataType
/**
* Merges the nested collections.
+ *
+ * @return Iterator&lt;Resource&gt;
*/
public Iterator<Resource> iterator() {
if (isReference()) {
@@ -107,6 +115,7 @@ public class Archives extends DataType
/**
* Overrides the base version.
+ *
* @param r the Reference to set.
*/
@Override
@@ -121,6 +130,7 @@ public class Archives extends DataType
/**
* Implement clone. The nested resource collections are cloned as
* well.
+ *
* @return a cloned instance.
*/
@Override
@@ -140,6 +150,8 @@ public class Archives extends DataType
/**
* Turns all nested resources into corresponding ArchiveFileSets
* and returns an iterator over the collected archives.
+ *
+ * @return Iterator&lt;ArchiveFileSet&gt;
*/
protected Iterator<ArchiveFileSet> grabArchives() {
return streamArchives().iterator();
@@ -161,6 +173,10 @@ public class Archives extends DataType
/**
* Configures the archivefileset based on this type's settings,
* set the source.
+ *
+ * @param afs ArchiveFileSet
+ * @param src Resource
+ * @return ArchiveFileSet
*/
protected ArchiveFileSet configureArchive(final ArchiveFileSet afs,
final Resource src) {
@@ -172,6 +188,7 @@ public class Archives extends DataType
/**
* Overrides the version of DataType to recurse on all DataType
* child elements that may have been added.
+ *
* @param stk the stack of data types to use (recursively).
* @param p the project to use to dereference the references.
* @throws BuildException on error.
diff --git a/src/main/org/apache/tools/ant/types/resources/BaseResourceCollectionContainer.java b/src/main/org/apache/tools/ant/types/resources/BaseResourceCollectionContainer.java
index b33533488..c26f8a4c2 100644
--- a/src/main/org/apache/tools/ant/types/resources/BaseResourceCollectionContainer.java
+++ b/src/main/org/apache/tools/ant/types/resources/BaseResourceCollectionContainer.java
@@ -50,6 +50,7 @@ public abstract class BaseResourceCollectionContainer
/**
* Create a new BaseResourceCollectionContainer.
+ * @param project Project
* @since Ant 1.8
*/
public BaseResourceCollectionContainer(Project project) {
diff --git a/src/main/org/apache/tools/ant/types/resources/ContentTransformingResource.java b/src/main/org/apache/tools/ant/types/resources/ContentTransformingResource.java
index 2a00872af..fd34ee2c0 100644
--- a/src/main/org/apache/tools/ant/types/resources/ContentTransformingResource.java
+++ b/src/main/org/apache/tools/ant/types/resources/ContentTransformingResource.java
@@ -135,6 +135,8 @@ public abstract class ContentTransformingResource extends ResourceDecorator {
* are appended to, for example.</p>
*
* <p>This implementations returns false.</p>
+ *
+ * @return boolean false
*/
protected boolean isAppendSupported() {
return false;
@@ -144,7 +146,7 @@ public abstract class ContentTransformingResource extends ResourceDecorator {
* Get a content-filtering/transforming InputStream.
*
* @param in InputStream to wrap, will never be null.
- * @return a compressed inputstream.
+ * @return a compressed InputStream.
* @throws IOException if there is a problem.
*/
protected abstract InputStream wrapStream(InputStream in)
@@ -154,7 +156,7 @@ public abstract class ContentTransformingResource extends ResourceDecorator {
* Get a content-filtering/transforming OutputStream.
*
* @param out OutputStream to wrap, will never be null.
- * @return a compressed outputstream.
+ * @return a compressed OutputStream.
* @throws IOException if there is a problem.
*/
protected abstract OutputStream wrapStream(OutputStream out)
diff --git a/src/main/org/apache/tools/ant/types/resources/LazyResourceCollectionWrapper.java b/src/main/org/apache/tools/ant/types/resources/LazyResourceCollectionWrapper.java
index e7b2fcace..b470403c4 100644
--- a/src/main/org/apache/tools/ant/types/resources/LazyResourceCollectionWrapper.java
+++ b/src/main/org/apache/tools/ant/types/resources/LazyResourceCollectionWrapper.java
@@ -67,7 +67,7 @@ public class LazyResourceCollectionWrapper extends
/**
* Specify if the resource should be filtered or not. This function should
- * be overrided in order to define the filtering algorithm
+ * be overriden in order to define the filtering algorithm
*
* @param r resource considered for filtration
* @return whether the resource should be filtered or not
diff --git a/src/main/org/apache/tools/ant/types/resources/LogOutputResource.java b/src/main/org/apache/tools/ant/types/resources/LogOutputResource.java
index 1e91a8800..a13fe1791 100644
--- a/src/main/org/apache/tools/ant/types/resources/LogOutputResource.java
+++ b/src/main/org/apache/tools/ant/types/resources/LogOutputResource.java
@@ -35,7 +35,7 @@ public class LogOutputResource extends Resource implements Appendable {
/**
* Create a new LogOutputResource.
- * @param managingComponent
+ * @param managingComponent ditto
*/
public LogOutputResource(ProjectComponent managingComponent) {
super(NAME);
diff --git a/src/main/org/apache/tools/ant/types/resources/MappedResourceCollection.java b/src/main/org/apache/tools/ant/types/resources/MappedResourceCollection.java
index 13d84d1c4..c870cc18a 100644
--- a/src/main/org/apache/tools/ant/types/resources/MappedResourceCollection.java
+++ b/src/main/org/apache/tools/ant/types/resources/MappedResourceCollection.java
@@ -113,6 +113,7 @@ public class MappedResourceCollection
/**
* Set whether to cache collections.
+ * @param cache boolean
* @since Ant 1.8.1
*/
public void setCache(boolean cache) {
diff --git a/src/main/org/apache/tools/ant/types/resources/ResourceDecorator.java b/src/main/org/apache/tools/ant/types/resources/ResourceDecorator.java
index 1856d8598..ace0de2a4 100644
--- a/src/main/org/apache/tools/ant/types/resources/ResourceDecorator.java
+++ b/src/main/org/apache/tools/ant/types/resources/ResourceDecorator.java
@@ -201,6 +201,7 @@ public abstract class ResourceDecorator extends Resource {
/**
* De-references refids if any, ensures a wrapped resource has
* been specified.
+ * @return Resource
*/
protected final Resource getResource() {
if (isReference()) {
diff --git a/src/main/org/apache/tools/ant/types/resources/ResourceList.java b/src/main/org/apache/tools/ant/types/resources/ResourceList.java
index ed8f5ec25..aee4a78d5 100644
--- a/src/main/org/apache/tools/ant/types/resources/ResourceList.java
+++ b/src/main/org/apache/tools/ant/types/resources/ResourceList.java
@@ -56,6 +56,8 @@ public class ResourceList extends DataType implements ResourceCollection {
/**
* Adds a source.
+ *
+ * @param rc ResourceCollection
*/
public void add(ResourceCollection rc) {
if (isReference()) {
@@ -67,6 +69,8 @@ public class ResourceList extends DataType implements ResourceCollection {
/**
* Adds a FilterChain.
+ *
+ * @param filter FilterChain
*/
public final void addFilterChain(FilterChain filter) {
if (isReference()) {
@@ -78,12 +82,15 @@ public class ResourceList extends DataType implements ResourceCollection {
/**
* Encoding to use for input, defaults to the platform's default
- * encoding. <p>
+ * encoding.
*
+ * <p>
* For a list of possible values see
* <a href="http://java.sun.com/j2se/1.5.0/docs/guide/intl/encoding.doc.html">
- * http://java.sun.com/j2se/1.5.0/docs/guide/intl/encoding.doc.html
- * </a>.</p>
+ * http://java.sun.com/j2se/1.5.0/docs/guide/intl/encoding.doc.html</a>.
+ * </p>
+ *
+ * @param encoding String
*/
public final void setEncoding(String encoding) {
if (isReference()) {
@@ -95,6 +102,8 @@ public class ResourceList extends DataType implements ResourceCollection {
/**
* Makes this instance in effect a reference to another ResourceList
* instance.
+ *
+ * @param r Reference
*/
@Override
public void setRefid(Reference r) throws BuildException {
@@ -111,6 +120,7 @@ public class ResourceList extends DataType implements ResourceCollection {
* Fulfill the ResourceCollection contract. The Iterator returned
* will throw ConcurrentModificationExceptions if ResourceCollections
* are added to this container while the Iterator is in use.
+ *
* @return a "fail-fast" Iterator.
*/
@Override
@@ -123,6 +133,7 @@ public class ResourceList extends DataType implements ResourceCollection {
/**
* Fulfill the ResourceCollection contract.
+ *
* @return number of elements as int.
*/
@Override
@@ -135,6 +146,7 @@ public class ResourceList extends DataType implements ResourceCollection {
/**
* Fulfill the ResourceCollection contract.
+ *
* @return whether this is a filesystem-only resource collection.
*/
@Override
@@ -148,6 +160,7 @@ public class ResourceList extends DataType implements ResourceCollection {
/**
* Overrides the version of DataType to recurse on all DataType
* child elements that may have been added.
+ *
* @param stk the stack of data types to use (recursively).
* @param p the project to use to dereference the references.
* @throws BuildException on error.
diff --git a/src/main/org/apache/tools/ant/types/resources/Resources.java b/src/main/org/apache/tools/ant/types/resources/Resources.java
index b0acfa32f..4b3d4dde3 100644
--- a/src/main/org/apache/tools/ant/types/resources/Resources.java
+++ b/src/main/org/apache/tools/ant/types/resources/Resources.java
@@ -136,6 +136,7 @@ public class Resources extends DataType implements ResourceCollection {
/**
* Create a new Resources.
+ * @param project Project
* @since Ant 1.8
*/
public Resources(Project project) {
diff --git a/src/main/org/apache/tools/ant/types/resources/SizeLimitCollection.java b/src/main/org/apache/tools/ant/types/resources/SizeLimitCollection.java
index 6177f2e3c..8f6ed386c 100644
--- a/src/main/org/apache/tools/ant/types/resources/SizeLimitCollection.java
+++ b/src/main/org/apache/tools/ant/types/resources/SizeLimitCollection.java
@@ -31,7 +31,7 @@ public abstract class SizeLimitCollection extends BaseResourceCollectionWrapper
/**
* Set the number of resources to be included.
- * @param i the count as <code>int</count>.
+ * @param i the count as <code>int</code>.
*/
public synchronized void setCount(int i) {
checkAttributesAllowed();
@@ -40,7 +40,7 @@ public abstract class SizeLimitCollection extends BaseResourceCollectionWrapper
/**
* Get the number of resources to be included. Default is 1.
- * @return the count as <code>int</count>.
+ * @return the count as <code>int</code>.
*/
public synchronized int getCount() {
return count;
@@ -56,7 +56,7 @@ public abstract class SizeLimitCollection extends BaseResourceCollectionWrapper
}
/**
- * Get the count, verifying it is >= 0.
+ * Get the count, verifying it is &gt;= 0.
* @return int count
*/
protected int getValidCount() {
diff --git a/src/main/org/apache/tools/ant/types/resources/URLResource.java b/src/main/org/apache/tools/ant/types/resources/URLResource.java
index 027a9bd51..643ec0087 100644
--- a/src/main/org/apache/tools/ant/types/resources/URLResource.java
+++ b/src/main/org/apache/tools/ant/types/resources/URLResource.java
@@ -110,6 +110,7 @@ public class URLResource extends Resource implements URLProvider {
/**
* Base URL which combined with the relativePath attribute defines
* the URL.
+ * @param base URL
* @since Ant 1.8.0
*/
public synchronized void setBaseURL(URL base) {
@@ -123,6 +124,7 @@ public class URLResource extends Resource implements URLProvider {
/**
* Relative path which combined with the baseURL attribute defines
* the URL.
+ * @param r String
* @since Ant 1.8.0
*/
public synchronized void setRelativePath(String r) {
diff --git a/src/main/org/apache/tools/ant/types/resources/Union.java b/src/main/org/apache/tools/ant/types/resources/Union.java
index 9c106589b..43c1b5728 100644
--- a/src/main/org/apache/tools/ant/types/resources/Union.java
+++ b/src/main/org/apache/tools/ant/types/resources/Union.java
@@ -109,6 +109,7 @@ public class Union extends BaseResourceCollectionContainer {
/**
* Unify the contained Resources.
+ * @param <T> resource type
* @param asString indicates whether the resulting Collection
* should contain Strings instead of Resources.
* @return a Collection of Resources.
@@ -122,7 +123,7 @@ public class Union extends BaseResourceCollectionContainer {
/**
* Get a collection of strings representing the unified resource set (strings may duplicate).
- * @return Collection<String>
+ * @return Collection&lt;String&gt;
*/
protected Collection<String> getAllToStrings() {
return streamResources(Object::toString)
@@ -131,7 +132,7 @@ public class Union extends BaseResourceCollectionContainer {
/**
* Get the unified set of contained Resources.
- * @return Set<Resource>
+ * @return Set&lt;Resource&gt;
*/
protected Set<Resource> getAllResources() {
return streamResources()
diff --git a/src/main/org/apache/tools/ant/types/resources/ZipResource.java b/src/main/org/apache/tools/ant/types/resources/ZipResource.java
index 37fc98ec4..1dec5464c 100644
--- a/src/main/org/apache/tools/ant/types/resources/ZipResource.java
+++ b/src/main/org/apache/tools/ant/types/resources/ZipResource.java
@@ -186,6 +186,7 @@ public class ZipResource extends ArchiveResource {
/**
* The compression method that has been used.
+ * @return int
* @since Ant 1.8.0
*/
public int getMethod() {
diff --git a/src/main/org/apache/tools/ant/types/resources/selectors/Name.java b/src/main/org/apache/tools/ant/types/resources/selectors/Name.java
index fcbe51e08..75d4f25a2 100644
--- a/src/main/org/apache/tools/ant/types/resources/selectors/Name.java
+++ b/src/main/org/apache/tools/ant/types/resources/selectors/Name.java
@@ -108,7 +108,7 @@ public class Name implements ResourceSelector {
/**
* Whether the difference between / and \ (the two common
* directory characters) is ignored.
- *
+ * @return boolean
* @since Ant 1.8.0
*/
public boolean doesHandledirSep() {
diff --git a/src/main/org/apache/tools/ant/types/resources/selectors/ResourceSelectorContainer.java b/src/main/org/apache/tools/ant/types/resources/selectors/ResourceSelectorContainer.java
index 795d4538b..9ac639c27 100644
--- a/src/main/org/apache/tools/ant/types/resources/selectors/ResourceSelectorContainer.java
+++ b/src/main/org/apache/tools/ant/types/resources/selectors/ResourceSelectorContainer.java
@@ -43,7 +43,7 @@ public class ResourceSelectorContainer extends DataType {
/**
* Construct a new ResourceSelectorContainer with the specified array of selectors.
- * @param r the ResourceSelector[] to add.
+ * @param resourceSelectors the ResourceSelector[] to add.
*/
public ResourceSelectorContainer(ResourceSelector... resourceSelectors) {
for (ResourceSelector rsel : resourceSelectors) {
diff --git a/src/main/org/apache/tools/ant/types/selectors/AbstractSelectorContainer.java b/src/main/org/apache/tools/ant/types/selectors/AbstractSelectorContainer.java
index 90a2a877f..21fbdeb40 100644
--- a/src/main/org/apache/tools/ant/types/selectors/AbstractSelectorContainer.java
+++ b/src/main/org/apache/tools/ant/types/selectors/AbstractSelectorContainer.java
@@ -301,6 +301,7 @@ public abstract class AbstractSelectorContainer extends DataType
}
/**
+ * @param e ExecutableSelector
* @since 1.10.0
*/
public void addExecutable(ExecutableSelector e) {
@@ -308,6 +309,7 @@ public abstract class AbstractSelectorContainer extends DataType
}
/**
+ * @param e SymlinkSelector
* @since 1.10.0
*/
public void addSymlink(SymlinkSelector e) {
@@ -315,6 +317,7 @@ public abstract class AbstractSelectorContainer extends DataType
}
/**
+ * @param o OwnedBySelector
* @since 1.10.0
*/
public void addOwnedBy(OwnedBySelector o) {
diff --git a/src/main/org/apache/tools/ant/types/selectors/BaseSelector.java b/src/main/org/apache/tools/ant/types/selectors/BaseSelector.java
index 6307ced40..7ae6d8070 100644
--- a/src/main/org/apache/tools/ant/types/selectors/BaseSelector.java
+++ b/src/main/org/apache/tools/ant/types/selectors/BaseSelector.java
@@ -53,6 +53,7 @@ public abstract class BaseSelector extends DataType implements FileSelector {
* the first error message is recorded.
*
* @param msg The error message any BuildException should throw.
+ * @param cause Throwable
*/
public void setError(String msg, Throwable cause) {
if (errmsg == null) {
diff --git a/src/main/org/apache/tools/ant/types/selectors/BaseSelectorContainer.java b/src/main/org/apache/tools/ant/types/selectors/BaseSelectorContainer.java
index baf14dab3..fe90b3863 100644
--- a/src/main/org/apache/tools/ant/types/selectors/BaseSelectorContainer.java
+++ b/src/main/org/apache/tools/ant/types/selectors/BaseSelectorContainer.java
@@ -297,6 +297,7 @@ public abstract class BaseSelectorContainer extends BaseSelector
}
/**
+ * @param e ExecutableSelector
* @since 1.10.0
*/
public void addExecutable(ExecutableSelector e) {
@@ -304,6 +305,7 @@ public abstract class BaseSelectorContainer extends BaseSelector
}
/**
+ * @param e SymlinkSelector
* @since 1.10.0
*/
public void addSymlink(SymlinkSelector e) {
@@ -311,6 +313,7 @@ public abstract class BaseSelectorContainer extends BaseSelector
}
/**
+ * @param o OwnedBySelector
* @since 1.10.0
*/
public void addOwnedBy(OwnedBySelector o) {
diff --git a/src/main/org/apache/tools/ant/types/selectors/DateSelector.java b/src/main/org/apache/tools/ant/types/selectors/DateSelector.java
index e79061c78..d05a75262 100644
--- a/src/main/org/apache/tools/ant/types/selectors/DateSelector.java
+++ b/src/main/org/apache/tools/ant/types/selectors/DateSelector.java
@@ -237,7 +237,6 @@ public class DateSelector extends BaseExtendSelector {
/**
* Enumerated attribute with the values for time comparison.
- * <p>
*/
public static class TimeComparisons extends TimeComparison {
}
diff --git a/src/main/org/apache/tools/ant/types/selectors/DifferentSelector.java b/src/main/org/apache/tools/ant/types/selectors/DifferentSelector.java
index 90fa9e02b..c98705343 100644
--- a/src/main/org/apache/tools/ant/types/selectors/DifferentSelector.java
+++ b/src/main/org/apache/tools/ant/types/selectors/DifferentSelector.java
@@ -40,12 +40,13 @@ import org.apache.tools.ant.util.FileUtils;
* output files, followup tasks can be driven off copies made with a different
* selector, so their dependencies are driven on the absolute state of the
* files, not a timestamp.
+ * </p>
* <p>
* Clearly, however, bulk file comparisons is inefficient; anything that can
* use timestamps is to be preferred. If this selector must be used, use it
- * over as few files as possible, perhaps following it with an &lt;uptodate;&gt
+ * over as few files as possible, perhaps following it with an &lt;uptodate&gt;
* to keep the descendant routines conditional.
- *
+ * </p>
*/
public class DifferentSelector extends MappingSelector {
diff --git a/src/main/org/apache/tools/ant/types/selectors/FileSelector.java b/src/main/org/apache/tools/ant/types/selectors/FileSelector.java
index 984db2383..f583bdf64 100644
--- a/src/main/org/apache/tools/ant/types/selectors/FileSelector.java
+++ b/src/main/org/apache/tools/ant/types/selectors/FileSelector.java
@@ -50,7 +50,7 @@ public interface FileSelector extends ResourceSelector {
/**
* Implement a basic {@link Resource} selection that delegates to this
* {@link FileSelector}.
- * @param r
+ * @param r resource
* @return whether the resource is selected
*/
default boolean isSelected(Resource r) {
diff --git a/src/main/org/apache/tools/ant/types/selectors/OwnedBySelector.java b/src/main/org/apache/tools/ant/types/selectors/OwnedBySelector.java
index 88f3b08f0..d37fd2f64 100644
--- a/src/main/org/apache/tools/ant/types/selectors/OwnedBySelector.java
+++ b/src/main/org/apache/tools/ant/types/selectors/OwnedBySelector.java
@@ -31,7 +31,7 @@ import org.apache.tools.ant.BuildException;
* <p>Owner is defined in terms of {@link
* java.nio.file.Files#getOwner}, this means the selector will accept
* any file that exists and is owned by the given user. If the {@code
- * getOwner} method throws an {@code UnsupportedOperattionException}
+ * getOwner} method throws an {@code UnsupportedOperationException}
* the file in question is not included.</p>
*
* @since Ant 1.10.0
diff --git a/src/main/org/apache/tools/ant/types/selectors/PresentSelector.java b/src/main/org/apache/tools/ant/types/selectors/PresentSelector.java
index 1b39d2238..a45c1ccae 100644
--- a/src/main/org/apache/tools/ant/types/selectors/PresentSelector.java
+++ b/src/main/org/apache/tools/ant/types/selectors/PresentSelector.java
@@ -112,7 +112,7 @@ public class PresentSelector extends BaseSelector {
* that already exist in the source directory, hence the lack of
* a <code>destonly</code> option.
*
- * @param fp An attribute set to either <code>srconly</code or
+ * @param fp An attribute set to either <code>srconly</code> or
* <code>both</code>.
*/
public void setPresent(final FilePresence fp) {
diff --git a/src/main/org/apache/tools/ant/types/selectors/SizeSelector.java b/src/main/org/apache/tools/ant/types/selectors/SizeSelector.java
index f62880b9b..8022fa6b1 100644
--- a/src/main/org/apache/tools/ant/types/selectors/SizeSelector.java
+++ b/src/main/org/apache/tools/ant/types/selectors/SizeSelector.java
@@ -63,8 +63,8 @@ public class SizeSelector extends BaseExtendSelector {
/**
* Returns a <code>String</code> object representing the specified
- * SizeSelector. This is "{sizeselector value: " + <"compare",
- * "less", "more", "equal"> + "}".
+ * SizeSelector. This is "{sizeselector value: " + &lt;"compare",
+ * "less", "more", "equal"&gt; + "}".
* @return a string describing this object
*/
public String toString() {
diff --git a/src/main/org/apache/tools/ant/types/selectors/TokenizedPath.java b/src/main/org/apache/tools/ant/types/selectors/TokenizedPath.java
index 48e4ce763..3eae584f1 100644
--- a/src/main/org/apache/tools/ant/types/selectors/TokenizedPath.java
+++ b/src/main/org/apache/tools/ant/types/selectors/TokenizedPath.java
@@ -94,12 +94,14 @@ public class TokenizedPath {
/**
* The depth (or length) of a path.
+ * @return int
*/
public int depth() {
return tokenizedPath.length;
}
- /* package */ String[] getTokens() {
+ /* package */
+ String[] getTokens() {
return tokenizedPath;
}
@@ -136,6 +138,7 @@ public class TokenizedPath {
* Do we have to traverse a symlink when trying to reach path from
* basedir?
* @param base base File (dir).
+ * @return boolean
*/
public boolean isSymlink(File base) {
for (int i = 0; i < tokenizedPath.length; i++) {
@@ -161,6 +164,7 @@ public class TokenizedPath {
/**
* true if the original paths are equal.
+ * @return boolean
*/
@Override
public boolean equals(Object o) {
@@ -215,6 +219,8 @@ public class TokenizedPath {
/**
* Creates a TokenizedPattern from the same tokens that make up
* this path.
+ *
+ * @return TokenizedPattern
*/
public TokenizedPattern toPattern() {
return new TokenizedPattern(path, tokenizedPath);
diff --git a/src/main/org/apache/tools/ant/types/selectors/TokenizedPattern.java b/src/main/org/apache/tools/ant/types/selectors/TokenizedPattern.java
index e9413df63..03d5e3b4c 100644
--- a/src/main/org/apache/tools/ant/types/selectors/TokenizedPattern.java
+++ b/src/main/org/apache/tools/ant/types/selectors/TokenizedPattern.java
@@ -75,6 +75,10 @@ public class TokenizedPattern {
/**
* Tests whether or not this pattern matches the start of
* a path.
+ *
+ * @param path TokenizedPath
+ * @param caseSensitive boolean
+ * @return boolean
*/
public boolean matchStartOf(TokenizedPath path,
boolean caseSensitive) {
@@ -95,6 +99,8 @@ public class TokenizedPattern {
/**
* true if the original patterns are equal.
+ *
+ * @param o Object
*/
public boolean equals(Object o) {
return o instanceof TokenizedPattern
@@ -107,6 +113,8 @@ public class TokenizedPattern {
/**
* The depth (or length) of a pattern.
+ *
+ * @return int
*/
public int depth() {
return tokenizedPattern.length;
@@ -114,6 +122,9 @@ public class TokenizedPattern {
/**
* Does the tokenized pattern contain the given string?
+ *
+ * @param pat String
+ * @return boolean
*/
public boolean containsPattern(String pat) {
return Stream.of(tokenizedPattern).anyMatch(Predicate.isEqual(pat));
@@ -122,6 +133,7 @@ public class TokenizedPattern {
/**
* Returns a new TokenizedPath where all tokens of this pattern to
* the right containing wildcards have been removed
+ *
* @return the leftmost part of the pattern without wildcards
*/
public TokenizedPath rtrimWildcardTokens() {
@@ -147,6 +159,9 @@ public class TokenizedPattern {
/**
* true if the last token equals the given string.
+ *
+ * @param s String
+ * @return boolean
*/
public boolean endsWith(String s) {
return tokenizedPattern.length > 0
@@ -155,6 +170,8 @@ public class TokenizedPattern {
/**
* Returns a new pattern without the last token of this pattern.
+ *
+ * @return TokenizedPattern
*/
public TokenizedPattern withoutLastToken() {
if (tokenizedPattern.length == 0) {
diff --git a/src/main/org/apache/tools/ant/types/selectors/modifiedselector/ChecksumAlgorithm.java b/src/main/org/apache/tools/ant/types/selectors/modifiedselector/ChecksumAlgorithm.java
index a660caf03..417b52cde 100644
--- a/src/main/org/apache/tools/ant/types/selectors/modifiedselector/ChecksumAlgorithm.java
+++ b/src/main/org/apache/tools/ant/types/selectors/modifiedselector/ChecksumAlgorithm.java
@@ -34,17 +34,18 @@ import org.apache.tools.ant.BuildException;
/**
* Computes a 'checksum' for the content of file using
* java.util.zip.CRC32 and java.util.zip.Adler32.
- * Use of this algorithm doesn't require any additional nested <param>s.
- * Supported <param>s are:
+ * Use of this algorithm doesn't require any additional nested &lt;param&gt;s.
+ * Supported &lt;param&gt;s are:
* <table>
+ * <caption>Checksum algorithm parameters</caption>
* <tr>
* <th>name</th><th>values</th><th>description</th><th>required</th>
* </tr>
* <tr>
- * <td> algorithm.algorithm </td>
- * <td> ADLER | CRC ( default ) </td>
- * <td> name of the algorithm the checksum should use </td>
- * <td> no, defaults to CRC </td>
+ * <td>algorithm.algorithm</td>
+ * <td>ADLER | CRC (default)</td>
+ * <td>name of the algorithm the checksum should use</td>
+ * <td>no, defaults to CRC</td>
* </tr>
* </table>
*
@@ -124,8 +125,8 @@ public class ChecksumAlgorithm implements Algorithm {
try (CheckedInputStream check = new CheckedInputStream(
new BufferedInputStream(Files.newInputStream(file.toPath())), checksum)) {
// Read the file
- while (check.read() != -1)
- ;
+ while (check.read() != -1) {
+ }
return Long.toString(check.getChecksum().getValue());
} catch (Exception e) {
}
diff --git a/src/main/org/apache/tools/ant/types/selectors/modifiedselector/DigestAlgorithm.java b/src/main/org/apache/tools/ant/types/selectors/modifiedselector/DigestAlgorithm.java
index cc9a66c4e..55077a315 100644
--- a/src/main/org/apache/tools/ant/types/selectors/modifiedselector/DigestAlgorithm.java
+++ b/src/main/org/apache/tools/ant/types/selectors/modifiedselector/DigestAlgorithm.java
@@ -33,23 +33,24 @@ import org.apache.tools.ant.BuildException;
/**
* Computes a 'hashvalue' for the content of file using
* java.security.MessageDigest.
- * Use of this algorithm doesn't require any additional nested <param>s.
- * Supported <param>s are:
+ * Use of this algorithm doesn't require any additional nested &lt;param&gt;s.
+ * Supported &lt;param&gt;s are:
* <table>
+ * <caption>Digest algorithm parameters</caption>
* <tr>
* <th>name</th><th>values</th><th>description</th><th>required</th>
* </tr>
* <tr>
- * <td> algorithm.algorithm </td>
- * <td> MD5 | SHA (default provider) </td>
- * <td> name of the algorithm the provider should use </td>
- * <td> no, defaults to MD5 </td>
+ * <td>algorithm.algorithm</td>
+ * <td>MD5 | SHA (default provider)</td>
+ * <td>name of the algorithm the provider should use</td>
+ * <td>no, defaults to MD5</td>
* </tr>
* <tr>
- * <td> algorithm.provider </td>
- * <td> </td>
- * <td> name of the provider to use </td>
- * <td> no, defaults to <i>null</i> </td>
+ * <td> algorithm.provider</td>
+ * <td></td>
+ * <td>name of the provider to use</td>
+ * <td>no, defaults to <i>null</i></td>
* </tr>
* </table>
*
@@ -159,8 +160,8 @@ public class DigestAlgorithm implements Algorithm {
try (DigestInputStream dis = new DigestInputStream(
Files.newInputStream(file.toPath()), messageDigest)) {
// read the whole stream
- while (dis.read(buf, 0, readBufferSize) != -1)
- ;
+ while (dis.read(buf, 0, readBufferSize) != -1) {
+ }
byte[] fileDigest = messageDigest.digest();
StringBuilder checksumSb = new StringBuilder();
for (int i = 0; i < fileDigest.length; i++) {
diff --git a/src/main/org/apache/tools/ant/types/selectors/modifiedselector/HashvalueAlgorithm.java b/src/main/org/apache/tools/ant/types/selectors/modifiedselector/HashvalueAlgorithm.java
index 8af9d12ed..ab8849d61 100644
--- a/src/main/org/apache/tools/ant/types/selectors/modifiedselector/HashvalueAlgorithm.java
+++ b/src/main/org/apache/tools/ant/types/selectors/modifiedselector/HashvalueAlgorithm.java
@@ -26,7 +26,7 @@ import org.apache.tools.ant.util.FileUtils;
/**
* Computes a 'hashvalue' for the content of file using String.hashValue().
- * Use of this algorithm doesn't require any additional nested <param>s and
+ * Use of this algorithm doesn't require any additional nested &lt;param&gt;s and
* doesn't support any.
*
* @version 2003-09-13
diff --git a/src/main/org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.java b/src/main/org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.java
index f2097fdf0..331888bb9 100644
--- a/src/main/org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.java
+++ b/src/main/org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.java
@@ -52,16 +52,16 @@ import org.apache.tools.ant.util.ResourceUtils;
* in a persistent manner.</p>
*
* <p>The ModifiedSelector is implemented as a <b>CoreSelector</b> and uses default
- * values for all its attributes therefore the simplest example is <pre>
+ * values for all its attributes therefore the simplest example is</p><pre>
* &lt;copy todir="dest"&gt;
* &lt;filelist dir="src"&gt;
* &lt;modified/&gt;
* &lt;/filelist&gt;
* &lt;/copy&gt;
- * </pre></p>
+ * </pre>
*
* <p>The same example rewritten as CoreSelector with setting the all values
- * (same as defaults are) would be <pre>
+ * (same as defaults are) would be</p><pre>
* &lt;copy todir="dest"&gt;
* &lt;filelist dir="src"&gt;
* &lt;modified update="true"
@@ -73,9 +73,9 @@ import org.apache.tools.ant.util.ResourceUtils;
* &lt;/modified&gt;
* &lt;/filelist&gt;
* &lt;/copy&gt;
- * </pre></p>
+ * </pre>
*
- * <p>And the same rewritten as CustomSelector would be<pre>
+ * <p>And the same rewritten as CustomSelector would be</p><pre>
* &lt;copy todir="dest"&gt;
* &lt;filelist dir="src"&gt;
* &lt;custom class="org.apache.tools.ant.type.selectors.ModifiedSelector"&gt;
@@ -88,18 +88,18 @@ import org.apache.tools.ant.util.ResourceUtils;
* &lt;/custom&gt;
* &lt;/filelist&gt;
* &lt;/copy&gt;
- * </pre></p>
+ * </pre>
*
* <p>If you want to provide your own interface implementation you can do
* that via the *classname attributes. If the classes are not on Ant's core
* classpath, you will have to provide the path via nested &lt;classpath&gt;
- * element, so that the selector can find the classes. <pre>
+ * element, so that the selector can find the classes.</p><pre>
* &lt;modified cacheclassname="com.mycompany.MyCache"&gt;
* &lt;classpath&gt;
* &lt;pathelement location="lib/mycompany-antutil.jar"/&gt;
* &lt;/classpath&gt;
* &lt;/modified&gt;
- * </pre></p>
+ * </pre>
*
* <p>All these three examples copy the files from <i>src</i> to <i>dest</i>
* using the ModifiedSelector. The ModifiedSelector uses the <i>PropertyfileCache
@@ -116,7 +116,7 @@ import org.apache.tools.ant.util.ResourceUtils;
*
* <p>A useful scenario for this selector is inside a build environment
* for homepage generation (e.g. with <a href="http://forrest.apache.org/">
- * Apache Forrest</a>). <pre>
+ * Apache Forrest</a>).</p><pre>
* &lt;target name="generate-and-upload-site"&gt;
* &lt;echo&gt; generate the site using forrest &lt;/echo&gt;
* &lt;antcall target="site"/&gt;
@@ -128,7 +128,7 @@ import org.apache.tools.ant.util.ResourceUtils;
* &lt;/fileset&gt;
* &lt;/ftp&gt;
* &lt;/target&gt;
- * </pre> Here all <b>changed</b> files are uploaded to the server. The
+ * </pre><p>Here all <b>changed</b> files are uploaded to the server. The
* ModifiedSelector saves therefore much upload time.</p>
*
*
@@ -179,7 +179,7 @@ public class ModifiedSelector extends BaseExtendSelector
private boolean selectDirectories = true;
/**
- * Should Resources whithout an InputStream, and
+ * Should Resources without an InputStream, and
* therefore without checking, be selected?
*/
private boolean selectResourcesWithoutInputStream = true;
@@ -259,14 +259,14 @@ public class ModifiedSelector extends BaseExtendSelector
/**
* Configures this Selector.
* Does this work only once per Selector object.
- * <p>Because some problems while configuring from <custom>Selector
- * the configuration is done in the following order:<ol>
- * <li> collect the configuration data </li>
- * <li> wait for the first isSelected() call </li>
- * <li> set the default values </li>
- * <li> set values for name pattern '*': update, cache, algorithm, comparator </li>
- * <li> set values for name pattern '*.*: cache.cachefile, ... </li>
- * </ol></p>
+ * <p>Because some problems while configuring from &lt;custom&gt;Selector
+ * the configuration is done in the following order:</p><ol>
+ * <li>collect the configuration data</li>
+ * <li>wait for the first isSelected() call</li>
+ * <li>set the default values</li>
+ * <li>set values for name pattern '*': update, cache, algorithm, comparator</li>
+ * <li>set values for name pattern '*.*: cache.cachefile, ...</li>
+ * </ol>
* <p>This configuration algorithm is needed because you don't know
* the order of arriving config-data. E.g. if you first set the
* <i>cache.cachefilename</i> and after that the <i>cache</i> itself,
@@ -387,6 +387,7 @@ public class ModifiedSelector extends BaseExtendSelector
* Loads the specified class and initializes an object of that class.
* Throws a BuildException using the given message if an error occurs during
* loading/instantiation or if the object is not from the given type.
+ * @param <T> desired type
* @param classname the classname
* @param msg the message-part for the BuildException
* @param type the type to check against
@@ -455,7 +456,7 @@ public class ModifiedSelector extends BaseExtendSelector
log("The resource '"
+ resource.getName()
+ "' does not provide an InputStream, so it is not checked. "
- + "Akkording to 'selres' attribute value it is "
+ + "According to 'selres' attribute value it is "
+ ((selectResourcesWithoutInputStream) ? "" : " not")
+ "selected.", Project.MSG_INFO);
return selectResourcesWithoutInputStream;
@@ -700,7 +701,7 @@ public class ModifiedSelector extends BaseExtendSelector
/**
- * Support for nested <param name="" value=""/> tags.
+ * Support for nested <code>&lt;param name="" value=""/&gt;</code> tags.
* Parameter named <i>cache</i>, <i>algorithm</i>,
* <i>comparator</i> or <i>update</i> are mapped to
* the respective set-Method.
diff --git a/src/main/org/apache/tools/ant/types/selectors/modifiedselector/PropertiesfileCache.java b/src/main/org/apache/tools/ant/types/selectors/modifiedselector/PropertiesfileCache.java
index d0de982b8..f7392d20a 100644
--- a/src/main/org/apache/tools/ant/types/selectors/modifiedselector/PropertiesfileCache.java
+++ b/src/main/org/apache/tools/ant/types/selectors/modifiedselector/PropertiesfileCache.java
@@ -30,22 +30,23 @@ import java.util.Properties;
/**
* Use java.util.Properties for storing the values.
* The use of this Cache-implementation requires the use of the parameter
- * <param name="cache.cachefile" .../> for defining, where to store the
+ * &lt;param name="cache.cachefile" .../&gt; for defining, where to store the
* properties file.
*
* The ModifiedSelector sets the <i>cachefile</i> to the default value
* <i>cache.properties</i>.
*
- * Supported <param>s are:
+ * Supported &lt;param&gt;s are:
* <table>
+ * <caption>Cache parameters</caption>
* <tr>
* <th>name</th><th>values</th><th>description</th><th>required</th>
* </tr>
* <tr>
- * <td> cache.cachefile </td>
- * <td> <i>path to file</i> </td>
- * <td> the name of the properties file </td>
- * <td> yes </td>
+ * <td>cache.cachefile</td>
+ * <td><i>path to file</i></td>
+ * <td>the name of the properties file</td>
+ * <td>yes</td>
* </tr>
* </table>
*
diff --git a/src/main/org/apache/tools/ant/util/ClasspathUtils.java b/src/main/org/apache/tools/ant/util/ClasspathUtils.java
index 0f7787a07..acfd2b03c 100644
--- a/src/main/org/apache/tools/ant/util/ClasspathUtils.java
+++ b/src/main/org/apache/tools/ant/util/ClasspathUtils.java
@@ -216,9 +216,8 @@ public class ClasspathUtils {
/**
* Creates a fresh object instance of the specified classname.
*
- * <p> This uses the userDefinedLoader to load the specified class,
- * and then makes an instance using the default no-argument constructor.
- * </p>
+ * <p>This uses the userDefinedLoader to load the specified class,
+ * and then makes an instance using the default no-argument constructor.</p>
*
* @param className the full qualified class name to load.
* @param userDefinedLoader the classloader to use.
@@ -232,10 +231,10 @@ public class ClasspathUtils {
/**
* Creates a fresh object instance of the specified classname.
*
- * <p> This uses the userDefinedLoader to load the specified class,
- * and then makes an instance using the default no-argument constructor.
- * </p>
+ * <p>This uses the userDefinedLoader to load the specified class,
+ * and then makes an instance using the default no-argument constructor.</p>
*
+ * @param <T> desired type
* @param className the full qualified class name to load.
* @param userDefinedLoader the classloader to use.
* @param expectedType the Class that the result should be assignment
@@ -274,7 +273,7 @@ public class ClasspathUtils {
/**
* Obtains a delegate that helps out with classic classpath configuration.
*
- * @param component your projectComponent that needs the assistence
+ * @param component your projectComponent that needs the assistance
* @return the helper, delegate.
* @see ClasspathUtils.Delegate
*/
@@ -301,13 +300,13 @@ public class ClasspathUtils {
* Classes and instantiate them often expose the following ant syntax
* sugar: </p>
*
- * <ul><li> nested &lt;classpath&gt; </li>
- * <li> attribute @classpathref </li>
- * <li> attribute @classname </li></ul>
+ * <ul><li>nested &lt;classpath&gt;</li>
+ * <li>attribute @classpathref</li>
+ * <li>attribute @classname</li></ul>
*
- * <p> This class functions as a delegate handling the configuration
+ * <p>This class functions as a delegate handling the configuration
* issues for this recurring pattern. Its usage pattern, as the name
- * suggests, is delegation rather than inheritance. </p>
+ * suggests, is delegation rather than inheritance.</p>
*
* @since Ant 1.6
*/
diff --git a/src/main/org/apache/tools/ant/util/ConcatResourceInputStream.java b/src/main/org/apache/tools/ant/util/ConcatResourceInputStream.java
index d030a5593..d695f12f8 100644
--- a/src/main/org/apache/tools/ant/util/ConcatResourceInputStream.java
+++ b/src/main/org/apache/tools/ant/util/ConcatResourceInputStream.java
@@ -128,7 +128,7 @@ public class ConcatResourceInputStream extends InputStream {
if (!r.isExists()) {
continue;
}
- log("Concating " + r.toLongString(), Project.MSG_VERBOSE);
+ log("Concatenating " + r.toLongString(), Project.MSG_VERBOSE);
try {
currentStream = new BufferedInputStream(r.getInputStream());
return;
diff --git a/src/main/org/apache/tools/ant/util/DOMElementWriter.java b/src/main/org/apache/tools/ant/util/DOMElementWriter.java
index 7f6013a60..8aa9b9c7f 100644
--- a/src/main/org/apache/tools/ant/util/DOMElementWriter.java
+++ b/src/main/org/apache/tools/ant/util/DOMElementWriter.java
@@ -413,7 +413,7 @@ public class DOMElementWriter {
}
/**
- * Escape &lt;, &gt; &amp; &apos;, &quot; as their entities and
+ * Escape &lt;, &gt;, &amp;, ', &quot; as their entities and
* drop characters that are illegal in XML documents.
* @param value the string to encode.
* @return the encoded string.
@@ -423,7 +423,7 @@ public class DOMElementWriter {
}
/**
- * Escape &lt;, &gt; &amp; &apos;, &quot; as their entities, \n,
+ * Escape &lt;, &gt;, &amp;, ', &quot; as their entities, \n,
* \r and \t as numeric entities and drop characters that are
* illegal in XML documents.
* @param value the string to encode.
@@ -513,6 +513,7 @@ public class DOMElementWriter {
* href="http://www.w3.org/TR/1998/REC-xml-19980210#sec-cdata-sect">http://www.w3.org/TR/1998/REC-xml-19980210#sec-cdata-sect</a>.</p>
* @param value the value to be encoded.
* @param out where to write the encoded data to.
+ * @throws IOException if data cannot be written
*/
public void encodedata(final Writer out, final String value) throws IOException {
final int len = value.length();
diff --git a/src/main/org/apache/tools/ant/util/DateUtils.java b/src/main/org/apache/tools/ant/util/DateUtils.java
index 70e901398..14d530aa6 100644
--- a/src/main/org/apache/tools/ant/util/DateUtils.java
+++ b/src/main/org/apache/tools/ant/util/DateUtils.java
@@ -153,7 +153,7 @@ public final class DateUtils {
/**
- * Format an elapsed time into a plurialization correct string.
+ * Format an elapsed time into a pluralization correct string.
* It is limited only to report elapsed time in minutes and
* seconds and has the following behavior.
* <ul>
@@ -196,7 +196,7 @@ public final class DateUtils {
* moon period = 29.53058 days ~= 30, year = 365.2422 days
*
* days moon phase advances on first day of year compared to preceding year
- * = 365.2422 - 12*29.53058 ~= 11
+ * = 365.2422 - 12 * 29.53058 ~= 11
*
* years in Metonic cycle (time until same phases fall on the same days of
* the month) = 18.6 ~= 19
@@ -208,7 +208,7 @@ public final class DateUtils {
*
* 6 moons ~= 177 days
* 177 ~= 8 reported phases * 22
- * + 11/22 for rounding
+ * + 11 / 22 for rounding
* </pre>
*
* @param cal the calendar.
@@ -351,23 +351,32 @@ public final class DateUtils {
* where {a|b} indicates that you must choose one of a or b, and [c]
* indicates that you may use or omit c. ±ZZZZ is the timezone offset, and
* may be literally "Z" to mean GMT.
+ *
+ * @param dateStr String
+ * @return Date
+ * @throws ParseException if date string does not match ISO 8601
* @since Ant 1.10.2
*/
public static Date parseLenientDateTime(String dateStr) throws ParseException {
try {
return new Date(Long.parseLong(dateStr));
- } catch (NumberFormatException nfe) {}
+ } catch (NumberFormatException ignored) {
+ }
try {
return EN_US_DATE_FORMAT_MIN.get().parse(dateStr);
- } catch (ParseException pe) {}
+ } catch (ParseException ignored) {
+ }
try {
return EN_US_DATE_FORMAT_SEC.get().parse(dateStr);
- } catch (ParseException pe) {}
+ } catch (ParseException ignored) {
+ }
Matcher m = iso8601normalizer.matcher(dateStr);
- if (!m.find()) throw new ParseException(dateStr, 0);
+ if (!m.find()) {
+ throw new ParseException(dateStr, 0);
+ }
String normISO = m.group(1) + " "
+ (m.group(3) == null ? m.group(2) + ":00" : m.group(2))
+ (m.group(4) == null ? ".000 " : " ")
diff --git a/src/main/org/apache/tools/ant/util/FileUtils.java b/src/main/org/apache/tools/ant/util/FileUtils.java
index 8bbdf9162..9c6e59fb2 100644
--- a/src/main/org/apache/tools/ant/util/FileUtils.java
+++ b/src/main/org/apache/tools/ant/util/FileUtils.java
@@ -97,7 +97,7 @@ public class FileUtils {
/**
* A one item cache for fromUri.
- * fromUri is called for each element when parseing ant build
+ * fromUri is called for each element when parsing ant build
* files. It is a costly operation. This just caches the result
* of the last call.
*/
@@ -1268,6 +1268,11 @@ public class FileUtils {
/**
* Are the two File instances pointing to the same object on the
* file system?
+ *
+ * @param f1 File
+ * @param f2 File
+ * @return boolean
+ * @throws IOException if file name canonicalization fails
* @since Ant 1.8.2
*/
public boolean areSame(File f1, File f2) throws IOException {
@@ -1294,11 +1299,9 @@ public class FileUtils {
*
* @param from the file to move.
* @param to the new file name.
- *
* @throws IOException if anything bad happens during this
* process. Note that <code>to</code> may have been deleted
* already when this happens.
- *
* @since Ant 1.6
*/
public void rename(File from, File to) throws IOException {
@@ -1355,18 +1358,20 @@ public class FileUtils {
* test whether a file or directory exists, with an error in the
* upper/lower case spelling of the name.
* Using this method is only interesting on case insensitive file systems
- * (Windows).<br>
- * It will return true only if 3 conditions are met :
- * <br>
+ * (Windows).
+ * <p>
+ * It will return true only if 3 conditions are met:
+ * </p>
* <ul>
* <li>operating system is case insensitive</li>
* <li>file exists</li>
* <li>actual name from directory reading is different from the
* supplied argument</li>
* </ul>
- * <br>
- * the purpose is to identify files or directories on case-insensitive
- * filesystems whose case is not what is expected.<br>
+ * <p>
+ * The purpose is to identify files or directories on case-insensitive
+ * filesystems whose case is not what is expected.
+ * </p>
* Possibly to rename them afterwards to the desired upper/lowercase
* combination.
*
@@ -1552,6 +1557,7 @@ public class FileUtils {
* Others possible. If the delete does not work, call System.gc(),
* wait a little and try again.
*
+ * @param f File
* @return whether deletion was successful
* @since Ant 1.8.0
*/
@@ -1563,6 +1569,8 @@ public class FileUtils {
* If delete does not work, call System.gc() if asked to, wait a
* little and try again.
*
+ * @param f File
+ * @param runGC boolean
* @return whether deletion was successful
* @since Ant 1.8.3
*/
@@ -1671,7 +1679,7 @@ public class FileUtils {
/**
* Gets path from a <code>List</code> of <code>String</code>s.
*
- * @param pathStack <code>List</code> of <code>String</code>s to be concated as a path.
+ * @param pathStack <code>List</code> of <code>String</code>s to be concatenated as a path.
* @param separatorChar <code>char</code> to be used as separator between names in path
* @return <code>String</code>, never <code>null</code>
*
@@ -1707,8 +1715,9 @@ public class FileUtils {
/**
* Opens a new OutputStream for the given Path.
* @param path the path of the file
- * @param whether to append to or a replace an existing file
+ * @param append whether to append to or a replace an existing file
* @return a stream ready to write to the file
+ * @throws IOException if stream creation fails
* @since Ant 1.10.2
*/
public static OutputStream newOutputStream(Path path, boolean append) throws IOException {
diff --git a/src/main/org/apache/tools/ant/util/GlobPatternMapper.java b/src/main/org/apache/tools/ant/util/GlobPatternMapper.java
index 4d2d5cc7e..8469e9c66 100644
--- a/src/main/org/apache/tools/ant/util/GlobPatternMapper.java
+++ b/src/main/org/apache/tools/ant/util/GlobPatternMapper.java
@@ -86,6 +86,7 @@ public class GlobPatternMapper implements FileNameMapper {
/**
* Attribute specifying whether to ignore the difference
* between / and \ (the two common directory characters).
+ * @return boolean
* @since Ant 1.8.3
*/
public boolean getHandleDirSep() {
diff --git a/src/main/org/apache/tools/ant/util/IdentityStack.java b/src/main/org/apache/tools/ant/util/IdentityStack.java
index 56e9f7bf5..caf2fe958 100644
--- a/src/main/org/apache/tools/ant/util/IdentityStack.java
+++ b/src/main/org/apache/tools/ant/util/IdentityStack.java
@@ -33,6 +33,7 @@ public class IdentityStack<E> extends Stack<E> {
/**
* Get an IdentityStack containing the contents of the specified Stack.
+ * @param <E> desired type
* @param s the Stack to copy; ignored if null.
* @return an IdentityStack instance.
*/
diff --git a/src/main/org/apache/tools/ant/util/JavaEnvUtils.java b/src/main/org/apache/tools/ant/util/JavaEnvUtils.java
index e8e01ea81..b110461e0 100644
--- a/src/main/org/apache/tools/ant/util/JavaEnvUtils.java
+++ b/src/main/org/apache/tools/ant/util/JavaEnvUtils.java
@@ -132,7 +132,7 @@ public final class JavaEnvUtils {
/** Whether this is the Kaffe VM */
private static boolean kaffeDetected;
- /** Wheter this is a GNU Classpath based VM */
+ /** Whether this is a GNU Classpath based VM */
private static boolean classpathDetected;
/** Whether this is the GNU VM (gcj/gij) */
@@ -566,20 +566,19 @@ public final class JavaEnvUtils {
}
/**
- *
* Writes the command into a temporary DCL script and returns the
* corresponding File object.
* It is the job of the caller to delete the file on exit.
- * @param cmd the command.
+ * @param cmds the command.
* @return the file containing the command.
* @throws IOException if there is an error writing to the file.
*/
- public static File createVmsJavaOptionFile(String[] cmd)
+ public static File createVmsJavaOptionFile(String[] cmds)
throws IOException {
File script = FILE_UTILS.createTempFile("ANT", ".JAVA_OPTS", null, false, true);
try (BufferedWriter out = new BufferedWriter(new FileWriter(script))) {
- for (int i = 0; i < cmd.length; i++) {
- out.write(cmd[i]);
+ for (int i = 0; i < cmds.length; i++) {
+ out.write(cmds[i]);
out.newLine();
}
}
diff --git a/src/main/org/apache/tools/ant/util/KeepAliveInputStream.java b/src/main/org/apache/tools/ant/util/KeepAliveInputStream.java
index debde59ab..58332b5c5 100644
--- a/src/main/org/apache/tools/ant/util/KeepAliveInputStream.java
+++ b/src/main/org/apache/tools/ant/util/KeepAliveInputStream.java
@@ -58,6 +58,7 @@ public class KeepAliveInputStream extends FilterInputStream {
* Convenience factory method that returns a non-closing
* InputStream around System.in.
*
+ * @return InputStream
* @since Ant 1.8.0
*/
public static InputStream wrapSystemIn() {
diff --git a/src/main/org/apache/tools/ant/util/KeepAliveOutputStream.java b/src/main/org/apache/tools/ant/util/KeepAliveOutputStream.java
index 27f3d7e42..352b0bacb 100644
--- a/src/main/org/apache/tools/ant/util/KeepAliveOutputStream.java
+++ b/src/main/org/apache/tools/ant/util/KeepAliveOutputStream.java
@@ -58,6 +58,7 @@ public class KeepAliveOutputStream extends FilterOutputStream {
* Convenience factory method that returns a non-closing
* PrintStream around System.out.
*
+ * @return PrintStream
* @since Ant 1.8.0
*/
public static PrintStream wrapSystemOut() {
@@ -68,6 +69,7 @@ public class KeepAliveOutputStream extends FilterOutputStream {
* Convenience factory method that returns a non-closing
* PrintStream around System.err.
*
+ * @return PrintStream
* @since Ant 1.8.0
*/
public static PrintStream wrapSystemErr() {
@@ -75,6 +77,7 @@ public class KeepAliveOutputStream extends FilterOutputStream {
}
/**
+ * @return PrintStream
* @since Ant 1.8.0
*/
private static PrintStream wrap(PrintStream ps) {
diff --git a/src/main/org/apache/tools/ant/util/LayoutPreservingProperties.java b/src/main/org/apache/tools/ant/util/LayoutPreservingProperties.java
index f4f2fe72c..47f07846b 100644
--- a/src/main/org/apache/tools/ant/util/LayoutPreservingProperties.java
+++ b/src/main/org/apache/tools/ant/util/LayoutPreservingProperties.java
@@ -250,6 +250,7 @@ public class LayoutPreservingProperties extends Properties {
/**
* Save the properties to a file.
* @param dest the file to write to
+ * @throws IOException if save fails
*/
public void saveAs(final File dest) throws IOException {
final OutputStream fos = Files.newOutputStream(dest.toPath());
@@ -273,7 +274,7 @@ public class LayoutPreservingProperties extends Properties {
}
}
- // we may be updatiung a file written by this class, replace
+ // we may be updating a file written by this class, replace
// the date comment instead of adding a new one and preserving
// the one written last time
if (totalLines > skipLines
@@ -308,7 +309,7 @@ public class LayoutPreservingProperties extends Properties {
/**
* Reads a properties file into an internally maintained
- * collection of logical lines (possibly spanning physcial lines),
+ * collection of logical lines (possibly spanning physical lines),
* which make up the comments, blank lines and properties of the
* file.
* @param is the stream from which to read the data
@@ -432,7 +433,7 @@ public class LayoutPreservingProperties extends Properties {
}
/**
- * Unescape the string according to the rules for a Properites
+ * Unescape the string according to the rules for a Properties
* file, as laid out in the docs for <a
* href="http://java.sun.com/j2se/1.3/docs/api/java/util/Properties.html">java.util.Properties</a>.
* @param s the string to unescape (coming from the source file)
@@ -442,7 +443,7 @@ public class LayoutPreservingProperties extends Properties {
/*
* The following combinations are converted:
* \n newline
- * \r carraige return
+ * \r carriage return
* \f form feed
* \t tab
* \\ backslash
@@ -575,7 +576,7 @@ public class LayoutPreservingProperties extends Properties {
}
/**
- * Remove the comments in the leading up the {@link logicalLines}
+ * Remove the comments in the leading up the {@link #logicalLines}
* list leading up to line <code>pos</code>.
* @param pos the line number to which the comments lead
*/
@@ -662,7 +663,7 @@ public class LayoutPreservingProperties extends Properties {
/**
* A key-value pair from the input stream. This may span more than
- * one physical line, but it is constitutes as a single logical
+ * one physical line, but it is constitues as a single logical
* line.
*/
private static class Pair extends LogicalLine implements Cloneable {
diff --git a/src/main/org/apache/tools/ant/util/MergingMapper.java b/src/main/org/apache/tools/ant/util/MergingMapper.java
index 9298a7382..5d2a1e915 100644
--- a/src/main/org/apache/tools/ant/util/MergingMapper.java
+++ b/src/main/org/apache/tools/ant/util/MergingMapper.java
@@ -34,6 +34,7 @@ public class MergingMapper implements FileNameMapper {
public MergingMapper() {}
/**
+ * @param to String
* @since Ant 1.8.0
*/
public MergingMapper(String to) {
diff --git a/src/main/org/apache/tools/ant/util/PermissionUtils.java b/src/main/org/apache/tools/ant/util/PermissionUtils.java
index ad363f092..a6664fbd4 100644
--- a/src/main/org/apache/tools/ant/util/PermissionUtils.java
+++ b/src/main/org/apache/tools/ant/util/PermissionUtils.java
@@ -44,7 +44,7 @@ public class PermissionUtils {
private PermissionUtils() { }
/**
- * Translates a set of permissons into a Unix stat(2) {@code
+ * Translates a set of permissions into a Unix stat(2) {@code
* st_mode} result.
* @param permissions the permissions
* @param type the file type
@@ -102,12 +102,13 @@ public class PermissionUtils {
* <li>{@link ArchiveResource}</li>
* </ul>
*
- * @param resource the resource to set permissions for
+ * @param r the resource to set permissions for
* @param permissions the permissions
* @param posixNotSupportedCallback optional callback that is
* invoked for a file provider resource if the file-system holding
* the file doesn't support PosixFilePermissions. The Path
* corresponding to the file is passed to the callback.
+ * @throws IOException if something goes wrong
*/
public static void setPermissions(Resource r, Set<PosixFilePermission> permissions,
Consumer<Path> posixNotSupportedCallback)
@@ -140,12 +141,13 @@ public class PermissionUtils {
* <li>{@link ArchiveResource}</li>
* </ul>
*
- * @param resource the resource to read permissions from
+ * @param r the resource to read permissions from
* @param posixNotSupportedFallback optional fallback function to provide
* permissions for file system that don't support
* PosixFilePermissions. The Path corresponding to the file is
* passed to the callback.
* @return the permissions
+ * @throws IOException if something goes wrong
*/
public static Set<PosixFilePermission> getPermissions(Resource r,
Function<Path, Set<PosixFilePermission>> posixNotSupportedFallback)
@@ -210,6 +212,10 @@ public class PermissionUtils {
/**
* Determines the file type of a {@link Path}.
+ *
+ * @param p Path
+ * @return FileType
+ * @throws IOException if file attributes cannot be read
*/
public static FileType of(Path p) throws IOException {
BasicFileAttributes attrs =
@@ -226,6 +232,9 @@ public class PermissionUtils {
/**
* Determines the file type of a {@link Resource}.
+ *
+ * @param r Resource
+ * @return FileType
*/
public static FileType of(Resource r) {
if (r.isDirectory()) {
diff --git a/src/main/org/apache/tools/ant/util/ProcessUtil.java b/src/main/org/apache/tools/ant/util/ProcessUtil.java
index f6e71b12e..998c7130b 100644
--- a/src/main/org/apache/tools/ant/util/ProcessUtil.java
+++ b/src/main/org/apache/tools/ant/util/ProcessUtil.java
@@ -30,7 +30,7 @@ public class ProcessUtil {
/**
* provide id of the current process
- * @param fallback
+ * @param fallback fallback id
* @return current process id
*/
public static String getProcessId(final String fallback) {
diff --git a/src/main/org/apache/tools/ant/util/ReflectUtil.java b/src/main/org/apache/tools/ant/util/ReflectUtil.java
index 27ba8cef4..cd06c08ae 100644
--- a/src/main/org/apache/tools/ant/util/ReflectUtil.java
+++ b/src/main/org/apache/tools/ant/util/ReflectUtil.java
@@ -42,6 +42,11 @@ public class ReflectUtil {
/**
* Create an instance of a class using the constructor matching
* the given arguments.
+ * @param <T> desired type
+ * @param ofClass Class&lt;T&gt;
+ * @param argTypes Class&lt;?&gt;[]
+ * @param args Object[]
+ * @return class instance
* @since Ant 1.8.0
*/
public static <T> T newInstance(Class<T> ofClass,
@@ -58,6 +63,7 @@ public class ReflectUtil {
/**
* Call a method on the object with no parameters.
+ * @param <T> desired type
* @param obj the object to invoke the method on.
* @param methodName the name of the method to call
* @return the object returned by the method
@@ -77,6 +83,7 @@ public class ReflectUtil {
* Call a method on the object with no parameters.
* Note: Unlike the invoke method above, this
* calls class or static methods, not instance methods.
+ * @param <T> desired type
* @param obj the object to invoke the method on.
* @param methodName the name of the method to call
* @return the object returned by the method
@@ -94,6 +101,7 @@ public class ReflectUtil {
/**
* Call a method on the object with one argument.
+ * @param <T> desired type
* @param obj the object to invoke the method on.
* @param methodName the name of the method to call
* @param argType the type of argument.
@@ -114,6 +122,7 @@ public class ReflectUtil {
/**
* Call a method on the object with two argument.
+ * @param <T> desired type
* @param obj the object to invoke the method on.
* @param methodName the name of the method to call
* @param argType1 the type of the first argument.
@@ -138,6 +147,7 @@ public class ReflectUtil {
/**
* Get the value of a field in an object.
+ * @param <T> desired type
* @param obj the object to look at.
* @param fieldName the name of the field in the object.
* @return the value of the field.
diff --git a/src/main/org/apache/tools/ant/util/ReflectWrapper.java b/src/main/org/apache/tools/ant/util/ReflectWrapper.java
index f803c8881..200151669 100644
--- a/src/main/org/apache/tools/ant/util/ReflectWrapper.java
+++ b/src/main/org/apache/tools/ant/util/ReflectWrapper.java
@@ -53,6 +53,7 @@ public class ReflectWrapper {
}
/**
+ * @param <T> desired type
* @return the wrapped object.
*/
@SuppressWarnings("unchecked")
@@ -62,6 +63,7 @@ public class ReflectWrapper {
/**
* Call a method on the object with no parameters.
+ * @param <T> desired type
* @param methodName the name of the method to call
* @return the object returned by the method
*/
@@ -71,6 +73,7 @@ public class ReflectWrapper {
/**
* Call a method on the object with one argument.
+ * @param <T> desired type
* @param methodName the name of the method to call
* @param argType the type of argument.
* @param arg the value of the argument.
@@ -82,6 +85,7 @@ public class ReflectWrapper {
/**
* Call a method on the object with one argument.
+ * @param <T> desired type
* @param methodName the name of the method to call
* @param argType1 the type of the first argument.
* @param arg1 the value of the first argument.
diff --git a/src/main/org/apache/tools/ant/util/ScriptRunnerBase.java b/src/main/org/apache/tools/ant/util/ScriptRunnerBase.java
index 374da29da..a788aa1b8 100644
--- a/src/main/org/apache/tools/ant/util/ScriptRunnerBase.java
+++ b/src/main/org/apache/tools/ant/util/ScriptRunnerBase.java
@@ -190,7 +190,7 @@ public abstract class ScriptRunnerBase {
}
/**
- * Whether to use script compilation if available.
+ * Whether to use script compilation if available.
* @since Ant 1.10.2
* @param compiled if true, compile the script if possible.
*/
@@ -236,7 +236,7 @@ public abstract class ScriptRunnerBase {
/**
* Read some source in from the given reader
- * @param reader the reader; this is closed afterwards.
+ * @param in the input stream to pass into a buffered reader.
* @param name the name to use in error messages
* @param charset the encoding for the reader, may be null.
*/
diff --git a/src/main/org/apache/tools/ant/util/ScriptRunnerCreator.java b/src/main/org/apache/tools/ant/util/ScriptRunnerCreator.java
index 6ce3c7e07..bf3c2c9e5 100644
--- a/src/main/org/apache/tools/ant/util/ScriptRunnerCreator.java
+++ b/src/main/org/apache/tools/ant/util/ScriptRunnerCreator.java
@@ -101,7 +101,7 @@ public class ScriptRunnerCreator {
* in manager.
* This checks if the script manager exists in the scriptLoader
* classloader and if so it creates and returns the script runner.
- * @param checkManager check if the manager matchs this value.
+ * @param checkManager check if the manager matches this value.
* @param managerClass the name of the script manager class.
* @param runnerClass the name of ant's script runner for this manager.
* @return the script runner class.
diff --git a/src/main/org/apache/tools/ant/util/ScriptRunnerHelper.java b/src/main/org/apache/tools/ant/util/ScriptRunnerHelper.java
index fc1be2a1a..efdb1b073 100644
--- a/src/main/org/apache/tools/ant/util/ScriptRunnerHelper.java
+++ b/src/main/org/apache/tools/ant/util/ScriptRunnerHelper.java
@@ -107,7 +107,7 @@ public class ScriptRunnerHelper {
}
/**
- * Load the script from an external file ; optional.
+ * Load the script from an external file; optional.
*
* @param file the file containing the script source.
*/
@@ -116,7 +116,7 @@ public class ScriptRunnerHelper {
}
/**
- * Get the external script file ; optional.
+ * Get the external script file; optional.
* @return the file containing the script source.
* @since Ant 1.10.2
*/
@@ -125,7 +125,7 @@ public class ScriptRunnerHelper {
}
/**
- * Set the encoding of the script from an external file ; optional.
+ * Set the encoding of the script from an external file; optional.
*
* @param encoding the encoding of the file containing the script source.
* @since Ant 1.10.2
diff --git a/src/main/org/apache/tools/ant/util/SplitClassLoader.java b/src/main/org/apache/tools/ant/util/SplitClassLoader.java
index f2b5232ef..c3f61e334 100644
--- a/src/main/org/apache/tools/ant/util/SplitClassLoader.java
+++ b/src/main/org/apache/tools/ant/util/SplitClassLoader.java
@@ -31,7 +31,10 @@ public final class SplitClassLoader extends AntClassLoader {
private final String[] splitClasses;
/**
- * @param splitClasses classes contained herin will not be loaded
+ * @param parent ClassLoader
+ * @param path Path
+ * @param project Project
+ * @param splitClasses classes contained herein will not be loaded
* via Ant's classloader
*/
public SplitClassLoader(ClassLoader parent, Path path, Project project,
diff --git a/src/main/org/apache/tools/ant/util/StringUtils.java b/src/main/org/apache/tools/ant/util/StringUtils.java
index 93b4f9013..87157ca16 100644
--- a/src/main/org/apache/tools/ant/util/StringUtils.java
+++ b/src/main/org/apache/tools/ant/util/StringUtils.java
@@ -272,9 +272,9 @@ public final class StringUtils {
}
return string;
}
-
+
/**
- * Joins the string representation of the elements of a collection to
+ * Joins the string representation of the elements of a collection to
* a joined string with a given separator.
* @param collection Collection of the data to be joined (may be null)
* @param separator Separator between elements (may be null)
@@ -289,7 +289,7 @@ public final class StringUtils {
}
/**
- * Joins the string representation of the elements of an array to
+ * Joins the string representation of the elements of an array to
* a joined string with a given separator.
* @param array Array of the data to be joined (may be null)
* @param separator Separator between elements (may be null)
diff --git a/src/main/org/apache/tools/ant/util/SymbolicLinkUtils.java b/src/main/org/apache/tools/ant/util/SymbolicLinkUtils.java
index 37a74be5d..46ddf774e 100644
--- a/src/main/org/apache/tools/ant/util/SymbolicLinkUtils.java
+++ b/src/main/org/apache/tools/ant/util/SymbolicLinkUtils.java
@@ -120,7 +120,7 @@ public class SymbolicLinkUtils {
*
* <p>Note that #isSymbolicLink returns false if this method
* returns true since Java won't produce a canonical name
- * different from the abolute one if the link is broken.</p>
+ * different from the absolute one if the link is broken.</p>
*
* @param name the name of the file to test.
*
@@ -141,7 +141,7 @@ public class SymbolicLinkUtils {
*
* <p>Note that #isSymbolicLink returns false if this method
* returns true since Java won't produce a canonical name
- * different from the abolute one if the link is broken.</p>
+ * different from the absolute one if the link is broken.</p>
*
* @param file the file to test.
*
@@ -162,7 +162,7 @@ public class SymbolicLinkUtils {
*
* <p>Note that #isSymbolicLink returns false if this method
* returns true since Java won't produce a canonical name
- * different from the abolute one if the link is broken.</p>
+ * different from the absolute one if the link is broken.</p>
*
* @param parent the parent directory of the file to test
* @param name the name of the file to test.
diff --git a/src/main/org/apache/tools/ant/util/TimeoutObserver.java b/src/main/org/apache/tools/ant/util/TimeoutObserver.java
index ba2e0c76d..c142d3cd1 100644
--- a/src/main/org/apache/tools/ant/util/TimeoutObserver.java
+++ b/src/main/org/apache/tools/ant/util/TimeoutObserver.java
@@ -29,7 +29,7 @@ package org.apache.tools.ant.util;
public interface TimeoutObserver {
/**
- * Called when the watchdow times out.
+ * Called when the watchdog times out.
*
* @param w the watchdog that timed out.
*/
diff --git a/src/main/org/apache/tools/ant/util/UUEncoder.java b/src/main/org/apache/tools/ant/util/UUEncoder.java
index c42dcaba1..b0c6737f2 100644
--- a/src/main/org/apache/tools/ant/util/UUEncoder.java
+++ b/src/main/org/apache/tools/ant/util/UUEncoder.java
@@ -99,11 +99,10 @@ public class UUEncoder {
* Encode a single line of data (less than or equal to 45 characters).
*
* @param data The array of byte data.
- * @param off The starting offset within the data.
+ * @param offset The starting offset within the data.
* @param length Length of the data to encode.
* @param out The output stream the encoded data is written to.
- *
- * @exception IOException
+ * @exception IOException if something goes wrong
*/
private void encodeLine(
byte[] data, int offset, int length, OutputStream out)
diff --git a/src/main/org/apache/tools/ant/util/UnicodeUtil.java b/src/main/org/apache/tools/ant/util/UnicodeUtil.java
index d3e5eec38..86199d411 100644
--- a/src/main/org/apache/tools/ant/util/UnicodeUtil.java
+++ b/src/main/org/apache/tools/ant/util/UnicodeUtil.java
@@ -29,7 +29,7 @@ public class UnicodeUtil {
/**
* returns the unicode representation of a char without the leading backslash
- * @param ch
+ * @param ch a character
* @return unicode representation of a char for property files
*/
public static StringBuffer EscapeUnicode(char ch) {
diff --git a/src/main/org/apache/tools/ant/util/WeakishReference.java b/src/main/org/apache/tools/ant/util/WeakishReference.java
index 1c0010267..d7c15b02f 100644
--- a/src/main/org/apache/tools/ant/util/WeakishReference.java
+++ b/src/main/org/apache/tools/ant/util/WeakishReference.java
@@ -44,7 +44,7 @@ public class WeakishReference {
* create a new soft reference, which is bound to a
* Weak reference inside
*
- * @param reference
+ * @param reference ditto
* @see java.lang.ref.WeakReference
*/
WeakishReference(Object reference) {
diff --git a/src/main/org/apache/tools/ant/util/WorkerAnt.java b/src/main/org/apache/tools/ant/util/WorkerAnt.java
index 768f38744..b22be501f 100644
--- a/src/main/org/apache/tools/ant/util/WorkerAnt.java
+++ b/src/main/org/apache/tools/ant/util/WorkerAnt.java
@@ -23,12 +23,12 @@ import org.apache.tools.ant.Task;
/**
* A worker ant executes a single task in a background thread.
- * After the run, any exception thrown is turned into a buildexception, which can be
+ * After the run, any exception thrown is turned into a BuildException, which can be
* rethrown, the finished attribute is set, then notifyAll() is called,
* so that anyone waiting on the same notify object gets woken up.
* <p>
* This class is effectively a superset of
- * {@link org.apache.tools.ant.taskdefs.Parallel.TaskRunnable}
+ * <code>org.apache.tools.ant.taskdefs.Parallel.TaskRunnable</code>
*
* @since Ant 1.8
*/
diff --git a/src/main/org/apache/tools/ant/util/depend/AbstractAnalyzer.java b/src/main/org/apache/tools/ant/util/depend/AbstractAnalyzer.java
index 3ec414648..d2f032385 100644
--- a/src/main/org/apache/tools/ant/util/depend/AbstractAnalyzer.java
+++ b/src/main/org/apache/tools/ant/util/depend/AbstractAnalyzer.java
@@ -38,7 +38,7 @@ public abstract class AbstractAnalyzer implements DependencyAnalyzer {
/** The source path for the source files */
private Path sourcePath = new Path(null);
- /** The classpath containg dirs and jars of class files */
+ /** The classpath containing dirs and jars of class files */
private Path classPath = new Path(null);
/** The list of root classes */
diff --git a/src/main/org/apache/tools/ant/util/regexp/JakartaOroRegexp.java b/src/main/org/apache/tools/ant/util/regexp/JakartaOroRegexp.java
index 928939f9b..f837d86fe 100644
--- a/src/main/org/apache/tools/ant/util/regexp/JakartaOroRegexp.java
+++ b/src/main/org/apache/tools/ant/util/regexp/JakartaOroRegexp.java
@@ -79,7 +79,7 @@ public class JakartaOroRegexp extends JakartaOroMatcher implements Regexp {
* Convert ant regexp substitution option to oro options.
*
* @param options the ant regexp options
- * @return the oro substition options
+ * @return the oro substitution options
*/
protected int getSubsOptions(final int options) {
return RegexpUtil.hasFlag(options, REPLACE_ALL) ? Util.SUBSTITUTE_ALL
diff --git a/src/main/org/apache/tools/ant/util/regexp/JakartaRegexpRegexp.java b/src/main/org/apache/tools/ant/util/regexp/JakartaRegexpRegexp.java
index b497b7842..781ecf4ca 100644
--- a/src/main/org/apache/tools/ant/util/regexp/JakartaRegexpRegexp.java
+++ b/src/main/org/apache/tools/ant/util/regexp/JakartaRegexpRegexp.java
@@ -33,7 +33,7 @@ public class JakartaRegexpRegexp extends JakartaRegexpMatcher
* Convert ant regexp substitution option to apache regex options.
*
* @param options the ant regexp options
- * @return the apache regex substition options
+ * @return the apache regex substitution options
*/
protected int getSubsOptions(int options) {
int subsOptions = RE.REPLACE_FIRSTONLY;
diff --git a/src/main/org/apache/tools/ant/util/regexp/Jdk14RegexpRegexp.java b/src/main/org/apache/tools/ant/util/regexp/Jdk14RegexpRegexp.java
index 76d2789af..55fe893e3 100644
--- a/src/main/org/apache/tools/ant/util/regexp/Jdk14RegexpRegexp.java
+++ b/src/main/org/apache/tools/ant/util/regexp/Jdk14RegexpRegexp.java
@@ -33,7 +33,7 @@ public class Jdk14RegexpRegexp extends Jdk14RegexpMatcher implements Regexp {
* Convert ant regexp substitution option to jdk1.4 options.
*
* @param options the ant regexp options
- * @return the jdk14 substition options
+ * @return the jdk14 substitution options
*/
protected int getSubsOptions(int options) {
int subsOptions = REPLACE_FIRST;
diff --git a/src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java b/src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java
index 22d58886c..b34645c5b 100644
--- a/src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java
+++ b/src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java
@@ -100,7 +100,7 @@ public class RegexpMatcherFactory {
public static boolean regexpMatcherPresent(Project project) {
try {
// The factory throws a BuildException if no usable matcher
- // cannot be instantiated. We dont need the matcher itself here.
+ // cannot be instantiated. We don't need the matcher itself here.
new RegexpMatcherFactory().newRegexpMatcher(project);
return true;
} catch (Throwable ex) {
diff --git a/src/main/org/apache/tools/ant/util/regexp/RegexpUtil.java b/src/main/org/apache/tools/ant/util/regexp/RegexpUtil.java
index df2b2fd01..dcd00b439 100644
--- a/src/main/org/apache/tools/ant/util/regexp/RegexpUtil.java
+++ b/src/main/org/apache/tools/ant/util/regexp/RegexpUtil.java
@@ -50,10 +50,10 @@ public class RegexpUtil {
/**
* convert regex option flag characters to regex options
* <dl>
- * <li>g - Regexp.REPLACE_ALL</li>
- * <li>i - RegexpMatcher.MATCH_CASE_INSENSITIVE</li>
- * <li>m - RegexpMatcher.MATCH_MULTILINE</li>
- * <li>s - RegexpMatcher.MATCH_SINGLELINE</li>
+ * <dt>g</dt><dd>Regexp.REPLACE_ALL</dd>
+ * <dt>i</dt><dd>RegexpMatcher.MATCH_CASE_INSENSITIVE</dd>
+ * <dt>m</dt><dd>RegexpMatcher.MATCH_MULTILINE</dd>
+ * <dt>s</dt><dd>RegexpMatcher.MATCH_SINGLELINE</dd>
* </dl>
* @param flags the string containing the flags
* @return the Regexp option bits
diff --git a/src/main/org/apache/tools/bzip2/BlockSort.java b/src/main/org/apache/tools/bzip2/BlockSort.java
index 46c6a5ce2..0a50fdf76 100644
--- a/src/main/org/apache/tools/bzip2/BlockSort.java
+++ b/src/main/org/apache/tools/bzip2/BlockSort.java
@@ -141,7 +141,7 @@ class BlockSort {
/**
* Array instance identical to Data's sfmap, both are used only
- * temporarily and indepently, so we do not need to allocate
+ * temporarily and independently, so we do not need to allocate
* additional memory.
*/
private final char[] quadrant;
@@ -467,7 +467,6 @@ class BlockSort {
* partially sorted order
* @param block the original data
* @param nblock size of the block
- * @param off offset of first byte to sort in block
*/
final void fallbackSort(int[] fmap, byte[] block, int nblock) {
final int[] ftab = new int[257];
diff --git a/src/main/org/apache/tools/bzip2/CBZip2InputStream.java b/src/main/org/apache/tools/bzip2/CBZip2InputStream.java
index 73b6aa19a..7563a40e0 100644
--- a/src/main/org/apache/tools/bzip2/CBZip2InputStream.java
+++ b/src/main/org/apache/tools/bzip2/CBZip2InputStream.java
@@ -108,7 +108,7 @@ public class CBZip2InputStream extends InputStream implements BZip2Constants {
/**
* Constructs a new CBZip2InputStream which decompresses bytes read from
- * the specified stream. This doesn't suppprt decompressing
+ * the specified stream. This doesn't support decompressing
* concatenated .bz2 files.
*
* <p>Although BZip2 headers are marked with the magic
@@ -117,6 +117,7 @@ public class CBZip2InputStream extends InputStream implements BZip2Constants {
* to skip the first two bytes. Otherwise this constructor will
* throw an exception. </p>
*
+ * @param in InputStream
* @throws IOException
* if the stream content is malformed or an I/O error occurs.
* @throws NullPointerException
@@ -691,7 +692,6 @@ public class CBZip2InputStream extends InputStream implements BZip2Constants {
if (thech >= 0) {
bsBuffShadow = (bsBuffShadow << 8) | thech;
bsLiveShadow += 8;
- continue;
} else {
throw new IOException("unexpected end of stream");
}
@@ -706,7 +706,6 @@ public class CBZip2InputStream extends InputStream implements BZip2Constants {
if (thech >= 0) {
bsBuffShadow = (bsBuffShadow << 8) | thech;
bsLiveShadow += 8;
- continue;
} else {
throw new IOException("unexpected end of stream");
}
@@ -771,7 +770,6 @@ public class CBZip2InputStream extends InputStream implements BZip2Constants {
if (thech >= 0) {
bsBuffShadow = (bsBuffShadow << 8) | thech;
bsLiveShadow += 8;
- continue;
} else {
throw new IOException("unexpected end of stream");
}
@@ -786,7 +784,6 @@ public class CBZip2InputStream extends InputStream implements BZip2Constants {
if (thech >= 0) {
bsBuffShadow = (bsBuffShadow << 8) | thech;
bsLiveShadow += 8;
- continue;
} else {
throw new IOException("unexpected end of stream");
}
@@ -822,7 +819,6 @@ public class CBZip2InputStream extends InputStream implements BZip2Constants {
if (thech >= 0) {
bsBuffShadow = (bsBuffShadow << 8) | thech;
bsLiveShadow += 8;
- continue;
} else {
throw new IOException("unexpected end of stream");
}
diff --git a/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java b/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java
index 01e23424d..dd118ea43 100644
--- a/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java
+++ b/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java
@@ -37,36 +37,32 @@ import java.io.OutputStream;
* <tt>CBZip2OutputStream</tt> to release the allocated memory.
* </p>
*
- * <p> You can shrink the amount of allocated memory and maybe raise
+ * <p>You can shrink the amount of allocated memory and maybe raise
* the compression speed by choosing a lower blocksize, which in turn
* may cause a lower compression ratio. You can avoid unnecessary
* memory allocation by avoiding using a blocksize which is bigger
- * than the size of the input. </p>
+ * than the size of the input.</p>
*
- * <p> You can compute the memory usage for compressing by the
- * following formula: </p>
+ * <p>You can compute the memory usage for compressing by the
+ * following formula:</p>
*
* <pre>
* &lt;code&gt;400k + (9 * blocksize)&lt;/code&gt;.
* </pre>
*
- * <p> To get the memory required for decompression by {@link
- * CBZip2InputStream CBZip2InputStream} use </p>
+ * <p>To get the memory required for decompression by {@link
+ * CBZip2InputStream CBZip2InputStream} use</p>
*
* <pre>
* &lt;code&gt;65k + (5 * blocksize)&lt;/code&gt;.
* </pre>
*
- * <table width="100%" border="1">
- * <colgroup> <col width="33%" /> <col width="33%" /> <col width="33%" />
- * </colgroup>
+ * <table border="1">
+ * <caption>Memory usage by blocksize</caption>
* <tr>
- * <th colspan="3">Memory usage by blocksize</th>
- * </tr>
- * <tr>
- * <th align="right">Blocksize</th> <th align="right">Compression<br>
- * memory usage</th> <th align="right">Decompression<br>
- * memory usage</th>
+ * <th align="right">Blocksize</th>
+ * <th align="right">Compression<br>memory usage</th>
+ * <th align="right">Decompression<br>memory usage</th>
* </tr>
* <tr>
* <td align="right">100k</td>
@@ -195,10 +191,10 @@ public class CBZip2OutputStream extends OutputStream
* This constant is accessible by subclasses for historical
* purposes. If you don't know what it means then you don't need
* it.
- * <p> If you are ever unlucky/improbable enough to get a stack
+ * <p>If you are ever unlucky/improbable enough to get a stack
* overflow whilst sorting, increase the following constant and
* try again. In practice I have never seen the stack go above 27
- * elems, so the following limit seems very generous. </p>
+ * elems, so the following limit seems very generous.</p>
*/
protected static final int QSORT_STACK_SIZE = 1000;
@@ -215,6 +211,11 @@ public class CBZip2OutputStream extends OutputStream
* This method is accessible by subclasses for historical
* purposes. If you don't know what it does then you don't need
* it.
+ *
+ * @param len char[]
+ * @param freq char[]
+ * @param alphaSize int
+ * @param maxLen int
*/
protected static void hbMakeCodeLengths(char[] len, int[] freq,
int alphaSize, int maxLen) {
@@ -560,14 +561,13 @@ public class CBZip2OutputStream extends OutputStream
/**
* Chooses a blocksize based on the given length of the data to compress.
*
+ * @param inputLength
+ * The length of the data which will be compressed by
+ * <tt>CBZip2OutputStream</tt>.
* @return The blocksize, between {@link #MIN_BLOCKSIZE} and
* {@link #MAX_BLOCKSIZE} both inclusive. For a negative
* <tt>inputLength</tt> this method returns <tt>MAX_BLOCKSIZE</tt>
* always.
- *
- * @param inputLength
- * The length of the data which will be compressed by
- * <tt>CBZip2OutputStream</tt>.
*/
public static int chooseBlockSize(long inputLength) {
return (inputLength > 0) ? (int) Math
@@ -814,7 +814,7 @@ public class CBZip2OutputStream extends OutputStream
* is about 2.0e-3 for 32 bits, 1.0e-5 for 40 bits and 4.0e-8 for 48
* bits. For a compressed file of size 100Gb -- about 100000 blocks --
* only a 48-bit marker will do. NB: normal compression/ decompression
- * donot rely on these statistical properties. They are only important
+ * do not rely on these statistical properties. They are only important
* when trying to recover blocks from damaged files.
*/
bsPutUByte(0x31);
@@ -854,6 +854,8 @@ public class CBZip2OutputStream extends OutputStream
/**
* Returns the blocksize parameter specified at construction time.
+ *
+ * @return int
*/
public final int getBlockSize() {
return this.blockSize100k;
diff --git a/src/main/org/apache/tools/mail/MailMessage.java b/src/main/org/apache/tools/mail/MailMessage.java
index 4dc25dcad..a7f6824d1 100644
--- a/src/main/org/apache/tools/mail/MailMessage.java
+++ b/src/main/org/apache/tools/mail/MailMessage.java
@@ -46,14 +46,15 @@ import java.util.stream.Collectors;
* easier to install, and has an Open Source license.
* <p>
* It can be used like this:
- * <blockquote><pre>
+ * </p>
+ * <pre>
* String mailhost = "localhost"; // or another mail host
* String from = "Mail Message Servlet &lt;MailMessage@server.com&gt;";
* String to = "to@you.com";
* String cc1 = "cc1@you.com";
* String cc2 = "cc2@you.com";
* String bcc = "bcc@you.com";
- * &nbsp;
+ *
* MailMessage msg = new MailMessage(mailhost);
* msg.setPort(25);
* msg.from(from);
@@ -63,16 +64,16 @@ import java.util.stream.Collectors;
* msg.bcc(bcc);
* msg.setSubject("Test subject");
* PrintStream out = msg.getPrintStream();
- * &nbsp;
+ *
* Enumeration enum = req.getParameterNames();
* while (enum.hasMoreElements()) {
* String name = (String)enum.nextElement();
* String value = req.getParameter(name);
* out.println(name + " = " + value);
* }
- * &nbsp;
+ *
* msg.sendAndClose();
- * </pre></blockquote>
+ * </pre>
* <p>
* Be sure to set the from address, then set the recipient
* addresses, then set the subject and other headers, then get the
@@ -80,14 +81,17 @@ import java.util.stream.Collectors;
* The class does minimal error checking internally; it counts on the mail
* host to complain if there's any malformatted input or out of order
* execution.
+ * </p>
* <p>
* An attachment mechanism based on RFC 1521 could be implemented on top of
* this class. In the meanwhile, JavaMail is the best solution for sending
* email with attachments.
+ * </p>
* <p>
* Still to do:
+ * </p>
* <ul>
- * <li>Figure out how to close the connection in case of error
+ * <li>Figure out how to close the connection in case of error</li>
* </ul>
*
* @version 1.1, 2000/03/19, added angle brackets to address, helps some servers
diff --git a/src/main/org/apache/tools/mail/SmtpResponseReader.java b/src/main/org/apache/tools/mail/SmtpResponseReader.java
index b6b3172c9..69b11b4cc 100644
--- a/src/main/org/apache/tools/mail/SmtpResponseReader.java
+++ b/src/main/org/apache/tools/mail/SmtpResponseReader.java
@@ -47,7 +47,7 @@ public class SmtpResponseReader {
/**
* Read until the server indicates that the response is complete.
*
- * @return Responsecode (3 digits) + Blank + Text from all
+ * @return Response code (3 digits) + Blank + Text from all
* response line concatenated (with blanks replacing the \r\n
* sequences).
* @throws IOException on error.
@@ -92,7 +92,7 @@ public class SmtpResponseReader {
}
/**
- * Append the text from this line of the resonse.
+ * Append the text from this line of the response.
*/
private static void appendTo(StringBuilder target, String line) {
// CheckStyle:MagicNumber OFF
diff --git a/src/main/org/apache/tools/tar/TarEntry.java b/src/main/org/apache/tools/tar/TarEntry.java
index 86024ea8a..fad702f07 100644
--- a/src/main/org/apache/tools/tar/TarEntry.java
+++ b/src/main/org/apache/tools/tar/TarEntry.java
@@ -38,17 +38,19 @@ import org.apache.tools.zip.ZipEncoding;
* they are to be used.
* <p>
* TarEntries that are created from the header bytes read from
- * an archive are instantiated with the TarEntry( byte[] )
+ * an archive are instantiated with the TarEntry(byte[])
* constructor. These entries will be used when extracting from
* or listing the contents of an archive. These entries have their
* header filled in using the header bytes. They also set the File
* to null, since they reference an archive entry not a file.
+ * </p>
* <p>
* TarEntries that are created from Files that are to be written
- * into an archive are instantiated with the TarEntry( File )
+ * into an archive are instantiated with the TarEntry(File)
* constructor. These entries have their header filled in using
* the File's information. They also keep a reference to the File
* for convenience when writing entries.
+ * </p>
* <p>
* Finally, TarEntries can be constructed from nothing but a name.
* This allows the programmer to construct the entry by hand, for
@@ -56,8 +58,7 @@ import org.apache.tools.zip.ZipEncoding;
* the archive, and the header information is constructed from
* other information. In this case the header fields are set to
* defaults and the File is set to null.
- *
- * <p>
+ * </p>
* The C structure for a Tar Entry's header is:
* <pre>
* struct header {
@@ -84,8 +85,6 @@ import org.apache.tools.zip.ZipEncoding;
* field is the binary representation of the number.
* See TarUtils.parseOctalOrBinary.
* </pre>
- *
- * <p>
* The C structure for a old GNU Tar Entry's header is:
* <pre>
* struct oldgnu_header {
@@ -108,7 +107,6 @@ import org.apache.tools.zip.ZipEncoding;
* char numbytes[12]; // offset 12
* };
* </pre>
- *
*/
public class TarEntry implements TarConstants {
@@ -1023,7 +1021,7 @@ public class TarEntry implements TarConstants {
/**
* Strips Windows' drive letter as well as any leading slashes,
- * turns path separators into forward slahes.
+ * turns path separators into forward slashes.
*/
private static String normalizeFileName(String fileName,
boolean preserveLeadingSlashes) {
@@ -1083,10 +1081,10 @@ public class TarEntry implements TarConstants {
/**
* Check if buffer contents matches Ascii String.
*
- * @param expected
- * @param buffer
- * @param offset
- * @param length
+ * @param expected String
+ * @param buffer byte[]
+ * @param offset int
+ * @param length int
* @return {@code true} if buffer is the same as the expected string
*/
private static boolean matchAsciiBuffer(String expected, byte[] buffer,
@@ -1105,13 +1103,13 @@ public class TarEntry implements TarConstants {
/**
* Compare byte buffers, optionally ignoring trailing nulls
*
- * @param buffer1
- * @param offset1
- * @param length1
- * @param buffer2
- * @param offset2
- * @param length2
- * @param ignoreTrailingNulls
+ * @param buffer1 byte[]
+ * @param offset1 int
+ * @param length1 int
+ * @param buffer2 byte[]
+ * @param offset2 int
+ * @param length2 int
+ * @param ignoreTrailingNulls boolean
* @return {@code true} if buffer1 and buffer2 have same contents, having regard to trailing nulls
*/
private static boolean isEqual(
diff --git a/src/main/org/apache/tools/tar/TarInputStream.java b/src/main/org/apache/tools/tar/TarInputStream.java
index 82c0a0d45..bacc20047 100644
--- a/src/main/org/apache/tools/tar/TarInputStream.java
+++ b/src/main/org/apache/tools/tar/TarInputStream.java
@@ -62,7 +62,7 @@ public class TarInputStream extends FilterInputStream {
/**
* This contents of this array is not used at all in this class,
- * it is only here to avoid repreated object creation during calls
+ * it is only here to avoid repeated object creation during calls
* to the no-arg read method.
*/
protected byte[] oneBuf;
@@ -541,7 +541,7 @@ public class TarInputStream extends FilterInputStream {
/**
* Reads a byte from the current tar archive entry.
*
- * This method simply calls read( byte[], int, int ).
+ * This method simply calls read(byte[], int, int).
*
* @return The byte read, or -1 at EOF.
* @throws IOException on error
@@ -658,6 +658,9 @@ public class TarInputStream extends FilterInputStream {
* Whether this class is able to read the given entry.
*
* <p>May return false if the current entry is a sparse file.</p>
+ *
+ * @param te TarEntry
+ * @return boolean
*/
public boolean canReadEntryData(TarEntry te) {
return !te.isGNUSparse();
diff --git a/src/main/org/apache/tools/tar/TarOutputStream.java b/src/main/org/apache/tools/tar/TarOutputStream.java
index cacc68631..f2f094367 100644
--- a/src/main/org/apache/tools/tar/TarOutputStream.java
+++ b/src/main/org/apache/tools/tar/TarOutputStream.java
@@ -94,6 +94,7 @@ public class TarOutputStream extends FilterOutputStream {
/**
* Constructor for TarInputStream.
+ *
* @param os the output stream to use
*/
public TarOutputStream(OutputStream os) {
@@ -102,6 +103,7 @@ public class TarOutputStream extends FilterOutputStream {
/**
* Constructor for TarInputStream.
+ *
* @param os the output stream to use
* @param encoding name of the encoding to use for file names
*/
@@ -111,6 +113,7 @@ public class TarOutputStream extends FilterOutputStream {
/**
* Constructor for TarInputStream.
+ *
* @param os the output stream to use
* @param blockSize the block size to use
*/
@@ -120,6 +123,7 @@ public class TarOutputStream extends FilterOutputStream {
/**
* Constructor for TarInputStream.
+ *
* @param os the output stream to use
* @param blockSize the block size to use
* @param encoding name of the encoding to use for file names
@@ -130,6 +134,7 @@ public class TarOutputStream extends FilterOutputStream {
/**
* Constructor for TarInputStream.
+ *
* @param os the output stream to use
* @param blockSize the block size to use
* @param recordSize the record size to use
@@ -140,6 +145,7 @@ public class TarOutputStream extends FilterOutputStream {
/**
* Constructor for TarInputStream.
+ *
* @param os the output stream to use
* @param blockSize the block size to use
* @param recordSize the record size to use
@@ -163,6 +169,7 @@ public class TarOutputStream extends FilterOutputStream {
* This can be LONGFILE_ERROR(0), LONGFILE_TRUNCATE(1) or LONGFILE_GNU(2).
* This specifies the treatment of long file names (names &gt;= TarConstants.NAMELEN).
* Default is LONGFILE_ERROR.
+ *
* @param longFileMode the mode to use
*/
public void setLongFileMode(int longFileMode) {
@@ -174,6 +181,7 @@ public class TarOutputStream extends FilterOutputStream {
* This can be BIGNUMBER_ERROR(0), BIGNUMBER_POSIX(1) or BIGNUMBER_STAR(2).
* This specifies the treatment of big files (sizes &gt; TarConstants.MAXSIZE) and other numeric values to big to fit into a traditional tar header.
* Default is BIGNUMBER_ERROR.
+ *
* @param bigNumberMode the mode to use
*/
public void setBigNumberMode(int bigNumberMode) {
@@ -182,6 +190,8 @@ public class TarOutputStream extends FilterOutputStream {
/**
* Whether to add a PAX extension header for non-ASCII file names.
+ *
+ * @param b boolean
*/
public void setAddPaxHeadersForNonAsciiNames(boolean b) {
addPaxHeadersForNonAsciiNames = b;
@@ -358,7 +368,7 @@ public class TarOutputStream extends FilterOutputStream {
/**
* Writes a byte to the current tar archive entry.
*
- * This method simply calls read( byte[], int, int ).
+ * This method simply calls read(byte[], int, int).
*
* @param b The byte written.
* @throws IOException on error
@@ -373,7 +383,7 @@ public class TarOutputStream extends FilterOutputStream {
/**
* Writes bytes to the current tar archive entry.
*
- * This method simply calls write( byte[], int, int ).
+ * This method simply calls write(byte[], int, int).
*
* @param wBuf The buffer to write to the archive.
* @throws IOException on error
diff --git a/src/main/org/apache/tools/tar/TarUtils.java b/src/main/org/apache/tools/tar/TarUtils.java
index 5fa2e01f0..70e6a44d4 100644
--- a/src/main/org/apache/tools/tar/TarUtils.java
+++ b/src/main/org/apache/tools/tar/TarUtils.java
@@ -280,6 +280,7 @@ public class TarUtils {
* @param length The maximum number of bytes to parse.
* @param encoding name of the encoding to use for file names
* @return The entry name.
+ * @throws IOException if decode fails
*/
public static String parseName(final byte[] buffer, final int offset,
final int length,
@@ -344,6 +345,7 @@ public class TarUtils {
* @param length The maximum number of header bytes to copy.
* @param encoding name of the encoding to use for file names
* @return The updated offset, i.e. offset + length
+ * @throws IOException if encode fails
*/
public static int formatNameBytes(final String name, final byte[] buf, final int offset,
final int length,
diff --git a/src/main/org/apache/tools/zip/AbstractUnicodeExtraField.java b/src/main/org/apache/tools/zip/AbstractUnicodeExtraField.java
index ab56f46e7..0f236d455 100644
--- a/src/main/org/apache/tools/zip/AbstractUnicodeExtraField.java
+++ b/src/main/org/apache/tools/zip/AbstractUnicodeExtraField.java
@@ -42,7 +42,7 @@ public abstract class AbstractUnicodeExtraField implements ZipExtraField {
* file.
* @param off The offset of the encoded filename or comment in
* <code>bytes</code>.
- * @param len The length of the encoded filename or commentin
+ * @param len The length of the encoded filename or comment in
* <code>bytes</code>.
*/
protected AbstractUnicodeExtraField(final String text, final byte[] bytes, final int off,
diff --git a/src/main/org/apache/tools/zip/AsiExtraField.java b/src/main/org/apache/tools/zip/AsiExtraField.java
index fb8227d84..0108ee236 100644
--- a/src/main/org/apache/tools/zip/AsiExtraField.java
+++ b/src/main/org/apache/tools/zip/AsiExtraField.java
@@ -25,7 +25,7 @@ import java.util.zip.ZipException;
* Adds Unix file permission and UID/GID fields as well as symbolic
* link handling.
*
- * <p>This class uses the ASi extra field in the format:
+ * <p>This class uses the ASi extra field in the format:</p>
* <pre>
* Value Size Description
* ----- ---- -----------
@@ -39,7 +39,7 @@ import java.util.zip.ZipException;
* (var.) variable symbolic link filename
* </pre>
* taken from appnote.iz (Info-ZIP note, 981119) found at <a
- * href="ftp://ftp.uu.net/pub/archiving/zip/doc/">ftp://ftp.uu.net/pub/archiving/zip/doc/</a></p>
+ * href="ftp://ftp.uu.net/pub/archiving/zip/doc/">ftp://ftp.uu.net/pub/archiving/zip/doc/</a>
*
* <p>Short is two bytes and Long is four bytes in big endian byte and
diff --git a/src/main/org/apache/tools/zip/ExtraFieldUtils.java b/src/main/org/apache/tools/zip/ExtraFieldUtils.java
index 8a7355e06..d7a6c9d41 100644
--- a/src/main/org/apache/tools/zip/ExtraFieldUtils.java
+++ b/src/main/org/apache/tools/zip/ExtraFieldUtils.java
@@ -308,6 +308,8 @@ public class ExtraFieldUtils {
/**
* Key of the action to take.
+ *
+ * @return int
*/
public int getKey() { return key; }
}
diff --git a/src/main/org/apache/tools/zip/FallbackZipEncoding.java b/src/main/org/apache/tools/zip/FallbackZipEncoding.java
index 3edbb8e15..96cff33af 100644
--- a/src/main/org/apache/tools/zip/FallbackZipEncoding.java
+++ b/src/main/org/apache/tools/zip/FallbackZipEncoding.java
@@ -34,7 +34,7 @@ import java.nio.ByteBuffer;
* given name can be safely encoded or not.</p>
*
* <p>This implementation acts as a last resort implementation, when
- * neither {@link Simple8BitZipEnoding} nor {@link NioZipEncoding} is
+ * neither {@link Simple8BitZipEncoding} nor {@link NioZipEncoding} is
* available.</p>
*
* <p>The methods of this class are reentrant.</p>
@@ -61,16 +61,14 @@ class FallbackZipEncoding implements ZipEncoding {
}
/**
- * @see
- * org.apache.tools.zip.ZipEncoding#canEncode(java.lang.String)
+ * @see org.apache.tools.zip.ZipEncoding#canEncode(java.lang.String)
*/
public boolean canEncode(final String name) {
return true;
}
/**
- * @see
- * org.apache.tools.zip.ZipEncoding#encode(java.lang.String)
+ * @see org.apache.tools.zip.ZipEncoding#encode(java.lang.String)
*/
public ByteBuffer encode(final String name) throws IOException {
if (this.charset == null) { // i.e. use default charset, see no-args constructor
@@ -81,8 +79,7 @@ class FallbackZipEncoding implements ZipEncoding {
}
/**
- * @see
- * org.apache.tools.zip.ZipEncoding#decode(byte[])
+ * @see org.apache.tools.zip.ZipEncoding#decode(byte[])
*/
public String decode(final byte[] data) throws IOException {
if (this.charset == null) { // i.e. use default charset, see no-args constructor
diff --git a/src/main/org/apache/tools/zip/GeneralPurposeBit.java b/src/main/org/apache/tools/zip/GeneralPurposeBit.java
index a1af211bd..3246fbee1 100644
--- a/src/main/org/apache/tools/zip/GeneralPurposeBit.java
+++ b/src/main/org/apache/tools/zip/GeneralPurposeBit.java
@@ -59,6 +59,8 @@ public final class GeneralPurposeBit implements Cloneable {
/**
* whether the current entry uses UTF8 for file name and comment.
+ *
+ * @return boolean
*/
public boolean usesUTF8ForNames() {
return languageEncodingFlag;
@@ -66,6 +68,8 @@ public final class GeneralPurposeBit implements Cloneable {
/**
* whether the current entry will use UTF8 for file name and comment.
+ *
+ * @param b boolean
*/
public void useUTF8ForNames(boolean b) {
languageEncodingFlag = b;
@@ -74,6 +78,8 @@ public final class GeneralPurposeBit implements Cloneable {
/**
* whether the current entry uses the data descriptor to store CRC
* and size information
+ *
+ * @return boolean
*/
public boolean usesDataDescriptor() {
return dataDescriptorFlag;
@@ -82,6 +88,8 @@ public final class GeneralPurposeBit implements Cloneable {
/**
* whether the current entry will use the data descriptor to store
* CRC and size information
+ *
+ * @param b boolean
*/
public void useDataDescriptor(boolean b) {
dataDescriptorFlag = b;
@@ -89,6 +97,8 @@ public final class GeneralPurposeBit implements Cloneable {
/**
* whether the current entry is encrypted
+ *
+ * @return boolean
*/
public boolean usesEncryption() {
return encryptionFlag;
@@ -96,6 +106,8 @@ public final class GeneralPurposeBit implements Cloneable {
/**
* whether the current entry will be encrypted
+ *
+ * @param b boolean
*/
public void useEncryption(boolean b) {
encryptionFlag = b;
@@ -103,6 +115,8 @@ public final class GeneralPurposeBit implements Cloneable {
/**
* whether the current entry is encrypted using strong encryption
+ *
+ * @return boolean
*/
public boolean usesStrongEncryption() {
return encryptionFlag && strongEncryptionFlag;
@@ -110,6 +124,8 @@ public final class GeneralPurposeBit implements Cloneable {
/**
* whether the current entry will be encrypted using strong encryption
+ *
+ * @param b boolean
*/
public void useStrongEncryption(boolean b) {
strongEncryptionFlag = b;
@@ -120,6 +136,8 @@ public final class GeneralPurposeBit implements Cloneable {
/**
* Encodes the set bits in a form suitable for ZIP archives.
+ *
+ * @return byte[]
*/
public byte[] encode() {
byte[] result = new byte[2];
@@ -131,7 +149,7 @@ public final class GeneralPurposeBit implements Cloneable {
* Encodes the set bits in a form suitable for ZIP archives.
*
* @param buf the output buffer
- * @param offset
+ * @param offset
* The offset within the output buffer of the first byte to be written.
* must be non-negative and no larger than <tt>buf.length-2</tt>
*/
@@ -148,8 +166,10 @@ public final class GeneralPurposeBit implements Cloneable {
/**
* Parses the supported flags from the given archive data.
+ *
* @param data local file header or a central directory entry.
* @param offset offset at which the general purpose bit starts
+ * @return GeneralPurposeBit
*/
public static GeneralPurposeBit parse(final byte[] data, final int offset) {
final int generalPurposeFlag = ZipShort.getValue(data, offset);
diff --git a/src/main/org/apache/tools/zip/NioZipEncoding.java b/src/main/org/apache/tools/zip/NioZipEncoding.java
index 63d33ff54..462b51928 100644
--- a/src/main/org/apache/tools/zip/NioZipEncoding.java
+++ b/src/main/org/apache/tools/zip/NioZipEncoding.java
@@ -51,8 +51,7 @@ class NioZipEncoding implements ZipEncoding {
}
/**
- * @see
- * org.apache.tools.zip.ZipEncoding#canEncode(java.lang.String)
+ * @see org.apache.tools.zip.ZipEncoding#canEncode(java.lang.String)
*/
public boolean canEncode(final String name) {
final CharsetEncoder enc = this.charset.newEncoder();
@@ -63,8 +62,7 @@ class NioZipEncoding implements ZipEncoding {
}
/**
- * @see
- * org.apache.tools.zip.ZipEncoding#encode(java.lang.String)
+ * @see org.apache.tools.zip.ZipEncoding#encode(java.lang.String)
*/
public ByteBuffer encode(final String name) {
final CharsetEncoder enc = this.charset.newEncoder();
@@ -110,8 +108,7 @@ class NioZipEncoding implements ZipEncoding {
}
/**
- * @see
- * org.apache.tools.zip.ZipEncoding#decode(byte[])
+ * @see org.apache.tools.zip.ZipEncoding#decode(byte[])
*/
public String decode(final byte[] data) throws IOException {
return this.charset.newDecoder()
diff --git a/src/main/org/apache/tools/zip/Simple8BitZipEncoding.java b/src/main/org/apache/tools/zip/Simple8BitZipEncoding.java
index 57a838ca9..cd400704c 100644
--- a/src/main/org/apache/tools/zip/Simple8BitZipEncoding.java
+++ b/src/main/org/apache/tools/zip/Simple8BitZipEncoding.java
@@ -212,8 +212,7 @@ class Simple8BitZipEncoding implements ZipEncoding {
}
/**
- * @see
- * org.apache.tools.zip.ZipEncoding#canEncode(java.lang.String)
+ * @see org.apache.tools.zip.ZipEncoding#canEncode(java.lang.String)
*/
public boolean canEncode(final String name) {
@@ -230,8 +229,7 @@ class Simple8BitZipEncoding implements ZipEncoding {
}
/**
- * @see
- * org.apache.tools.zip.ZipEncoding#encode(java.lang.String)
+ * @see org.apache.tools.zip.ZipEncoding#encode(java.lang.String)
*/
public ByteBuffer encode(final String name) {
ByteBuffer out = ByteBuffer.allocate(name.length()
@@ -257,8 +255,7 @@ class Simple8BitZipEncoding implements ZipEncoding {
}
/**
- * @see
- * org.apache.tools.zip.ZipEncoding#decode(byte[])
+ * @see org.apache.tools.zip.ZipEncoding#decode(byte[])
*/
public String decode(final byte[] data) throws IOException {
final char [] ret = new char[data.length];
diff --git a/src/main/org/apache/tools/zip/UnicodeCommentExtraField.java b/src/main/org/apache/tools/zip/UnicodeCommentExtraField.java
index 51550fe7c..ccc51fae4 100644
--- a/src/main/org/apache/tools/zip/UnicodeCommentExtraField.java
+++ b/src/main/org/apache/tools/zip/UnicodeCommentExtraField.java
@@ -24,9 +24,8 @@ package org.apache.tools.zip;
* <p>Stores the UTF-8 version of the file comment as stored in the
* central directory header.</p>
*
- * <p>See {@link
- * "http://www.pkware.com/documents/casestudies/APPNOTE.TXT PKWARE's
- * APPNOTE.TXT, section 4.6.8"}.</p>
+ * <p>See <a href="http://www.pkware.com/documents/casestudies/APPNOTE.TXT">PKWARE's
+ * APPNOTE.TXT, section 4.6.8</a>.</p>
*
*/
public class UnicodeCommentExtraField extends AbstractUnicodeExtraField {
diff --git a/src/main/org/apache/tools/zip/UnicodePathExtraField.java b/src/main/org/apache/tools/zip/UnicodePathExtraField.java
index 8b045a1e4..7638edd8e 100644
--- a/src/main/org/apache/tools/zip/UnicodePathExtraField.java
+++ b/src/main/org/apache/tools/zip/UnicodePathExtraField.java
@@ -24,15 +24,14 @@ package org.apache.tools.zip;
* <p>Stores the UTF-8 version of the file name field as stored in the
* local header and central directory header.</p>
*
- * <p>See {@link
- * "http://www.pkware.com/documents/casestudies/APPNOTE.TXT PKWARE's
- * APPNOTE.TXT, section 4.6.9"}.</p>
+ * <p>See <a href="http://www.pkware.com/documents/casestudies/APPNOTE.TXT">PKWARE's
+ * APPNOTE.TXT, section 4.6.9</a>.</p>
*/
public class UnicodePathExtraField extends AbstractUnicodeExtraField {
public static final ZipShort UPATH_ID = new ZipShort(0x7075);
- public UnicodePathExtraField () {
+ public UnicodePathExtraField() {
}
/**
diff --git a/src/main/org/apache/tools/zip/UnparseableExtraFieldData.java b/src/main/org/apache/tools/zip/UnparseableExtraFieldData.java
index 92d30020e..5c1a8d0b9 100644
--- a/src/main/org/apache/tools/zip/UnparseableExtraFieldData.java
+++ b/src/main/org/apache/tools/zip/UnparseableExtraFieldData.java
@@ -22,8 +22,8 @@ package org.apache.tools.zip;
* Wrapper for extra field data that doesn't conform to the recommended format of header-tag + size + data.
*
* <p>The header-id is artificial (and not listed as a known ID in
- * {@link <a href="http://www.pkware.com/documents/casestudies/APPNOTE.TXT">
- * APPNOTE.TXT</a>}). Since it isn't used anywhere except to satisfy the
+ * <a href="http://www.pkware.com/documents/casestudies/APPNOTE.TXT">APPNOTE.TXT</a>).
+ * Since it isn't used anywhere except to satisfy the
* ZipExtraField contract it shouldn't matter anyway.</p>
*
* @since Ant 1.8.1
diff --git a/src/main/org/apache/tools/zip/UnsupportedZipFeatureException.java b/src/main/org/apache/tools/zip/UnsupportedZipFeatureException.java
index 291d494d7..52df40d39 100644
--- a/src/main/org/apache/tools/zip/UnsupportedZipFeatureException.java
+++ b/src/main/org/apache/tools/zip/UnsupportedZipFeatureException.java
@@ -46,6 +46,8 @@ public class UnsupportedZipFeatureException extends ZipException {
/**
* The unsupported feature that has been used.
+ *
+ * @return Feature
*/
public Feature getFeature() {
return reason;
@@ -53,6 +55,8 @@ public class UnsupportedZipFeatureException extends ZipException {
/**
* The entry using the unsupported feature.
+ *
+ * @return ZipEntry
*/
public ZipEntry getEntry() {
return entry;
diff --git a/src/main/org/apache/tools/zip/Zip64ExtendedInformationExtraField.java b/src/main/org/apache/tools/zip/Zip64ExtendedInformationExtraField.java
index 16502ac6d..2cc0a533f 100644
--- a/src/main/org/apache/tools/zip/Zip64ExtendedInformationExtraField.java
+++ b/src/main/org/apache/tools/zip/Zip64ExtendedInformationExtraField.java
@@ -27,9 +27,8 @@ import java.util.zip.ZipException;
* Holds size and other extended information for entries that use Zip64
* features.
*
- * <p>See {@link
- * "http://www.pkware.com/documents/casestudies/APPNOTE.TXT PKWARE's
- * APPNOTE.TXT, section 4.5.3"}.</p>
+ * <p>See <a href="http://www.pkware.com/documents/casestudies/APPNOTE.TXT">PKWARE's
+ * APPNOTE.TXT, section 4.5.3</a>.</p>
*
* <p>Currently Ant doesn't support encrypting the
* central directory so the note about masking doesn't apply.</p>
@@ -86,7 +85,8 @@ public class Zip64ExtendedInformationExtraField
*
* @param size the entry's original size
* @param compressedSize the entry's compressed size
- *
+ * @param relativeHeaderOffset ZipEightByteInteger
+ * @param diskStart ZipLong
* @throws IllegalArgumentException if size or compressedSize is null
*/
public Zip64ExtendedInformationExtraField(ZipEightByteInteger size,
@@ -210,6 +210,12 @@ public class Zip64ExtendedInformationExtraField
* field are optional and must only be present if their corresponding
* entry inside the central directory contains the correct magic
* value.</p>
+ *
+ * @param hasUncompressedSize boolean
+ * @param hasCompressedSize boolean
+ * @param hasRelativeHeaderOffset boolean
+ * @param hasDiskStart boolean
+ * @throws ZipException if expected length of central directory data is incorrect
*/
public void reparseCentralDirectoryData(boolean hasUncompressedSize,
boolean hasCompressedSize,
@@ -253,6 +259,8 @@ public class Zip64ExtendedInformationExtraField
/**
* The uncompressed size stored in this extra field.
+ *
+ * @return ZipEightByteInteger
*/
public ZipEightByteInteger getSize() {
return size;
@@ -260,6 +268,8 @@ public class Zip64ExtendedInformationExtraField
/**
* The uncompressed size stored in this extra field.
+ *
+ * @param size ZipEightByteInteger
*/
public void setSize(ZipEightByteInteger size) {
this.size = size;
@@ -267,6 +277,8 @@ public class Zip64ExtendedInformationExtraField
/**
* The compressed size stored in this extra field.
+ *
+ * @return ZipEightByteInteger
*/
public ZipEightByteInteger getCompressedSize() {
return compressedSize;
@@ -274,6 +286,8 @@ public class Zip64ExtendedInformationExtraField
/**
* The uncompressed size stored in this extra field.
+ *
+ * @param compressedSize ZipEightByteInteger
*/
public void setCompressedSize(ZipEightByteInteger compressedSize) {
this.compressedSize = compressedSize;
@@ -281,6 +295,8 @@ public class Zip64ExtendedInformationExtraField
/**
* The relative header offset stored in this extra field.
+ *
+ * @return ZipEightByteInteger
*/
public ZipEightByteInteger getRelativeHeaderOffset() {
return relativeHeaderOffset;
@@ -288,6 +304,8 @@ public class Zip64ExtendedInformationExtraField
/**
* The relative header offset stored in this extra field.
+ *
+ * @param rho ZipEightByteInteger
*/
public void setRelativeHeaderOffset(ZipEightByteInteger rho) {
relativeHeaderOffset = rho;
@@ -295,6 +313,8 @@ public class Zip64ExtendedInformationExtraField
/**
* The disk start number stored in this extra field.
+ *
+ * @return ZipLong
*/
public ZipLong getDiskStartNumber() {
return diskStart;
@@ -302,6 +322,8 @@ public class Zip64ExtendedInformationExtraField
/**
* The disk start number stored in this extra field.
+ *
+ * @param ds ZipLong
*/
public void setDiskStartNumber(ZipLong ds) {
diskStart = ds;
diff --git a/src/main/org/apache/tools/zip/ZipEncoding.java b/src/main/org/apache/tools/zip/ZipEncoding.java
index 72653834c..719caf58b 100644
--- a/src/main/org/apache/tools/zip/ZipEncoding.java
+++ b/src/main/org/apache/tools/zip/ZipEncoding.java
@@ -71,14 +71,14 @@ public interface ZipEncoding {
* beginning of the encoded result, the byte buffer has a
* backing array and the limit of the byte buffer points
* to the end of the encoded result.
- * @throws IOException
+ * @throws IOException if something goes wrong
*/
ByteBuffer encode(String name) throws IOException;
/**
* @param data The byte values to decode.
* @return The decoded string.
- * @throws IOException
+ * @throws IOException if something goes wrong
*/
String decode(byte [] data) throws IOException;
}
diff --git a/src/main/org/apache/tools/zip/ZipEntry.java b/src/main/org/apache/tools/zip/ZipEntry.java
index df3f84059..eac5f6380 100644
--- a/src/main/org/apache/tools/zip/ZipEntry.java
+++ b/src/main/org/apache/tools/zip/ZipEntry.java
@@ -30,8 +30,7 @@ import java.util.zip.ZipException;
* access to the internal and external file attributes.
*
* <p>The extra data is expected to follow the recommendation of
- * {@link <a href="http://www.pkware.com/documents/casestudies/APPNOTE.TXT">
- * APPNOTE.txt</a>}:</p>
+ * <a href="http://www.pkware.com/documents/casestudies/APPNOTE.TXT">APPNOTE.txt</a>:</p>
* <ul>
* <li>the extra byte array consists of a sequence of extra fields</li>
* <li>each extra fields starts by a two byte header id followed by
@@ -59,8 +58,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
* The {@link java.util.zip.ZipEntry} base class only supports
* the compression methods STORED and DEFLATED. We override the
* field so that any compression methods can be used.
- * <p>
- * The default value -1 means that the method has not been specified.
+ * <p>The default value -1 means that the method has not been specified.</p>
*/
private int method = -1;
@@ -158,6 +156,9 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
* the file is a directory. If the file is not a directory a
* potential trailing forward slash will be stripped from the
* entry name.</p>
+ *
+ * @param inputFile File
+ * @param entryName String
*/
public ZipEntry(final File inputFile, final String entryName) {
this(inputFile.isDirectory() && !entryName.endsWith("/") ?
@@ -171,6 +172,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
/**
* Overwrite clone.
+ *
* @return a cloned copy of this ZipEntry
* @since 1.1
*/
@@ -221,6 +223,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
/**
* Sets the internal file attributes.
+ *
* @param value an <code>int</code> value
* @since 1.1
*/
@@ -230,6 +233,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
/**
* Retrieves the external file attributes.
+ *
* @return the external file attributes
* @since 1.1
*/
@@ -239,6 +243,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
/**
* Sets the external file attributes.
+ *
* @param value an <code>long</code> value
* @since 1.1
*/
@@ -249,6 +254,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
/**
* Sets Unix permissions in a way that is understood by Info-Zip's
* unzip command.
+ *
* @param mode an <code>int</code> value
* @since Ant 1.5.2
*/
@@ -265,6 +271,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
/**
* Unix permission.
+ *
* @return the unix permissions
* @since Ant 1.6
*/
@@ -288,6 +295,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
/**
* Set the platform (UNIX or FAT).
+ *
* @param platform an <code>int</code> value - 0 is FAT, 3 is UNIX
* @since 1.9
*/
@@ -297,6 +305,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
/**
* Replaces all currently attached extra fields with the new array.
+ *
* @param fields an array of extra fields
* @since 1.1
*/
@@ -315,6 +324,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
/**
* Retrieves all extra fields that have been parsed successfully.
+ *
* @return an array of the extra fields
*/
public ZipExtraField[] getExtraFields() {
@@ -323,6 +333,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
/**
* Retrieves extra fields.
+ *
* @param includeUnparseable whether to also return unparseable
* extra fields as {@link UnparseableExtraFieldData} if such data
* exists.
@@ -378,6 +389,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
/**
* Get all extra fields, including unparseable ones.
+ *
* @return An array of all extra fields. Not necessarily a copy of internal data structures, hence private method
*/
private ZipExtraField[] getAllExtraFieldsNoCopy() {
@@ -393,6 +405,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
*
* <p>If no extra field of the same type exists, the field will be
* added as last field.</p>
+ *
* @param ze an extra field
* @since 1.1
*/
@@ -420,6 +433,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
* of the same type.
*
* <p>The new extra field will be the first one.</p>
+ *
* @param ze an extra field
* @since 1.1
*/
@@ -443,6 +457,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
/**
* Remove an extra field.
+ *
* @param type the type of extra field to remove
* @since 1.1
*/
@@ -477,6 +492,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
/**
* Looks up an extra field by its header id.
*
+ * @param type ZipShort
* @return null if no such field exists.
*/
public ZipExtraField getExtraField(final ZipShort type) {
@@ -503,10 +519,11 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
* Parses the given bytes as extra field data and consumes any
* unparseable data as an {@link UnparseableExtraFieldData}
* instance.
+ *
* @param extra an array of bytes to be parsed into extra fields
* @throws RuntimeException if the bytes cannot be parsed
- * @since 1.1
* @throws RuntimeException on error
+ * @since 1.1
*/
@Override
public void setExtra(final byte[] extra) throws RuntimeException {
@@ -536,6 +553,8 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
/**
* Sets the central directory part of extra fields.
+ *
+ * @param b boolean
*/
public void setCentralDirectoryExtra(final byte[] b) {
try {
@@ -550,6 +569,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
/**
* Retrieves the extra data for the local file data.
+ *
* @return the extra data for local file
* @since 1.1
*/
@@ -560,6 +580,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
/**
* Retrieves the extra data for the central directory.
+ *
* @return the central directory extra data
* @since 1.1
*/
@@ -572,6 +593,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
*
* <p>This either stores the size for later usage or invokes
* setCompressedSize via reflection.</p>
+ *
* @param size the size to use
* @deprecated since 1.7.
* Use setCompressedSize directly.
@@ -584,6 +606,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
/**
* Get the name of the entry.
+ *
* @return the entry name
* @since 1.9
*/
@@ -594,6 +617,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
/**
* Is this entry a directory?
+ *
* @return true if the entry is a directory
* @since 1.10
*/
@@ -604,6 +628,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
/**
* Set the name of the entry.
+ *
* @param name the name to use
*/
protected void setName(String name) {
@@ -616,6 +641,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
/**
* Gets the uncompressed size of the entry data.
+ *
* @return the entry size
*/
@Override
@@ -625,6 +651,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
/**
* Sets the uncompressed size of the entry data.
+ *
* @param size the uncompressed size in bytes
* @exception IllegalArgumentException if the specified size is less
* than 0
@@ -640,6 +667,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
/**
* Sets the name using the raw bytes and the string created from
* it by guessing or using the configured encoding.
+ *
* @param name the name to use created from the raw bytes using
* the guessed or configured encoding
* @param rawName the bytes originally read as name from the
@@ -656,6 +684,8 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
*
* <p>This method will return null if this instance has not been
* read from an archive.</p>
+ *
+ * @return byte[]
*/
public byte[] getRawName() {
if (rawName != null) {
@@ -669,6 +699,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
/**
* Get the hashCode of the entry.
* This uses the name as the hashcode.
+ *
* @return a hashcode.
* @since Ant 1.7
*/
@@ -676,13 +707,15 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
public int hashCode() {
// this method has severe consequences on performance. We cannot rely
// on the super.hashCode() method since super.getName() always return
- // the empty string in the current implemention (there's no setter)
+ // the empty string in the current implementation (there's no setter)
// so it is basically draining the performance of a hashmap lookup
return getName().hashCode();
}
/**
* The "general purpose bit" field.
+ *
+ * @return GeneralPurposeBit
*/
public GeneralPurposeBit getGeneralPurposeBit() {
return gpb;
@@ -690,6 +723,8 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
/**
* The "general purpose bit" field.
+ *
+ * @param b GeneralPurposeBit
*/
public void setGeneralPurposeBit(final GeneralPurposeBit b) {
gpb = b;
@@ -700,6 +735,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
* data - otherwise merge the fields assuming the existing fields
* and the new fields stem from different locations inside the
* archive.
+ *
* @param f the extra fields to merge
* @param local whether the new fields originate from local data
*/
diff --git a/src/main/org/apache/tools/zip/ZipFile.java b/src/main/org/apache/tools/zip/ZipFile.java
index 3f4019ac4..9a51f5c1a 100644
--- a/src/main/org/apache/tools/zip/ZipFile.java
+++ b/src/main/org/apache/tools/zip/ZipFile.java
@@ -315,7 +315,7 @@ public class ZipFile implements Closeable {
* the archive's central directory.
*
* @param name name of the entry.
- * @return the Iterable<ZipEntry> corresponding to the
+ * @return the Iterable&lt;ZipEntry&gt; corresponding to the
* given name
* @since 1.9.2
*/
@@ -330,7 +330,7 @@ public class ZipFile implements Closeable {
* appear within the archive.
*
* @param name name of the entry.
- * @return the Iterable<ZipEntry> corresponding to the
+ * @return the Iterable&lt;ZipEntry&gt; corresponding to the
* given name
* @since 1.9.2
*/
@@ -347,6 +347,9 @@ public class ZipFile implements Closeable {
*
* <p>May return false if it is set up to use encryption or a
* compression method that hasn't been implemented yet.</p>
+ *
+ * @param ze ZipEntry
+ * @return boolean
*/
public boolean canReadEntryData(final ZipEntry ze) {
return ZipUtil.canHandleEntryData(ze);
@@ -365,7 +368,7 @@ public class ZipFile implements Closeable {
if (!(ze instanceof Entry)) {
return null;
}
- // cast valididty is checked just above
+ // cast validity is checked just above
final OffsetEntry offsetEntry = ((Entry) ze).getOffsetEntry();
ZipUtil.checkRequestedFeatures(ze);
final long start = offsetEntry.dataOffset;
diff --git a/src/main/org/apache/tools/zip/ZipOutputStream.java b/src/main/org/apache/tools/zip/ZipOutputStream.java
index 23f4eacaf..db934c886 100644
--- a/src/main/org/apache/tools/zip/ZipOutputStream.java
+++ b/src/main/org/apache/tools/zip/ZipOutputStream.java
@@ -262,9 +262,10 @@ public class ZipOutputStream extends FilterOutputStream {
/**
* The zip encoding to use for filenames and the file comment.
- *
+ * <p>
* This field is of internal use and will be set in {@link
* #setEncoding(String)}.
+ * </p>
*/
private ZipEncoding zipEncoding =
ZipEncodingHelper.getZipEncoding(DEFAULT_ENCODING);
@@ -407,6 +408,8 @@ public class ZipOutputStream extends FilterOutputStream {
* encoding is UTF-8.
*
* <p>Defaults to true.</p>
+ *
+ * @param b boolean
*/
public void setUseLanguageEncodingFlag(boolean b) {
useUTF8Flag = b && ZipEncodingHelper.isUTF8(encoding);
@@ -416,6 +419,8 @@ public class ZipOutputStream extends FilterOutputStream {
* Whether to create Unicode Extra Fields.
*
* <p>Defaults to NEVER.</p>
+ *
+ * @param b boolean
*/
public void setCreateUnicodeExtraFields(UnicodeExtraFieldPolicy b) {
createUnicodeExtraFields = b;
@@ -426,6 +431,8 @@ public class ZipOutputStream extends FilterOutputStream {
* the file name cannot be encoded using the specified encoding.
*
* <p>Defaults to false.</p>
+ *
+ * @param b boolean
*/
public void setFallbackToUTF8(boolean b) {
fallbackToUTF8 = b;
@@ -473,6 +480,7 @@ public class ZipOutputStream extends FilterOutputStream {
* size and data is written to a non-seekable stream - in this
* case the default is {@link Zip64Mode#Never Never}.</p>
*
+ * @param mode Zip64Mode
* @since 1.3
*/
public void setUseZip64(Zip64Mode mode) {
@@ -585,6 +593,12 @@ public class ZipOutputStream extends FilterOutputStream {
* the values just written, verifies it isn't too big in the
* Zip64Mode.Never case and returns whether the entry would
* require a Zip64 extra field.
+ *
+ * @param bytesWritten long
+ * @param crc long
+ * @param effectiveMode Zip64Mode
+ * @return boolean
+ * @throws ZipException if size or CRC is incorrect
*/
private boolean handleSizesAndCrc(long bytesWritten, long crc,
Zip64Mode effectiveMode)
@@ -629,6 +643,10 @@ public class ZipOutputStream extends FilterOutputStream {
* the values just written, verifies it isn't too big in the
* Zip64Mode.Never case and returns whether the entry would
* require a Zip64 extra field.
+ *
+ * @param effectiveMode Zip64Mode
+ * @return boolean
+ * @throws ZipException if the entry is too big for Zip64Mode.Never
*/
private boolean checkIfNeedsZip64(Zip64Mode effectiveMode)
throws ZipException {
@@ -652,8 +670,10 @@ public class ZipOutputStream extends FilterOutputStream {
/**
* When using random access output, write the local file header
- * and potentiall the ZIP64 extra containing the correct CRC and
+ * and potentially the ZIP64 extra containing the correct CRC and
* compressed/uncompressed sizes.
+ *
+ * @param actuallyNeedsZip64 boolean
*/
private void rewriteSizesAndCrc(boolean actuallyNeedsZip64)
throws IOException {
@@ -752,6 +772,8 @@ public class ZipOutputStream extends FilterOutputStream {
/**
* Provides default values for compression method and last
* modification time.
+ *
+ * @param entry ZipEntry
*/
private void setDefaults(ZipEntry entry) {
if (entry.getMethod() == -1) { // not specified
@@ -768,6 +790,8 @@ public class ZipOutputStream extends FilterOutputStream {
* that is written to a non-seekable output or the entry is too
* big to be written without Zip64 extra but the mode has been set
* to Never.
+ *
+ * @param effectiveMode Zip64Mode
*/
private void validateSizeInformation(Zip64Mode effectiveMode)
throws ZipException {
@@ -794,7 +818,7 @@ public class ZipOutputStream extends FilterOutputStream {
}
/**
- * Whether to addd a Zip64 extended information extra field to the
+ * Whether to add a Zip64 extended information extra field to the
* local file header.
*
* <p>Returns true if</p>
@@ -806,6 +830,9 @@ public class ZipOutputStream extends FilterOutputStream {
* other implementations if we add it (i.e. we can erase its
* usage</li>
* </ul>
+ *
+ * @param entry ZipEntry
+ * @param mode Zip64Mode
*/
private boolean shouldAddZip64Extra(ZipEntry entry, Zip64Mode mode) {
return mode == Zip64Mode.Always
@@ -817,6 +844,7 @@ public class ZipOutputStream extends FilterOutputStream {
/**
* Set the file comment.
+ *
* @param comment the comment
*/
public void setComment(String comment) {
@@ -827,6 +855,7 @@ public class ZipOutputStream extends FilterOutputStream {
* Sets the compression level for subsequent entries.
*
* <p>Default is Deflater.DEFAULT_COMPRESSION.</p>
+ *
* @param level the compression level.
* @throws IllegalArgumentException if an invalid compression
* level is specified.
@@ -846,6 +875,7 @@ public class ZipOutputStream extends FilterOutputStream {
* Sets the default compression method for subsequent entries.
*
* <p>Default is DEFLATED.</p>
+ *
* @param method an <code>int</code> from java.util.zip.ZipEntry
* @since 1.1
*/
@@ -858,6 +888,9 @@ public class ZipOutputStream extends FilterOutputStream {
*
* <p>May return false if it is set up to use encryption or a
* compression method that hasn't been implemented yet.</p>
+ *
+ * @param ae ZipEntry
+ * @return boolean
*/
public boolean canWriteEntryData(ZipEntry ae) {
return ZipUtil.canHandleEntryData(ae);
@@ -865,6 +898,7 @@ public class ZipOutputStream extends FilterOutputStream {
/**
* Writes bytes to ZIP entry.
+ *
* @param b the byte array to write
* @param offset the start position to write from
* @param length the number of bytes to write
@@ -887,6 +921,7 @@ public class ZipOutputStream extends FilterOutputStream {
/**
* Write bytes to output or random access file.
+ *
* @param data the byte array to write
* @throws IOException on error
*/
@@ -901,6 +936,10 @@ public class ZipOutputStream extends FilterOutputStream {
/**
* write implementation for DEFLATED entries.
+ *
+ * @param b byte[]
+ * @param offset int
+ * @param length int
*/
private void writeDeflated(byte[]b, int offset, int length)
throws IOException {
@@ -929,7 +968,7 @@ public class ZipOutputStream extends FilterOutputStream {
* Closes this output stream and releases any system resources
* associated with the stream.
*
- * @exception IOException if an I/O error occurs.
+ * @throws IOException if an I/O error occurs.
* @throws Zip64RequiredException if the archive's size exceeds 4
* GByte or there are more than 65535 entries inside the archive
* and {@link #setUseZip64} is {@link Zip64Mode#Never}.
@@ -993,8 +1032,8 @@ public class ZipOutputStream extends FilterOutputStream {
/**
* Writes next block of compressed data to the output stream.
- * @throws IOException on error
*
+ * @throws IOException on error
* @since 1.14
*/
protected final void deflate() throws IOException {
@@ -1006,9 +1045,9 @@ public class ZipOutputStream extends FilterOutputStream {
/**
* Writes the local file header entry
+ *
* @param ze the entry to write
* @throws IOException on error
- *
* @since 1.1
*/
protected void writeLocalFileHeader(ZipEntry ze) throws IOException {
@@ -1091,6 +1130,10 @@ public class ZipOutputStream extends FilterOutputStream {
* Adds UnicodeExtra fields for name and file comment if mode is
* ALWAYS or the data cannot be encoded using the configured
* encoding.
+ *
+ * @param ze ZipEntry
+ * @param encodable boolean
+ * @param name ByteBuffer
*/
private void addUnicodeExtraFields(ZipEntry ze, boolean encodable,
ByteBuffer name)
@@ -1124,9 +1167,9 @@ public class ZipOutputStream extends FilterOutputStream {
/**
* Writes the data descriptor entry.
+ *
* @param ze the entry to write
* @throws IOException on error
- *
* @since 1.1
*/
protected void writeDataDescriptor(ZipEntry ze) throws IOException {
@@ -1146,6 +1189,7 @@ public class ZipOutputStream extends FilterOutputStream {
/**
* Writes the central file header entry.
+ *
* @param ze the entry to write
* @throws IOException on error
* @throws Zip64RequiredException if the archive's size exceeds 4
@@ -1180,6 +1224,7 @@ public class ZipOutputStream extends FilterOutputStream {
/**
* Writes the central file header entry.
+ *
* @param ze the entry to write
* @param name The encoded name
* @param lfhOffset Local file header offset for this file
@@ -1268,6 +1313,10 @@ public class ZipOutputStream extends FilterOutputStream {
/**
* If the entry needs Zip64 extra information inside the central
* directory then configure its data.
+ *
+ * @param ze ZipEntry
+ * @param lfhOffset long
+ * @param needsZip64Extra boolean
*/
private void handleZip64Extra(ZipEntry ze, long lfhOffset,
boolean needsZip64Extra) {
@@ -1291,6 +1340,7 @@ public class ZipOutputStream extends FilterOutputStream {
/**
* Writes the &quot;End of central dir record&quot;.
+ *
* @throws IOException on error
* @throws Zip64RequiredException if the archive's size exceeds 4
* GByte or there are more than 65535 entries inside the archive
@@ -1333,6 +1383,7 @@ public class ZipOutputStream extends FilterOutputStream {
/**
* Convert a Date object to a DOS date/time field.
+ *
* @param time the <code>Date</code> to convert
* @return the date as a <code>ZipLong</code>
* @since 1.1
@@ -1347,6 +1398,7 @@ public class ZipOutputStream extends FilterOutputStream {
* Convert a Date object to a DOS date/time field.
*
* <p>Stolen from InfoZip's <code>fileio.c</code></p>
+ *
* @param t number of milliseconds since the epoch
* @return the date as a byte array
* @since 1.26
@@ -1360,6 +1412,7 @@ public class ZipOutputStream extends FilterOutputStream {
/**
* Retrieve the bytes for the given String in the encoding set for
* this Stream.
+ *
* @param name the string to get bytes from
* @return the bytes as a byte array
* @throws ZipException on error
@@ -1382,6 +1435,7 @@ public class ZipOutputStream extends FilterOutputStream {
/**
* Writes the &quot;ZIP64 End of central dir record&quot; and
* &quot;ZIP64 End of central dir locator&quot;.
+ *
* @throws IOException on error
*/
protected void writeZip64CentralDirectory() throws IOException {
@@ -1448,6 +1502,7 @@ public class ZipOutputStream extends FilterOutputStream {
/**
* Write bytes to output or random access file.
+ *
* @param data the byte array to write
* @throws IOException on error
*
@@ -1459,6 +1514,7 @@ public class ZipOutputStream extends FilterOutputStream {
/**
* Write bytes to output or random access file.
+ *
* @param data the byte array to write
* @param offset the start position to write from
* @param length the number of bytes to write
@@ -1478,6 +1534,7 @@ public class ZipOutputStream extends FilterOutputStream {
/**
* Assumes a negative integer really is a positive integer that
* has wrapped around and re-creates the original value.
+ *
* @param i the value to treat as unsigned int.
* @return the unsigned int as a long.
* @since 1.34
@@ -1521,6 +1578,9 @@ public class ZipOutputStream extends FilterOutputStream {
/**
* Get the existing ZIP64 extended information extra field or
* create a new one and add it to the entry.
+ *
+ * @param ze ZipEntry
+ * @return Zip64ExtendedInformationExtraField
*/
private Zip64ExtendedInformationExtraField getZip64Extra(ZipEntry ze) {
if (entry != null) {
@@ -1550,6 +1610,9 @@ public class ZipOutputStream extends FilterOutputStream {
/**
* Is there a ZIP64 extended information extra field for the
* entry?
+ *
+ * @param ze ZipEntry
+ * @return boolean
*/
private boolean hasZip64Extra(ZipEntry ze) {
return ze.getExtraField(Zip64ExtendedInformationExtraField
@@ -1561,6 +1624,9 @@ public class ZipOutputStream extends FilterOutputStream {
* If the mode is AsNeeded and the entry is a compressed entry of
* unknown size that gets written to a non-seekable stream the
* change the default to Never.
+ *
+ * @param ze ZipEntry
+ * @return Zip64Mode
*/
private Zip64Mode getEffectiveZip64Mode(ZipEntry ze) {
if (zip64Mode != Zip64Mode.AsNeeded
@@ -1588,6 +1654,8 @@ public class ZipOutputStream extends FilterOutputStream {
*
* <p>This method only exists to support tests that generate
* corrupt archives so they can clean up any temporary files.</p>
+ *
+ * @throws IOException if close() fails
*/
void destroy() throws IOException {
if (raf != null) {
diff --git a/src/main/org/apache/tools/zip/ZipUtil.java b/src/main/org/apache/tools/zip/ZipUtil.java
index c25b8c7f9..9926a298c 100644
--- a/src/main/org/apache/tools/zip/ZipUtil.java
+++ b/src/main/org/apache/tools/zip/ZipUtil.java
@@ -34,6 +34,7 @@ public abstract class ZipUtil {
/**
* Convert a Date object to a DOS date/time field.
+ *
* @param time the <code>Date</code> to convert
* @return the date as a <code>ZipLong</code>
*/
@@ -45,6 +46,7 @@ public abstract class ZipUtil {
* Convert a Date object to a DOS date/time field.
*
* <p>Stolen from InfoZip's <code>fileio.c</code></p>
+ *
* @param t number of milliseconds since the epoch
* @return the date as a byte array
*/
@@ -58,6 +60,7 @@ public abstract class ZipUtil {
* Convert a Date object to a DOS date/time field.
*
* <p>Stolen from InfoZip's <code>fileio.c</code></p>
+ *
* @param t number of milliseconds since the epoch
* @param buf the output buffer
* @param offset
@@ -117,6 +120,9 @@ public abstract class ZipUtil {
/**
* Converts DOS time to Java time (number of milliseconds since
* epoch).
+ *
+ * @param dosTime long
+ * @return long
*/
public static long dosToJavaTime(long dosTime) {
Calendar cal = Calendar.getInstance();
@@ -136,6 +142,10 @@ public abstract class ZipUtil {
* If the entry has Unicode*ExtraFields and the CRCs of the
* names/comments match those of the extra fields, transfer the
* known Unicode values from the extra field.
+ *
+ * @param ze ZipEntry
+ * @param originalNameBytes byte[]
+ * @param commentBytes byte[]
*/
static void setNameAndCommentFromExtraFields(ZipEntry ze,
byte[] originalNameBytes,
@@ -166,6 +176,9 @@ public abstract class ZipUtil {
*
* <p>If the field is null or the CRCs don't match, return null
* instead.</p>
+ *
+ * @param f AbstractUnicodeExtraField
+ * @param orig byte[]
*/
private static
String getUnicodeStringIfOriginalMatches(AbstractUnicodeExtraField f,
@@ -194,6 +207,9 @@ public abstract class ZipUtil {
/**
* Create a copy of the given array - or return null if the
* argument is null.
+ *
+ * @param from byte[]
+ * @return byte[]
*/
static byte[] copy(byte[] from) {
if (from != null) {
@@ -206,6 +222,8 @@ public abstract class ZipUtil {
/**
* Whether this library is able to read or write the given entry.
+ *
+ * @return boolean
*/
static boolean canHandleEntryData(ZipEntry entry) {
return supportsEncryptionOf(entry) && supportsMethodOf(entry);
diff --git a/src/tests/antunit/core/uuencode/src/task/BaseTask.java b/src/tests/antunit/core/uuencode/src/task/BaseTask.java
index 320f753ff..70eb7a32c 100644
--- a/src/tests/antunit/core/uuencode/src/task/BaseTask.java
+++ b/src/tests/antunit/core/uuencode/src/task/BaseTask.java
@@ -16,6 +16,7 @@
*
*/
package task;
+
import org.apache.tools.ant.Task;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.util.FileUtils;
diff --git a/src/tests/junit/org/apache/tools/ant/BuildFileRule.java b/src/tests/junit/org/apache/tools/ant/BuildFileRule.java
index 52ec87787..2611cb241 100644
--- a/src/tests/junit/org/apache/tools/ant/BuildFileRule.java
+++ b/src/tests/junit/org/apache/tools/ant/BuildFileRule.java
@@ -139,7 +139,7 @@ public class BuildFileRule extends ExternalResource {
/**
* Sets up to run the named project
*
- * @param filename name of project file to run
+ * @param filename name of project file to run
*/
public void configureProject(String filename) throws BuildException {
configureProject(filename, Project.MSG_DEBUG);
@@ -148,7 +148,8 @@ public class BuildFileRule extends ExternalResource {
/**
* Sets up to run the named project
*
- * @param filename name of project file to run
+ * @param filename name of project file to run
+ * @param logLevel int
*/
public void configureProject(String filename, int logLevel) throws BuildException {
logBuffer = new StringBuffer();
@@ -167,7 +168,7 @@ public class BuildFileRule extends ExternalResource {
* Executes a target in the configured Ant build file. Requires #configureProject()
* to have been invoked before this call.
*
- * @param targetName the target in the currently configured build file to run.
+ * @param targetName the target in the currently configured build file to run.
*/
public void executeTarget(String targetName) {
outputBuffer = new StringBuffer();
diff --git a/src/tests/junit/org/apache/tools/ant/BuildFileTest.java b/src/tests/junit/org/apache/tools/ant/BuildFileTest.java
index 02b49e356..681cef34d 100644
--- a/src/tests/junit/org/apache/tools/ant/BuildFileTest.java
+++ b/src/tests/junit/org/apache/tools/ant/BuildFileTest.java
@@ -103,6 +103,9 @@ public abstract class BuildFileTest extends TestCase {
/**
* Assert that only the given message has been logged with a
* priority &lt;= INFO when running the given target.
+ *
+ * @param target String
+ * @param log String
*/
public void expectLog(String target, String log) {
executeTarget(target);
@@ -112,6 +115,8 @@ public abstract class BuildFileTest extends TestCase {
/**
* Assert that the given substring is in the log messages.
+ *
+ * @param substring String
*/
public void assertLogContaining(String substring) {
String realLog = getLog();
@@ -122,6 +127,8 @@ public abstract class BuildFileTest extends TestCase {
/**
* Assert that the given substring is not in the log messages.
+ *
+ * @param substring String
*/
public void assertLogNotContaining(String substring) {
String realLog = getLog();
@@ -132,6 +139,8 @@ public abstract class BuildFileTest extends TestCase {
/**
* Assert that the given substring is in the output messages.
+ *
+ * @param substring String
* @since Ant1.7
*/
public void assertOutputContaining(String substring) {
@@ -140,8 +149,10 @@ public abstract class BuildFileTest extends TestCase {
/**
* Assert that the given substring is in the output messages.
+ *
* @param message Print this message if the test fails. Defaults to
* a meaningful text if <tt>null</tt> is passed.
+ * @param substring String
* @since Ant1.7
*/
public void assertOutputContaining(String message, String substring) {
@@ -154,8 +165,10 @@ public abstract class BuildFileTest extends TestCase {
/**
* Assert that the given substring is not in the output messages.
+ *
* @param message Print this message if the test fails. Defaults to
* a meaningful text if <tt>null</tt> is passed.
+ * @param substring String
* @since Ant1.7
*/
public void assertOutputNotContaining(String message, String substring) {
@@ -169,6 +182,9 @@ public abstract class BuildFileTest extends TestCase {
/**
* Assert that the given message has been logged with a priority &lt;= INFO when running the
* given target.
+ *
+ * @param target String
+ * @param log String
*/
public void expectLogContaining(String target, String log) {
executeTarget(target);
@@ -178,6 +194,9 @@ public abstract class BuildFileTest extends TestCase {
/**
* Assert that the given message has not been logged with a
* priority &lt;= INFO when running the given target.
+ *
+ * @param target String
+ * @param log String
*/
public void expectLogNotContaining(String target, String log) {
executeTarget(target);
@@ -189,7 +208,7 @@ public abstract class BuildFileTest extends TestCase {
* Only valid if configureProject() has been called.
*
* @pre logBuffer!=null
- * @return The log value
+ * @return The log value
*/
public String getLog() {
return logBuffer.toString();
@@ -198,6 +217,9 @@ public abstract class BuildFileTest extends TestCase {
/**
* Assert that the given message has been logged with a priority
* &gt;= VERBOSE when running the given target.
+ *
+ * @param target String
+ * @param log String
*/
public void expectDebuglog(String target, String log) {
executeTarget(target);
@@ -207,6 +229,8 @@ public abstract class BuildFileTest extends TestCase {
/**
* Assert that the given substring is in the log messages.
+ *
+ * @param substring String
*/
public void assertDebuglogContaining(String substring) {
String realLog = getFullLog();
@@ -231,8 +255,8 @@ public abstract class BuildFileTest extends TestCase {
/**
* execute the target, verify output matches expectations
*
- * @param target target to execute
- * @param output output to look for
+ * @param target target to execute
+ * @param output output to look for
*/
public void expectOutput(String target, String output) {
executeTarget(target);
@@ -244,9 +268,9 @@ public abstract class BuildFileTest extends TestCase {
* Executes the target, verify output matches expectations
* and that we got the named error at the end
*
- * @param target target to execute
- * @param output output to look for
- * @param error Description of Parameter
+ * @param target target to execute
+ * @param output output to look for
+ * @param error Description of Parameter
*/
public void expectOutputAndError(String target, String output, String error) {
executeTarget(target);
@@ -282,7 +306,7 @@ public abstract class BuildFileTest extends TestCase {
/**
* Sets up to run the named project
*
- * @param filename name of project file to run
+ * @param filename name of project file to run
*/
public void configureProject(String filename) throws BuildException {
configureProject(filename, Project.MSG_DEBUG);
@@ -291,7 +315,8 @@ public abstract class BuildFileTest extends TestCase {
/**
* Sets up to run the named project
*
- * @param filename name of project file to run
+ * @param filename name of project file to run
+ * @param logLevel int
*/
public void configureProject(String filename, int logLevel)
throws BuildException {
@@ -312,7 +337,7 @@ public abstract class BuildFileTest extends TestCase {
* Executes a target we have set up
*
* @pre configureProject has been called
- * @param targetName target to run
+ * @param targetName target to run
*/
public void executeTarget(String targetName) {
PrintStream sysOut = System.out;
@@ -367,10 +392,10 @@ public abstract class BuildFileTest extends TestCase {
/**
* Runs a target, wait for a build exception.
*
- * @param target target to run
- * @param cause information string to reader of report
- * @param msg the message value of the build exception we are waiting
- * for set to null for any build exception to be valid
+ * @param target target to run
+ * @param cause information string to reader of report
+ * @param msg the message value of the build exception we are waiting
+ * for set to null for any build exception to be valid
*/
public void expectSpecificBuildException(String target, String cause, String msg) {
try {
@@ -391,9 +416,9 @@ public abstract class BuildFileTest extends TestCase {
* run a target, expect an exception string
* containing the substring we look for (case sensitive match)
*
- * @param target target to run
- * @param cause information string to reader of report
- * @param contains substring of the build exception to look for
+ * @param target target to run
+ * @param cause information string to reader of report
+ * @param contains substring of the build exception to look for
*/
public void expectBuildExceptionContaining(String target, String cause, String contains) {
try {
@@ -479,7 +504,7 @@ public abstract class BuildFileTest extends TestCase {
* relative to the package name or absolute from the root path.
*
* @param resource the resource to retrieve its url.
- * @throws junit.framework.AssertionFailedError if the resource is not found.
+ * @return URL ditto
*/
public URL getResource(String resource) {
URL url = getClass().getResource(resource);
diff --git a/src/tests/junit/org/apache/tools/ant/ImmutableTest.java b/src/tests/junit/org/apache/tools/ant/ImmutableTest.java
index cd65a5a61..933bd28c4 100644
--- a/src/tests/junit/org/apache/tools/ant/ImmutableTest.java
+++ b/src/tests/junit/org/apache/tools/ant/ImmutableTest.java
@@ -65,6 +65,7 @@ public class ImmutableTest {
buildRule.executeTarget("test4");
assertEquals("original", buildRule.getProject().getProperty("test"));
}
+
// ensure <checksum> follows the immutability rule
@Test
public void test5() {
diff --git a/src/tests/junit/org/apache/tools/ant/PropertyExpansionTest.java b/src/tests/junit/org/apache/tools/ant/PropertyExpansionTest.java
index 4ac8c5f78..601391e49 100644
--- a/src/tests/junit/org/apache/tools/ant/PropertyExpansionTest.java
+++ b/src/tests/junit/org/apache/tools/ant/PropertyExpansionTest.java
@@ -76,7 +76,7 @@ public class PropertyExpansionTest {
/**
- * old things we dont want; not a test no more
+ * old things we don't want; not a test anymore
*/
@Test
@Ignore("Previously disabled through naming convention")
@@ -95,5 +95,4 @@ public class PropertyExpansionTest {
assertEquals(source,expected,actual);
}
-//end class
}
diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/AntTest.java b/src/tests/junit/org/apache/tools/ant/taskdefs/AntTest.java
index b38857ee2..1d7c25250 100644
--- a/src/tests/junit/org/apache/tools/ant/taskdefs/AntTest.java
+++ b/src/tests/junit/org/apache/tools/ant/taskdefs/AntTest.java
@@ -636,5 +636,4 @@ public class AntTest {
}
-
}
diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/DeleteTest.java b/src/tests/junit/org/apache/tools/ant/taskdefs/DeleteTest.java
index fb2442139..4d343411e 100644
--- a/src/tests/junit/org/apache/tools/ant/taskdefs/DeleteTest.java
+++ b/src/tests/junit/org/apache/tools/ant/taskdefs/DeleteTest.java
@@ -52,7 +52,7 @@ public class DeleteTest {
public void test2() {
buildRule.executeTarget("test2");
}
-//where oh where has my test case 3 gone?
+ //where oh where has my test case 3 gone?
@Test
public void test4() {
buildRule.executeTarget("test4");
diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/MacroDefTest.java b/src/tests/junit/org/apache/tools/ant/taskdefs/MacroDefTest.java
index ebcd01553..9ee7b20d2 100644
--- a/src/tests/junit/org/apache/tools/ant/taskdefs/MacroDefTest.java
+++ b/src/tests/junit/org/apache/tools/ant/taskdefs/MacroDefTest.java
@@ -132,26 +132,31 @@ public class MacroDefTest {
//TODO assert value
}
}
+
@Test
public void testEscape() {
buildRule.executeTarget("escape");
assertEquals("a@b or a@b is avalue@bvalue", buildRule.getLog());
}
+
@Test
public void testAttributeDescription() {
buildRule.executeTarget("attribute.description");
assertEquals("description is hello world", buildRule.getLog());
}
+
@Test
public void testOverrideDefault() {
buildRule.executeTarget("override.default");
assertEquals("value is new", buildRule.getLog());
}
+
@Test
public void testImplicit() {
buildRule.executeTarget("implicit");
assertEquals("Before implicitIn implicitAfter implicit", buildRule.getLog());
}
+
@Test
public void testImplicitNotOptional() {
try {
@@ -161,11 +166,13 @@ public class MacroDefTest {
assertEquals("Missing nested elements for implicit element implicit", ex.getMessage());
}
}
+
@Test
public void testImplicitOptional() {
buildRule.executeTarget("implicit.optional");
assertEquals("Before implicitAfter implicit", buildRule.getLog());
}
+
@Test
public void testImplicitExplicit() {
try {
diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/ManifestClassPathTest.java b/src/tests/junit/org/apache/tools/ant/taskdefs/ManifestClassPathTest.java
index 6fb3d1316..7f78b7b4f 100644
--- a/src/tests/junit/org/apache/tools/ant/taskdefs/ManifestClassPathTest.java
+++ b/src/tests/junit/org/apache/tools/ant/taskdefs/ManifestClassPathTest.java
@@ -191,7 +191,6 @@ public class ManifestClassPathTest {
buildRule.executeTarget("international-german");
buildRule.executeTarget("run-two-jars");
assertContains("beta alpha", buildRule.getLog());
-
}
@Test
diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/ParallelTest.java b/src/tests/junit/org/apache/tools/ant/taskdefs/ParallelTest.java
index 97667e461..4f7a4d0e7 100644
--- a/src/tests/junit/org/apache/tools/ant/taskdefs/ParallelTest.java
+++ b/src/tests/junit/org/apache/tools/ant/taskdefs/ParallelTest.java
@@ -92,10 +92,10 @@ public class ParallelTest {
/**
* the test result string should match the regex
- * <code>^(\|\d+\/(+-)*)+\|$</code> for someting like
+ * <code>^(\|\d+\/(+-)*)+\|$</code> for something like
* <code>|3/++--+-|5/+++++-----|</code>
*
- *@return -1 no more tests
+ * @return -1 no more tests
* # start pos of next test
*/
static int countThreads(String s, int start) {
diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/RenameTest.java b/src/tests/junit/org/apache/tools/ant/taskdefs/RenameTest.java
index 0cb134410..ca3779952 100644
--- a/src/tests/junit/org/apache/tools/ant/taskdefs/RenameTest.java
+++ b/src/tests/junit/org/apache/tools/ant/taskdefs/RenameTest.java
@@ -80,6 +80,7 @@ public class RenameTest {
public void test5() {
buildRule.executeTarget("test5");
}
+
@Test
public void test6() {
buildRule.executeTarget("test6");
diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/RmicAdvancedTest.java b/src/tests/junit/org/apache/tools/ant/taskdefs/RmicAdvancedTest.java
index 3bbef0e93..3113af53b 100644
--- a/src/tests/junit/org/apache/tools/ant/taskdefs/RmicAdvancedTest.java
+++ b/src/tests/junit/org/apache/tools/ant/taskdefs/RmicAdvancedTest.java
@@ -227,7 +227,6 @@ public class RmicAdvancedTest {
}
}
-
/**
* A unit test for JUnit
*/
@@ -243,7 +242,6 @@ public class RmicAdvancedTest {
AntAssert.assertContains("unimplemented.class", buildRule.getLog());
}
-
/**
* A unit test for JUnit
*/
@@ -270,13 +268,11 @@ public class RmicAdvancedTest {
}
}
-
@Test
public void testMagicPropertyIsEmptyString() throws Exception {
buildRule.executeTarget("testMagicPropertyIsEmptyString");
}
-
@Test
@Ignore("Previously named to prevent execution")
public void NotestFailingAdapter() throws Exception {
@@ -288,7 +284,6 @@ public class RmicAdvancedTest {
}
}
-
/**
* test that version 1.1 stubs are good
* @throws Exception if something goes wrong
diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/SQLExecTest.java b/src/tests/junit/org/apache/tools/ant/taskdefs/SQLExecTest.java
index dac694110..979ec23d4 100644
--- a/src/tests/junit/org/apache/tools/ant/taskdefs/SQLExecTest.java
+++ b/src/tests/junit/org/apache/tools/ant/taskdefs/SQLExecTest.java
@@ -179,6 +179,8 @@ public class SQLExecTest {
* If you want to test on your specific base, you'd better
* tweak this to make it run or add your own database.
* The driver lib should be dropped into the system classloader.
+ *
+ * @param database int
*/
protected Properties getProperties(int database) {
Properties props = null;
@@ -200,7 +202,14 @@ public class SQLExecTest {
return props;
}
- /** helper method to build properties */
+ /**
+ * helper method to build properties
+ *
+ * @param driver String
+ * @param user String
+ * @param pwd String
+ * @param url String
+ */
protected Properties getProperties(String driver, String user, String pwd, String url) {
Properties props = new Properties();
props.put(DRIVER, driver);
diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/condition/TypeFoundTest.java b/src/tests/junit/org/apache/tools/ant/taskdefs/condition/TypeFoundTest.java
index ab2849430..6c73188cb 100644
--- a/src/tests/junit/org/apache/tools/ant/taskdefs/condition/TypeFoundTest.java
+++ b/src/tests/junit/org/apache/tools/ant/taskdefs/condition/TypeFoundTest.java
@@ -87,5 +87,4 @@ public class TypeFoundTest {
assertEquals("true", buildRule.getProject().getProperty("testMacro"));
}
-
}
diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/AbstractXSLTLiaisonTest.java b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/AbstractXSLTLiaisonTest.java
index d7dedfc6c..9a77203b2 100644
--- a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/AbstractXSLTLiaisonTest.java
+++ b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/AbstractXSLTLiaisonTest.java
@@ -53,7 +53,13 @@ public abstract class AbstractXSLTLiaisonTest {
// to override
protected abstract XSLTLiaison createLiaison() throws Exception;
- /** load the file from the caller classloader that loaded this class */
+ /**
+ * Load the file from the caller classloader that loaded this class
+ *
+ * @param name String
+ * @return File
+ * @throws FileNotFoundException if file is not found
+ */
protected File getFile(String name) throws FileNotFoundException {
URL url = getClass().getResource(name);
if (url == null) {
@@ -62,7 +68,11 @@ public abstract class AbstractXSLTLiaisonTest {
return new File(FILE_UTILS.fromURI(url.toExternalForm()));
}
- /** keep it simple stupid */
+ /**
+ * Keep it simple stupid
+ *
+ * @throws Exception if something goes wrong
+ */
@Test
public void testTransform() throws Exception {
File xsl = getFile("/taskdefs/optional/xsltliaison-in.xsl");
diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/TraXLiaisonTest.java b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/TraXLiaisonTest.java
index d11893ac3..c4f28ab05 100644
--- a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/TraXLiaisonTest.java
+++ b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/TraXLiaisonTest.java
@@ -27,8 +27,6 @@ import java.security.Permission;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.TransformerFactoryConfigurationError;
-import junit.framework.AssertionFailedError;
-
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.taskdefs.XSLTLiaison;
import org.apache.tools.ant.taskdefs.XSLTLogger;
@@ -170,7 +168,7 @@ public class TraXLiaisonTest extends AbstractXSLTLiaisonTest
}
public void log(String message) {
- throw new AssertionFailedError("Liaison sent message: " + message);
+ throw new AssertionError("Liaison sent message: " + message);
}
}
diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/XmlValidateTest.java b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/XmlValidateTest.java
index 58f7a4b1f..d5f27a66a 100644
--- a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/XmlValidateTest.java
+++ b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/XmlValidateTest.java
@@ -131,7 +131,6 @@ public class XmlValidateTest {
try {
buildRule.executeTarget("testSchemaBad");
fail("Should throw BuildException because 'Bad Schema Validation'");
-
} catch (BuildException e) {
if (e
.getMessage()
diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/XsltTest.java b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/XsltTest.java
index 0a57cc556..b45505b3a 100644
--- a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/XsltTest.java
+++ b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/XsltTest.java
@@ -45,7 +45,6 @@ public class XsltTest {
buildRule.configureProject(TASKDEFS_DIR + "xslt.xml");
}
-
@Test
public void testCatchNoDtd() {
try {
diff --git a/src/tests/junit/org/apache/tools/ant/types/AbstractFileSetTest.java b/src/tests/junit/org/apache/tools/ant/types/AbstractFileSetTest.java
index aa4fd39c3..56ee49819 100644
--- a/src/tests/junit/org/apache/tools/ant/types/AbstractFileSetTest.java
+++ b/src/tests/junit/org/apache/tools/ant/types/AbstractFileSetTest.java
@@ -39,7 +39,6 @@ public abstract class AbstractFileSetTest {
private Project project;
-
@Before
public void setUp() {
project = new Project();
diff --git a/src/tests/junit/org/apache/tools/ant/types/CommandlineJavaTest.java b/src/tests/junit/org/apache/tools/ant/types/CommandlineJavaTest.java
index 53aa27c70..db70ac49e 100644
--- a/src/tests/junit/org/apache/tools/ant/types/CommandlineJavaTest.java
+++ b/src/tests/junit/org/apache/tools/ant/types/CommandlineJavaTest.java
@@ -39,7 +39,6 @@ public class CommandlineJavaTest {
private String cloneVm;
-
private Project project;
@Before
diff --git a/src/tests/junit/org/apache/tools/ant/types/CommandlineTest.java b/src/tests/junit/org/apache/tools/ant/types/CommandlineTest.java
index ce728e88f..6807a3345 100644
--- a/src/tests/junit/org/apache/tools/ant/types/CommandlineTest.java
+++ b/src/tests/junit/org/apache/tools/ant/types/CommandlineTest.java
@@ -26,8 +26,7 @@ import static org.junit.Assert.fail;
import static org.junit.Assert.assertNotNull;
/**
- * JUnit 3 testcases for org.apache.tools.ant.CommandLine
- *
+ * JUnit 4 testcases for org.apache.tools.ant.CommandLine
*/
public class CommandlineTest {
diff --git a/src/tests/junit/org/apache/tools/ant/types/DirSetTest.java b/src/tests/junit/org/apache/tools/ant/types/DirSetTest.java
index 8c659ba79..e9162f198 100644
--- a/src/tests/junit/org/apache/tools/ant/types/DirSetTest.java
+++ b/src/tests/junit/org/apache/tools/ant/types/DirSetTest.java
@@ -20,6 +20,7 @@ package org.apache.tools.ant.types;
import java.io.File;
import java.io.FileOutputStream;
+
import org.apache.tools.ant.BuildException;
import org.junit.Test;
@@ -27,8 +28,7 @@ import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
/**
- * JUnit 3 testcases for org.apache.tools.ant.types.DirSet.
- *
+ * JUnit 4 testcases for org.apache.tools.ant.types.DirSet.
*/
public class DirSetTest extends AbstractFileSetTest {
diff --git a/src/tests/junit/org/apache/tools/ant/types/EnumeratedAttributeTest.java b/src/tests/junit/org/apache/tools/ant/types/EnumeratedAttributeTest.java
index b20412ec1..af1a88b66 100644
--- a/src/tests/junit/org/apache/tools/ant/types/EnumeratedAttributeTest.java
+++ b/src/tests/junit/org/apache/tools/ant/types/EnumeratedAttributeTest.java
@@ -18,7 +18,6 @@
package org.apache.tools.ant.types;
-
import org.apache.tools.ant.BuildException;
import org.junit.Test;
diff --git a/src/tests/junit/org/apache/tools/ant/types/FileSetTest.java b/src/tests/junit/org/apache/tools/ant/types/FileSetTest.java
index 8a1c35ac0..e5aa8758f 100644
--- a/src/tests/junit/org/apache/tools/ant/types/FileSetTest.java
+++ b/src/tests/junit/org/apache/tools/ant/types/FileSetTest.java
@@ -20,15 +20,13 @@ package org.apache.tools.ant.types;
/**
- * JUnit 3 testcases for org.apache.tools.ant.types.FileSet.
- *
- * <p>This doesn't actually test much, mainly reference handling.
+ * JUnit 4 testcases for org.apache.tools.ant.types.FileSet.
*
+ * <p>This doesn't actually test much, mainly reference handling.</p>
*/
public class FileSetTest extends AbstractFileSetTest {
-
protected AbstractFileSet getInstance() {
return new FileSet();
}
diff --git a/src/tests/junit/org/apache/tools/ant/types/FlexIntegerTest.java b/src/tests/junit/org/apache/tools/ant/types/FlexIntegerTest.java
index 3e08b2cbb..dd01ff7e9 100644
--- a/src/tests/junit/org/apache/tools/ant/types/FlexIntegerTest.java
+++ b/src/tests/junit/org/apache/tools/ant/types/FlexIntegerTest.java
@@ -18,9 +18,9 @@
package org.apache.tools.ant.types;
+import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.BuildFileRule;
import org.apache.tools.ant.Project;
-import org.apache.tools.ant.BuildException;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
diff --git a/src/tests/junit/org/apache/tools/ant/types/PatternSetTest.java b/src/tests/junit/org/apache/tools/ant/types/PatternSetTest.java
index 065d757db..1dbacfc79 100644
--- a/src/tests/junit/org/apache/tools/ant/types/PatternSetTest.java
+++ b/src/tests/junit/org/apache/tools/ant/types/PatternSetTest.java
@@ -29,10 +29,9 @@ import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
/**
- * JUnit 3 testcases for org.apache.tools.ant.types.PatternSet.
+ * JUnit 4 testcases for org.apache.tools.ant.types.PatternSet.
*
* <p>This doesn't actually test much, mainly reference handling.</p>
- *
*/
public class PatternSetTest {
diff --git a/src/tests/junit/org/apache/tools/ant/types/PermissionsTest.java b/src/tests/junit/org/apache/tools/ant/types/PermissionsTest.java
index 7ff856537..091258879 100644
--- a/src/tests/junit/org/apache/tools/ant/types/PermissionsTest.java
+++ b/src/tests/junit/org/apache/tools/ant/types/PermissionsTest.java
@@ -25,8 +25,7 @@ import org.junit.Test;
import static org.junit.Assert.fail;
/**
- * JUnit 3 testcases for org.apache.tools.ant.types.Permissions.
- *
+ * JUnit 4 testcases for org.apache.tools.ant.types.Permissions.
*/
public class PermissionsTest {
diff --git a/src/tests/junit/org/apache/tools/ant/types/TarFileSetTest.java b/src/tests/junit/org/apache/tools/ant/types/TarFileSetTest.java
index efaa47482..28251e0d1 100644
--- a/src/tests/junit/org/apache/tools/ant/types/TarFileSetTest.java
+++ b/src/tests/junit/org/apache/tools/ant/types/TarFileSetTest.java
@@ -28,12 +28,10 @@ import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
/**
- * JUnit 3 testcases for org.apache.tools.ant.types.TarFileSet.
- *
- * <p>This doesn't actually test much, mainly reference handling.
+ * JUnit 4 testcases for org.apache.tools.ant.types.TarFileSet.
*
+ * <p>This doesn't actually test much, mainly reference handling.</p>
*/
-
public class TarFileSetTest extends AbstractFileSetTest {
@@ -119,5 +117,4 @@ public class TarFileSetTest extends AbstractFileSetTest {
f.getDirMode(getProject()) == zid.getDirMode(getProject()));
}
-
}
diff --git a/src/tests/junit/org/apache/tools/ant/types/XMLCatalogTest.java b/src/tests/junit/org/apache/tools/ant/types/XMLCatalogTest.java
index 2422c7999..e2df448f0 100644
--- a/src/tests/junit/org/apache/tools/ant/types/XMLCatalogTest.java
+++ b/src/tests/junit/org/apache/tools/ant/types/XMLCatalogTest.java
@@ -204,6 +204,7 @@ public class XMLCatalogTest {
be.getMessage());
}
}
+
// inspired by Bugzilla Report 23913
// a problem used to happen under Windows when the location of the DTD was given as an absolute path
// possibly with a mixture of file separators
@@ -225,7 +226,6 @@ public class XMLCatalogTest {
@Test
public void testSimpleEntry() throws IOException, SAXException {
-
ResourceLocation dtd = new ResourceLocation();
dtd.setPublicId("-//stevo//DTD doc 1.0//EN");
String sysid = "src/etc/testcases/taskdefs/optional/xml/doc.dtd";
@@ -311,7 +311,6 @@ public class XMLCatalogTest {
Source result = catalog.resolve(uri, null);
assertNotNull(result);
assertEquals(toURLString(xmlFile), result.getSystemId());
-
}
@Test
@@ -329,7 +328,6 @@ public class XMLCatalogTest {
Source result = catalog.resolve(uri, base);
assertNotNull(result);
assertEquals(toURLString(xmlFile), result.getSystemId());
-
}
@Test
@@ -367,6 +365,5 @@ public class XMLCatalogTest {
assertNotNull(result);
String resultStr = new URL(result.getSystemId()).getFile();
assertTrue(toURLString(xmlFile).endsWith(resultStr));
-
}
}
diff --git a/src/tests/junit/org/apache/tools/ant/types/ZipFileSetTest.java b/src/tests/junit/org/apache/tools/ant/types/ZipFileSetTest.java
index f9265feee..d89b0bd1d 100644
--- a/src/tests/junit/org/apache/tools/ant/types/ZipFileSetTest.java
+++ b/src/tests/junit/org/apache/tools/ant/types/ZipFileSetTest.java
@@ -28,12 +28,10 @@ import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
/**
- * JUnit 3 testcases for org.apache.tools.ant.types.ZipFileSet.
+ * JUnit 4 testcases for org.apache.tools.ant.types.ZipFileSet.
*
* <p>This doesn't actually test much, mainly reference handling.</p>
- *
*/
-
public class ZipFileSetTest extends AbstractFileSetTest {
protected AbstractFileSet getInstance() {
@@ -118,5 +116,4 @@ public class ZipFileSetTest extends AbstractFileSetTest {
f.getDirMode(getProject()), zid.getDirMode(getProject()));
}
-
}
diff --git a/src/tests/junit/org/apache/tools/ant/types/mappers/GlobMapperTest.java b/src/tests/junit/org/apache/tools/ant/types/mappers/GlobMapperTest.java
index d48e52973..c73c2fe38 100644
--- a/src/tests/junit/org/apache/tools/ant/types/mappers/GlobMapperTest.java
+++ b/src/tests/junit/org/apache/tools/ant/types/mappers/GlobMapperTest.java
@@ -41,6 +41,8 @@ public class GlobMapperTest {
public void testIgnoreCase() {
buildRule.executeTarget("ignore.case");
}
+
+ @Test
public void testHandleDirSep() {
buildRule.executeTarget("handle.dirsep");
}
diff --git a/src/tests/junit/org/apache/tools/ant/types/resources/MultiRootFileSetTest.java b/src/tests/junit/org/apache/tools/ant/types/resources/MultiRootFileSetTest.java
index 6c05963b8..267663223 100644
--- a/src/tests/junit/org/apache/tools/ant/types/resources/MultiRootFileSetTest.java
+++ b/src/tests/junit/org/apache/tools/ant/types/resources/MultiRootFileSetTest.java
@@ -36,7 +36,6 @@ import static org.junit.Assert.fail;
*/
public class MultiRootFileSetTest extends AbstractFileSetTest {
-
protected AbstractFileSet getInstance() {
return new MultiRootFileSet() {
// overriding so set/getDir works as expected by the base test class
diff --git a/src/tests/junit/org/apache/tools/ant/types/selectors/BaseSelectorRule.java b/src/tests/junit/org/apache/tools/ant/types/selectors/BaseSelectorRule.java
index 643dbeb0c..64bf741b3 100644
--- a/src/tests/junit/org/apache/tools/ant/types/selectors/BaseSelectorRule.java
+++ b/src/tests/junit/org/apache/tools/ant/types/selectors/BaseSelectorRule.java
@@ -86,6 +86,8 @@ public class BaseSelectorRule extends BuildFileRule {
* This is a helper method that takes a selector and calls its
* isSelected() method on each file in the testbed. It returns
* a string of "T"s amd "F"s
+ *
+ * @param selector FileSelector
*/
public String selectionString(FileSelector selector) {
return selectionString(beddir,files,selector);
@@ -97,6 +99,8 @@ public class BaseSelectorRule extends BuildFileRule {
* variation is used for dependency checks and to get around the
* limitations in the touch task when running JDK 1.1. It returns
* a string of "T"s amd "F"s.
+ *
+ * @param selector FileSelector
*/
public String mirrorSelectionString(FileSelector selector) {
return selectionString(mirrordir, mirrorfiles, selector);
@@ -106,6 +110,10 @@ public class BaseSelectorRule extends BuildFileRule {
* Worker method for the two convenience methods above. Applies a
* selector on a set of files passed in and returns a string of
* "T"s and "F"s from applying the selector to each file.
+ *
+ * @param basedir File
+ * @param files File[]
+ * @param selector FileSelector
*/
public String selectionString(File basedir, File[] files, FileSelector selector) {
StringBuilder buf = new StringBuilder();
diff --git a/src/tests/junit/org/apache/tools/ant/types/selectors/BaseSelectorTest.java b/src/tests/junit/org/apache/tools/ant/types/selectors/BaseSelectorTest.java
index e9c0e9903..34c135a1b 100644
--- a/src/tests/junit/org/apache/tools/ant/types/selectors/BaseSelectorTest.java
+++ b/src/tests/junit/org/apache/tools/ant/types/selectors/BaseSelectorTest.java
@@ -113,6 +113,8 @@ public abstract class BaseSelectorTest extends BuildFileTest {
* This is a helper method that takes a selector and calls its
* isSelected() method on each file in the testbed. It returns
* a string of "T"s amd "F"s
+ *
+ * @param selector FileSelector
*/
public String selectionString(FileSelector selector) {
return selectionString(beddir,files,selector);
@@ -124,6 +126,8 @@ public abstract class BaseSelectorTest extends BuildFileTest {
* variation is used for dependency checks and to get around the
* limitations in the touch task when running JDK 1.1. It returns
* a string of "T"s amd "F"s.
+ *
+ * @param selector FileSelector
*/
public String mirrorSelectionString(FileSelector selector) {
return selectionString(mirrordir,mirrorfiles,selector);
@@ -133,6 +137,10 @@ public abstract class BaseSelectorTest extends BuildFileTest {
* Worker method for the two convenience methods above. Applies a
* selector on a set of files passed in and returns a string of
* "T"s amd "F"s from applying the selector to each file.
+ *
+ * @param basedir File
+ * @param files File[]
+ * @param selector FileSelector
*/
public String selectionString(File basedir, File[] files, FileSelector selector) {
StringBuilder buf = new StringBuilder();
@@ -150,6 +158,7 @@ public abstract class BaseSelectorTest extends BuildFileTest {
* Does the selection test for a given selector and prints the
* filenames of the differing files (selected but shouldn't,
* not selected but should).
+ *
* @param selector The selector to test
* @param expected The expected result
*/
@@ -161,12 +170,13 @@ public abstract class BaseSelectorTest extends BuildFileTest {
}
/**
- * Checks which files are selected and shouldn't be or which
- * are not selected but should.
- * @param expected String containing 'F's and 'T's
- * @param result String containing 'F's and 'T's
- * @return Difference as String containing '-' (equal) and
- * 'X' (difference).
+ * Checks which files are selected and shouldn't be or which
+ * are not selected but should.
+ *
+ * @param expected String containing 'F's and 'T's
+ * @param result String containing 'F's and 'T's
+ * @return Difference as String containing '-' (equal) and
+ * 'X' (difference).
*/
public String diff(String expected, String result) {
int length1 = expected.length();
@@ -184,6 +194,7 @@ public abstract class BaseSelectorTest extends BuildFileTest {
/**
* Resolves a diff-String (@see diff()) against the (inherited) filenames-
* and files arrays.
+ *
* @param filelist Diff-String
* @return String containing the filenames for all differing files,
* separated with semicolons ';'
@@ -204,10 +215,10 @@ public abstract class BaseSelectorTest extends BuildFileTest {
/**
- * <p>Creates a testbed. We avoid the dreaded "test" word so that we
+ * Creates a testbed. We avoid the dreaded "test" word so that we
* don't falsely identify this as a test to be run. The actual
* setting up of the testbed is done in the
- * <code>src/etc/testcases/types/selectors.xml</code> build file.</p>
+ * <code>src/etc/testcases/types/selectors.xml</code> build file.
*
* <p>Note that the right way to call this is within a try block,
* with a finally clause that calls cleanupBed(). You place tests of
@@ -232,7 +243,7 @@ public abstract class BaseSelectorTest extends BuildFileTest {
/**
- * <p>Creates a mirror of the testbed for use in dependency checks.</p>
+ * Creates a mirror of the testbed for use in dependency checks.
*
* <p>Note that the right way to call this is within a try block,
* with a finally clause that calls cleanupMirror(). You place tests of
diff --git a/src/tests/junit/org/apache/tools/ant/types/selectors/ContainsSelectorTest.java b/src/tests/junit/org/apache/tools/ant/types/selectors/ContainsSelectorTest.java
index e964e8438..1b19c053d 100644
--- a/src/tests/junit/org/apache/tools/ant/types/selectors/ContainsSelectorTest.java
+++ b/src/tests/junit/org/apache/tools/ant/types/selectors/ContainsSelectorTest.java
@@ -72,7 +72,6 @@ public class ContainsSelectorTest {
ContainsSelector s;
String results;
-
s = new ContainsSelector();
s.setText("no such string in test files");
results = selectorRule.selectionString(s);
@@ -106,9 +105,6 @@ public class ContainsSelectorTest {
s.setIgnorewhitespace(true);
results = selectorRule.selectionString(s);
assertEquals("TFFFTFFFFFFT", results);
-
-
-
}
}
diff --git a/src/tests/junit/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java b/src/tests/junit/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java
index 92c0b948d..bac48958a 100644
--- a/src/tests/junit/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java
+++ b/src/tests/junit/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java
@@ -71,13 +71,9 @@ public class ModifiedSelectorTest {
// ===================== attributes =====================
-
/** Path where the testclasses are. */
private Path testclasses = null;
-
-
-
// ===================== JUnit stuff =====================
@@ -88,11 +84,9 @@ public class ModifiedSelectorTest {
testclasses = new Path(prj, prj.getProperty("build.tests.value"));
}
-
// ======= testcases for the attributes and nested elements of the selector =====
-
- /** Test right use of cache names. */
+ /** Test correct use of cache names. */
@Test
public void testValidateWrongCache() {
String name = "this-is-not-a-valid-cache-name";
@@ -106,8 +100,7 @@ public class ModifiedSelectorTest {
}
}
-
- /** Test right use of cache names. */
+ /** Test correct use of cache names. */
@Test
public void testValidateWrongAlgorithm() {
String name = "this-is-not-a-valid-algorithm-name";
@@ -122,8 +115,7 @@ public class ModifiedSelectorTest {
}
}
-
- /** Test right use of comparator names. */
+ /** Test correct use of comparator names. */
@Test
public void testValidateWrongComparator() {
String name = "this-is-not-a-valid-comparator-name";
@@ -138,7 +130,7 @@ public class ModifiedSelectorTest {
}
}
-
+ /** Test correct use of algorithm names. */
@Test
public void testIllegalCustomAlgorithm() {
try {
@@ -152,7 +144,7 @@ public class ModifiedSelectorTest {
}
}
-
+ /** Test correct use of algorithm names. */
@Test
public void testNonExistentCustomAlgorithm() {
try {
@@ -178,12 +170,12 @@ public class ModifiedSelectorTest {
assertTrue("Wrong algorithm used: " + algo, algo.startsWith("MockAlgorithm"));
}
-
@Test
public void testCustomClasses() {
Assume.assumeNotNull("Ant home not set", selectorRule.getProject().getProperty("ant.home"));
BFT bft = new BFT();
bft.setUp();
+ // don't catch the JUnit exceptions
try {
// do the actions
bft.doTarget("modifiedselectortest-customClasses");
@@ -198,7 +190,6 @@ public class ModifiedSelectorTest {
assertNotNull("'fs.mod.value' must be set.", fsModValue);
// must be empty according to the Mock* implementations
assertTrue("'fs.mod.value' must be empty.", "".equals(fsModValue));
- // don't catch the JUnit exceptions
} finally {
bft.doTarget("modifiedselectortest-scenario-clean");
bft.deletePropertiesfile();
@@ -206,25 +197,21 @@ public class ModifiedSelectorTest {
}
}
-
@Test
public void testDelayUpdateTaskFinished() {
doDelayUpdateTest(1);
}
-
@Test
public void testDelayUpdateTargetFinished() {
doDelayUpdateTest(2);
}
-
@Test
public void testDelayUpdateBuildFinished() {
doDelayUpdateTest(3);
}
-
public void doDelayUpdateTest(int kind) {
// no check for 1<=kind<=3 - only internal use therefore check it
// while development
@@ -273,11 +260,9 @@ public class ModifiedSelectorTest {
break;
}
assertTrue("Cache must be saved after " + kinds[kind - 1] + "Finished-Event.", cache.saved);
-
// MockCache doesn't create a file - therefore no cleanup needed
}
-
/**
* Extracts the real used algorithm name from the ModifiedSelector using
* its toString() method.
@@ -308,10 +293,8 @@ public class ModifiedSelectorTest {
return algo;
}
-
// ================ testcases for the cache implementations ================
-
/**
* Propertycache must have a set 'cachefile' attribute.
* The default in ModifiedSelector "cache.properties" is set by the selector.
@@ -323,7 +306,6 @@ public class ModifiedSelectorTest {
fail("PropertyfilesCache does not check its configuration.");
}
-
@Test
public void testPropertyfileCache() {
PropertiesfileCache cache = new PropertiesfileCache();
@@ -333,7 +315,6 @@ public class ModifiedSelectorTest {
assertFalse("Cache file not deleted.", cachefile.exists());
}
-
/** Checks whether a cache file is created. */
@Test
public void testCreatePropertiesCacheDirect() {
@@ -351,7 +332,6 @@ public class ModifiedSelectorTest {
assertFalse("Cachefile not deleted.", cachefile.exists());
}
-
/** Checks whether a cache file is created. */
@Test
public void testCreatePropertiesCacheViaModifiedSelector() {
@@ -373,10 +353,8 @@ public class ModifiedSelectorTest {
// evaluate correctness
assertTrue("Cache file is not created.", cachefile.exists());
cachefile.delete();
-
}
-
/**
* In earlier implementations there were problems with the <i>order</i>
* of the <param>s. The scenario was <pre>
@@ -405,17 +383,14 @@ public class ModifiedSelectorTest {
// evaluate correctness
assertTrue("Cache file is not created.", cachefile.exists());
cachefile.delete();
-
}
-
@Test
@Ignore("same logic as on algorithm, no testcases created")
public void testCustomCache() {
// same logic as on algorithm, no testcases created
}
-
/**
* Test the interface semantic of Caches.
* This method does some common test for cache implementations.
@@ -459,17 +434,14 @@ public class ModifiedSelectorTest {
assertFalse("Cache is not empty", it3.hasNext());
}
-
// ============== testcases for the algorithm implementations ==============
-
@Test
public void testHashvalueAlgorithm() {
HashvalueAlgorithm algo = new HashvalueAlgorithm();
doTest(algo);
}
-
@Test
public void testDigestAlgorithmMD5() {
DigestAlgorithm algo = new DigestAlgorithm();
@@ -477,7 +449,6 @@ public class ModifiedSelectorTest {
doTest(algo);
}
-
@Test
public void testDigestAlgorithmSHA() {
DigestAlgorithm algo = new DigestAlgorithm();
@@ -485,14 +456,12 @@ public class ModifiedSelectorTest {
doTest(algo);
}
-
@Test
public void testChecksumAlgorithm() {
ChecksumAlgorithm algo = new ChecksumAlgorithm();
doTest(algo);
}
-
@Test
public void testChecksumAlgorithmCRC() {
ChecksumAlgorithm algo = new ChecksumAlgorithm();
@@ -500,7 +469,6 @@ public class ModifiedSelectorTest {
doTest(algo);
}
-
@Test
public void testChecksumAlgorithmAdler() {
ChecksumAlgorithm algo = new ChecksumAlgorithm();
@@ -508,7 +476,6 @@ public class ModifiedSelectorTest {
doTest(algo);
}
-
/**
* Test the interface semantic of Algorithms.
* This method does some common test for algorithm implementations.
@@ -769,7 +736,6 @@ public class ModifiedSelectorTest {
}
}
-
/**
* This scenario is based on scenario 1, but does not use any
* default value and its based on &lt;custom&gt; selector. Used values are:
@@ -836,28 +802,24 @@ public class ModifiedSelectorTest {
}
}
-
@Test
public void testScenarioCoreSelectorDefaults() {
Assume.assumeNotNull("Ant home not set", selectorRule.getProject().getProperty("ant.home"));
doScenarioTest("modifiedselectortest-scenario-coreselector-defaults", "cache.properties");
}
-
@Test
public void testScenarioCoreSelectorSettings() {
Assume.assumeNotNull("Ant home not set", selectorRule.getProject().getProperty("ant.home"));
doScenarioTest("modifiedselectortest-scenario-coreselector-settings", "core.cache.properties");
}
-
@Test
public void testScenarioCustomSelectorSettings() {
Assume.assumeNotNull("Ant home not set", selectorRule.getProject().getProperty("ant.home"));
doScenarioTest("modifiedselectortest-scenario-customselector-settings", "core.cache.properties");
}
-
public void doScenarioTest(String target, String cachefilename) {
BFT bft = new BFT();
bft.setUp();
@@ -886,10 +848,8 @@ public class ModifiedSelectorTest {
}
}
-
// ===================== helper methods and classes ====================
-
/**
* Creates a configured parameter object.
* @param name name of the parameter
@@ -903,7 +863,6 @@ public class ModifiedSelectorTest {
return p;
}
-
/**
* The BFT class wrapps the selector test-builfile inside an
* ant project. It supports target execution
@@ -916,20 +875,17 @@ public class ModifiedSelectorTest {
boolean isConfigured = false;
-
public void setUp() {
super.configureProject(buildfile);
isConfigured = true;
}
-
/**
* This stub teardown is here because the outer class needs to call the
* tearDown method, and in the superclass it is protected.
*/
public void tearDown() {
super.after();
-
}
public void doTarget(String target) {
@@ -1067,5 +1023,4 @@ public class ModifiedSelectorTest {
return sb.toString();
}
-
}
diff --git a/src/tests/junit/org/apache/tools/ant/types/selectors/SizeSelectorTest.java b/src/tests/junit/org/apache/tools/ant/types/selectors/SizeSelectorTest.java
index 23ba36fd5..467b42a31 100644
--- a/src/tests/junit/org/apache/tools/ant/types/selectors/SizeSelectorTest.java
+++ b/src/tests/junit/org/apache/tools/ant/types/selectors/SizeSelectorTest.java
@@ -19,6 +19,7 @@
package org.apache.tools.ant.types.selectors;
import java.util.Locale;
+
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.types.Parameter;
import org.junit.Rule;
diff --git a/src/tests/junit/org/apache/tools/ant/util/DeweyDecimalTest.java b/src/tests/junit/org/apache/tools/ant/util/DeweyDecimalTest.java
index ad1f8e0fc..e8e8cbd5c 100644
--- a/src/tests/junit/org/apache/tools/ant/util/DeweyDecimalTest.java
+++ b/src/tests/junit/org/apache/tools/ant/util/DeweyDecimalTest.java
@@ -26,7 +26,8 @@ import org.junit.Test;
public class DeweyDecimalTest {
- @Test public void parse() {
+ @Test
+ public void parse() {
assertEquals("1.2.3", new DeweyDecimal("1.2.3").toString());
}
diff --git a/src/tests/junit/org/apache/tools/ant/util/LayoutPreservingPropertiesTest.java b/src/tests/junit/org/apache/tools/ant/util/LayoutPreservingPropertiesTest.java
index 48c52b3f9..4309098f8 100644
--- a/src/tests/junit/org/apache/tools/ant/util/LayoutPreservingPropertiesTest.java
+++ b/src/tests/junit/org/apache/tools/ant/util/LayoutPreservingPropertiesTest.java
@@ -20,8 +20,8 @@ package org.apache.tools.ant.util;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
-import java.io.InputStreamReader;
import java.io.IOException;
+import java.io.InputStreamReader;
import java.util.Properties;
import org.junit.Test;
diff --git a/src/tests/junit/org/apache/tools/ant/util/LineOrientedOutputStreamTest.java b/src/tests/junit/org/apache/tools/ant/util/LineOrientedOutputStreamTest.java
index d4b417df9..68a81648a 100644
--- a/src/tests/junit/org/apache/tools/ant/util/LineOrientedOutputStreamTest.java
+++ b/src/tests/junit/org/apache/tools/ant/util/LineOrientedOutputStreamTest.java
@@ -135,6 +135,7 @@ public class LineOrientedOutputStreamTest {
private class DummyStream extends LineOrientedOutputStream {
private boolean invoked;
+
protected void processLine(String line) {
assertFalse("Only one line", invoked);
assertEquals(LINE, line);
@@ -144,6 +145,7 @@ public class LineOrientedOutputStreamTest {
private void assertInvoked() {
assertTrue("At least one line", invoked);
}
+
private void assertNotInvoked() {
assertTrue("No output", !invoked);
}
diff --git a/src/tests/junit/org/apache/tools/ant/util/regexp/JakartaOroMatcherTest.java b/src/tests/junit/org/apache/tools/ant/util/regexp/JakartaOroMatcherTest.java
index d1405f4ad..c05ea2244 100644
--- a/src/tests/junit/org/apache/tools/ant/util/regexp/JakartaOroMatcherTest.java
+++ b/src/tests/junit/org/apache/tools/ant/util/regexp/JakartaOroMatcherTest.java
@@ -28,8 +28,4 @@ public class JakartaOroMatcherTest extends RegexpMatcherTest {
return new JakartaOroMatcher();
}
- public JakartaOroMatcherTest(String name) {
- super(name);
- }
-
}
diff --git a/src/tests/junit/org/apache/tools/ant/util/regexp/JakartaOroRegexpTest.java b/src/tests/junit/org/apache/tools/ant/util/regexp/JakartaOroRegexpTest.java
index e869c62e1..ae82f7553 100644
--- a/src/tests/junit/org/apache/tools/ant/util/regexp/JakartaOroRegexpTest.java
+++ b/src/tests/junit/org/apache/tools/ant/util/regexp/JakartaOroRegexpTest.java
@@ -28,8 +28,4 @@ public class JakartaOroRegexpTest extends RegexpTest {
return new JakartaOroRegexp();
}
- public JakartaOroRegexpTest(String name) {
- super(name);
- }
-
}
diff --git a/src/tests/junit/org/apache/tools/ant/util/regexp/JakartaRegexpMatcherTest.java b/src/tests/junit/org/apache/tools/ant/util/regexp/JakartaRegexpMatcherTest.java
index b93beb3a7..ce42c8cbf 100644
--- a/src/tests/junit/org/apache/tools/ant/util/regexp/JakartaRegexpMatcherTest.java
+++ b/src/tests/junit/org/apache/tools/ant/util/regexp/JakartaRegexpMatcherTest.java
@@ -20,7 +20,9 @@ package org.apache.tools.ant.util.regexp;
import java.io.IOException;
-import junit.framework.AssertionFailedError;
+import org.junit.Test;
+
+import static org.junit.Assert.fail;
/**
* Tests for the jakarta-regexp implementation of the RegexpMatcher interface.
@@ -32,30 +34,27 @@ public class JakartaRegexpMatcherTest extends RegexpMatcherTest {
return new JakartaRegexpMatcher();
}
- public JakartaRegexpMatcherTest(String name) {
- super(name);
- }
-
+ @Test
public void testWindowsLineSeparator2() throws IOException {
try {
super.testWindowsLineSeparator2();
fail("Should trigger when this bug is fixed. {@since 1.2}");
- } catch (AssertionFailedError e) {
+ } catch (AssertionError e) {
}
}
/**
* Fails for the same reason as "default" mode in doEndTest2.
*/
+ @Test
public void testUnixLineSeparator() throws IOException {
try {
super.testUnixLineSeparator();
fail("Should trigger once this bug is fixed. {@since 1.2}");
- } catch (AssertionFailedError e) {
+ } catch (AssertionError e) {
}
}
-
/**
* Fails for "default" mode.
*/
diff --git a/src/tests/junit/org/apache/tools/ant/util/regexp/JakartaRegexpRegexpTest.java b/src/tests/junit/org/apache/tools/ant/util/regexp/JakartaRegexpRegexpTest.java
index 8edc13c87..4937ff4e5 100644
--- a/src/tests/junit/org/apache/tools/ant/util/regexp/JakartaRegexpRegexpTest.java
+++ b/src/tests/junit/org/apache/tools/ant/util/regexp/JakartaRegexpRegexpTest.java
@@ -20,7 +20,9 @@ package org.apache.tools.ant.util.regexp;
import java.io.IOException;
-import junit.framework.AssertionFailedError;
+import org.junit.Test;
+
+import static org.junit.Assert.fail;
/**
* Tests for the jakarta-regexp implementation of the Regexp interface.
@@ -32,26 +34,24 @@ public class JakartaRegexpRegexpTest extends RegexpTest {
return new JakartaRegexpRegexp();
}
- public JakartaRegexpRegexpTest(String name) {
- super(name);
- }
-
+ @Test
public void testWindowsLineSeparator2() throws IOException {
try {
super.testWindowsLineSeparator2();
fail("Should trigger when this bug is fixed. {@since 1.2}");
- } catch (AssertionFailedError e) {
+ } catch (AssertionError e) {
}
}
/**
* Fails for the same reason as "default" mode in doEndTest2.
*/
+ @Test
public void testUnixLineSeparator() throws IOException {
try {
super.testUnixLineSeparator();
fail("Should trigger once this bug is fixed. {@since 1.2}");
- } catch (AssertionFailedError e) {
+ } catch (AssertionError e) {
}
}
diff --git a/src/tests/junit/org/apache/tools/ant/util/regexp/Jdk14RegexpMatcherTest.java b/src/tests/junit/org/apache/tools/ant/util/regexp/Jdk14RegexpMatcherTest.java
index 40f6dcaf5..5a5f1d2a6 100644
--- a/src/tests/junit/org/apache/tools/ant/util/regexp/Jdk14RegexpMatcherTest.java
+++ b/src/tests/junit/org/apache/tools/ant/util/regexp/Jdk14RegexpMatcherTest.java
@@ -20,7 +20,9 @@ package org.apache.tools.ant.util.regexp;
import java.io.IOException;
-import junit.framework.AssertionFailedError;
+import org.junit.Test;
+
+import static org.junit.Assert.fail;
/**
* Tests for the JDK 1.4 implementation of the RegexpMatcher interface.
@@ -32,39 +34,39 @@ public class Jdk14RegexpMatcherTest extends RegexpMatcherTest {
return new Jdk14RegexpMatcher();
}
- public Jdk14RegexpMatcherTest(String name) {
- super(name);
- }
-
+ @Test
public void testParagraphCharacter() throws IOException {
try {
super.testParagraphCharacter();
fail("Should trigger once fixed. {@since JDK 1.4RC1}");
- } catch (AssertionFailedError e) {
+ } catch (AssertionError e) {
}
}
+ @Test
public void testLineSeparatorCharacter() throws IOException {
try {
super.testLineSeparatorCharacter();
fail("Should trigger once fixed. {@since JDK 1.4RC1}");
- } catch (AssertionFailedError e) {
+ } catch (AssertionError e) {
}
}
+ @Test
public void testStandaloneCR() throws IOException {
try {
super.testStandaloneCR();
fail("Should trigger once fixed. {@since JDK 1.4RC1}");
- } catch (AssertionFailedError e) {
+ } catch (AssertionError e) {
}
}
+ @Test
public void testWindowsLineSeparator() throws IOException {
try {
super.testWindowsLineSeparator();
fail("Should trigger once fixed. {@since JDK 1.4RC1}");
- } catch (AssertionFailedError e) {
+ } catch (AssertionError e) {
}
}
}
diff --git a/src/tests/junit/org/apache/tools/ant/util/regexp/Jdk14RegexpRegexpTest.java b/src/tests/junit/org/apache/tools/ant/util/regexp/Jdk14RegexpRegexpTest.java
index 5f5342ea8..67b69aa3a 100644
--- a/src/tests/junit/org/apache/tools/ant/util/regexp/Jdk14RegexpRegexpTest.java
+++ b/src/tests/junit/org/apache/tools/ant/util/regexp/Jdk14RegexpRegexpTest.java
@@ -20,7 +20,9 @@ package org.apache.tools.ant.util.regexp;
import java.io.IOException;
-import junit.framework.AssertionFailedError;
+import org.junit.Test;
+
+import static org.junit.Assert.fail;
/**
* Tests for the JDK 1.4 implementation of the Regexp interface.
@@ -32,39 +34,39 @@ public class Jdk14RegexpRegexpTest extends RegexpTest {
return new Jdk14RegexpRegexp();
}
- public Jdk14RegexpRegexpTest(String name) {
- super(name);
- }
-
+ @Test
public void testParagraphCharacter() throws IOException {
try {
super.testParagraphCharacter();
fail("Should trigger once fixed. {@since JDK 1.4RC1}");
- } catch (AssertionFailedError e) {
+ } catch (AssertionError e) {
}
}
+ @Test
public void testLineSeparatorCharacter() throws IOException {
try {
super.testLineSeparatorCharacter();
fail("Should trigger once fixed. {@since JDK 1.4RC1}");
- } catch (AssertionFailedError e) {
+ } catch (AssertionError e) {
}
}
+ @Test
public void testStandaloneCR() throws IOException {
try {
super.testStandaloneCR();
fail("Should trigger once fixed. {@since JDK 1.4RC1}");
- } catch (AssertionFailedError e) {
+ } catch (AssertionError e) {
}
}
+ @Test
public void testWindowsLineSeparator() throws IOException {
try {
super.testWindowsLineSeparator();
fail("Should trigger once fixed. {@since JDK 1.4RC1}");
- } catch (AssertionFailedError e) {
+ } catch (AssertionError e) {
}
}
diff --git a/src/tests/junit/org/apache/tools/ant/util/regexp/RegexpMatcherTest.java b/src/tests/junit/org/apache/tools/ant/util/regexp/RegexpMatcherTest.java
index 3129e68e3..77dbdac50 100644
--- a/src/tests/junit/org/apache/tools/ant/util/regexp/RegexpMatcherTest.java
+++ b/src/tests/junit/org/apache/tools/ant/util/regexp/RegexpMatcherTest.java
@@ -18,16 +18,21 @@
package org.apache.tools.ant.util.regexp;
+import org.junit.Before;
+import org.junit.Test;
+
import java.io.IOException;
import java.util.Vector;
-import junit.framework.TestCase;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
/**
* Tests for all implementations of the RegexpMatcher interface.
*
*/
-public abstract class RegexpMatcherTest extends TestCase {
+public abstract class RegexpMatcherTest {
public final static String UNIX_LINE = "\n";
@@ -39,14 +44,12 @@ public abstract class RegexpMatcherTest extends TestCase {
return reg;
}
- public RegexpMatcherTest(String name) {
- super(name);
- }
-
+ @Before
public void setUp() {
reg = getImplementation();
}
+ @Test
public void testMatches() {
reg.setPattern("aaaa");
assertTrue("aaaa should match itself", reg.matches("aaaa"));
@@ -73,6 +76,7 @@ public abstract class RegexpMatcherTest extends TestCase {
assertTrue("([0-9]+)=\\1 shouldn\'t match 1=2", !reg.matches("1=2"));
}
+ @Test
public void testGroups() {
reg.setPattern("aaaa");
Vector v = reg.getGroups("xaaaa");
@@ -96,6 +100,7 @@ public abstract class RegexpMatcherTest extends TestCase {
assertEquals("b", (String) v.elementAt(2));
}
+ @Test
public void testBugzillaReport14619() {
reg.setPattern("^(.*)/src/((.*/)*)([a-zA-Z0-9_\\.]+)\\.java$");
Vector v = reg.getGroups("de/tom/src/Google.java");
@@ -106,6 +111,7 @@ public abstract class RegexpMatcherTest extends TestCase {
assertEquals("Google", v.elementAt(4));
}
+ @Test
public void testCaseInsensitiveMatch() {
reg.setPattern("aaaa");
assertTrue("aaaa doesn't match AAaa", !reg.matches("AAaa"));
@@ -113,46 +119,52 @@ public abstract class RegexpMatcherTest extends TestCase {
reg.matches("AAaa", RegexpMatcher.MATCH_CASE_INSENSITIVE));
}
+ // make sure there are no issues concerning line separator interpretation
+ // a line separator for regex (perl) is always a unix line (ie \n)
-// make sure there are no issues concerning line separator interpretation
-// a line separator for regex (perl) is always a unix line (ie \n)
-
+ @Test
public void testParagraphCharacter() throws IOException {
reg.setPattern("end of text$");
assertTrue("paragraph character", !reg.matches("end of text\u2029"));
}
+ @Test
public void testLineSeparatorCharacter() throws IOException {
reg.setPattern("end of text$");
assertTrue("line-separator character", !reg.matches("end of text\u2028"));
}
+ @Test
public void testNextLineCharacter() throws IOException {
reg.setPattern("end of text$");
assertTrue("next-line character", !reg.matches("end of text\u0085"));
}
+ @Test
public void testStandaloneCR() throws IOException {
reg.setPattern("end of text$");
assertTrue("standalone CR", !reg.matches("end of text\r"));
}
+ @Test
public void testWindowsLineSeparator() throws IOException {
reg.setPattern("end of text$");
assertTrue("Windows line separator", !reg.matches("end of text\r\n"));
}
+ @Test
public void testWindowsLineSeparator2() throws IOException {
reg.setPattern("end of text\r$");
assertTrue("Windows line separator", reg.matches("end of text\r\n"));
}
+ @Test
public void testUnixLineSeparator() throws IOException {
reg.setPattern("end of text$");
assertTrue("Unix line separator", reg.matches("end of text\n"));
}
-
+ @Test
public void testMultiVersusSingleLine() throws IOException {
StringBuilder buf = new StringBuilder();
buf.append("Line1").append(UNIX_LINE);
diff --git a/src/tests/junit/org/apache/tools/ant/util/regexp/RegexpTest.java b/src/tests/junit/org/apache/tools/ant/util/regexp/RegexpTest.java
index 5cfe8c976..08a8416f9 100644
--- a/src/tests/junit/org/apache/tools/ant/util/regexp/RegexpTest.java
+++ b/src/tests/junit/org/apache/tools/ant/util/regexp/RegexpTest.java
@@ -18,6 +18,11 @@
package org.apache.tools.ant.util.regexp;
+import org.junit.Test;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+
/**
* Tests for all implementations of the Regexp interface.
*
@@ -27,16 +32,13 @@ public abstract class RegexpTest extends RegexpMatcherTest {
private static final String test = "abcdefg-abcdefg";
private static final String pattern = "ab([^d]*)d([^f]*)f";
- public RegexpTest(String name) {
- super(name);
- }
-
public final RegexpMatcher getImplementation() {
return getRegexpImplementation();
}
public abstract Regexp getRegexpImplementation();
+ @Test
public void testSubstitution() {
Regexp reg = (Regexp) getReg();
reg.setPattern(pattern);
@@ -45,6 +47,7 @@ public abstract class RegexpTest extends RegexpMatcherTest {
Regexp.MATCH_DEFAULT));
}
+ @Test
public void testReplaceFirstSubstitution() {
Regexp reg = (Regexp) getReg();
reg.setPattern(pattern);
@@ -53,6 +56,7 @@ public abstract class RegexpTest extends RegexpMatcherTest {
Regexp.REPLACE_FIRST));
}
+ @Test
public void testReplaceAllSubstitution() {
Regexp reg = (Regexp) getReg();
reg.setPattern(pattern);
diff --git a/src/tests/junit/org/apache/tools/mail/MailMessageTest.java b/src/tests/junit/org/apache/tools/mail/MailMessageTest.java
index 9a1aa8c77..cabeef51b 100644
--- a/src/tests/junit/org/apache/tools/mail/MailMessageTest.java
+++ b/src/tests/junit/org/apache/tools/mail/MailMessageTest.java
@@ -175,7 +175,6 @@ public class MailMessageTest {
assertFalse(testMailClient.getFailMessage(), testMailClient.isFailed());
}
-
/**
* Test a MailMessage with no to or bcc lines
* @throws InterruptedException if something goes wrong
@@ -227,7 +226,6 @@ public class MailMessageTest {
assertFalse(testMailClient.getFailMessage(), testMailClient.isFailed());
}
-
/**
* Test a MailMessage with no to or cc lines
* @throws InterruptedException if something goes wrong
@@ -278,7 +276,6 @@ public class MailMessageTest {
assertFalse(testMailClient.getFailMessage(), testMailClient.isFailed());
}
-
/**
* Test a MailMessage with no subject line
* Subject is an optional field (RFC 822 s4.1)
@@ -329,7 +326,6 @@ public class MailMessageTest {
assertFalse(testMailClient.getFailMessage(), testMailClient.isFailed());
}
-
/**
* Test a MailMessage with empty body message
* @throws InterruptedException if something goes wrong
@@ -379,7 +375,6 @@ public class MailMessageTest {
assertFalse(testMailClient.getFailMessage(), testMailClient.isFailed());
}
-
/**
* Test a MailMessage with US-ASCII character set
* The next four testcase can be kinda hard to debug as Ant will often
@@ -504,7 +499,6 @@ public class MailMessageTest {
} else {
// sb.append(response + "\r\n");
}
-
} // while
} catch (IOException ioe) {
throw new BuildException(ioe);
diff --git a/src/tests/junit/org/apache/tools/zip/ExtraFieldUtilsTest.java b/src/tests/junit/org/apache/tools/zip/ExtraFieldUtilsTest.java
index 15b1b6db6..841a2fc81 100644
--- a/src/tests/junit/org/apache/tools/zip/ExtraFieldUtilsTest.java
+++ b/src/tests/junit/org/apache/tools/zip/ExtraFieldUtilsTest.java
@@ -26,8 +26,7 @@ import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
/**
- * JUnit 3 testcases for org.apache.tools.zip.ExtraFieldUtils.
- *
+ * JUnit 4 testcases for org.apache.tools.zip.ExtraFieldUtils.
*/
public class ExtraFieldUtilsTest implements UnixStat {
diff --git a/src/tests/junit/org/apache/tools/zip/ZipEntryTest.java b/src/tests/junit/org/apache/tools/zip/ZipEntryTest.java
index 96bbd45b2..1fd9fd101 100644
--- a/src/tests/junit/org/apache/tools/zip/ZipEntryTest.java
+++ b/src/tests/junit/org/apache/tools/zip/ZipEntryTest.java
@@ -26,8 +26,7 @@ import static org.junit.Assert.assertSame;
import static org.junit.Assert.fail;
/**
- * JUnit 3 testcases for org.apache.tools.zip.ZipEntry.
- *
+ * JUnit 4 testcases for org.apache.tools.zip.ZipEntry.
*/
public class ZipEntryTest {
diff --git a/src/tests/junit/org/apache/tools/zip/ZipShortTest.java b/src/tests/junit/org/apache/tools/zip/ZipShortTest.java
index a6aa3e78b..0e3cf2868 100644
--- a/src/tests/junit/org/apache/tools/zip/ZipShortTest.java
+++ b/src/tests/junit/org/apache/tools/zip/ZipShortTest.java
@@ -25,8 +25,7 @@ import static org.junit.Assert.assertNotSame;
import static org.junit.Assert.assertTrue;
/**
- * JUnit 3 testcases for org.apache.tools.zip.ZipShort.
- *
+ * JUnit 4 testcases for org.apache.tools.zip.ZipShort.
*/
public class ZipShortTest {