| @@ -1430,7 +1430,7 @@ public class Project implements ResourceFactory { | |||||
| "Target '" + curtarget.getName() | "Target '" + curtarget.getName() | ||||
| + "' failed with message '" | + "' failed with message '" | ||||
| + thrownException.getMessage() + "'.", MSG_ERR); | + thrownException.getMessage() + "'.", MSG_ERR); | ||||
| thrownException.printStackTrace(System.err); | |||||
| thrownException.printStackTrace(System.err); //NOSONAR | |||||
| if (buildException == null) { | if (buildException == null) { | ||||
| buildException = | buildException = | ||||
| new BuildException(thrownException); | new BuildException(thrownException); | ||||
| @@ -44,7 +44,7 @@ public interface XSLTLiaison { | |||||
| * @throws Exception thrown if any problems happens. | * @throws Exception thrown if any problems happens. | ||||
| * @since Ant 1.4 | * @since Ant 1.4 | ||||
| */ | */ | ||||
| void setStylesheet(File stylesheet) throws Exception; | |||||
| void setStylesheet(File stylesheet) throws Exception; //NOSONAR | |||||
| /** | /** | ||||
| * Add a parameter to be set during the XSL transformation. | * Add a parameter to be set during the XSL transformation. | ||||
| @@ -54,7 +54,7 @@ public interface XSLTLiaison { | |||||
| * @see XSLTLiaison4#addParam(java.lang.String, java.lang.Object) | * @see XSLTLiaison4#addParam(java.lang.String, java.lang.Object) | ||||
| * @since Ant 1.3 | * @since Ant 1.3 | ||||
| */ | */ | ||||
| void addParam(String name, String expression) throws Exception; | |||||
| void addParam(String name, String expression) throws Exception; //NOSONAR | |||||
| /** | /** | ||||
| * Perform the transformation of a file into another. | * Perform the transformation of a file into another. | ||||
| @@ -64,6 +64,6 @@ public interface XSLTLiaison { | |||||
| * @see #setStylesheet(File) | * @see #setStylesheet(File) | ||||
| * @since Ant 1.4 | * @since Ant 1.4 | ||||
| */ | */ | ||||
| void transform(File infile, File outfile) throws Exception; | |||||
| void transform(File infile, File outfile) throws Exception; //NOSONAR | |||||
| } //-- XSLTLiaison | } //-- XSLTLiaison | ||||
| @@ -1380,7 +1380,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger { | |||||
| * @since Ant 1.7 | * @since Ant 1.7 | ||||
| */ | */ | ||||
| private void setLiaisonDynamicFileParameters( | private void setLiaisonDynamicFileParameters( | ||||
| final XSLTLiaison liaison, final File inFile) throws Exception { | |||||
| final XSLTLiaison liaison, final File inFile) throws Exception { //NOSONAR | |||||
| if (fileNameParameter != null) { | if (fileNameParameter != null) { | ||||
| liaison.addParam(fileNameParameter, inFile.getName()); | liaison.addParam(fileNameParameter, inFile.getName()); | ||||
| } | } | ||||
| @@ -143,7 +143,7 @@ public class TraXLiaison implements XSLTLiaison4, ErrorListener, XSLTLoggerAware | |||||
| * Constructor for TraXLiaison. | * Constructor for TraXLiaison. | ||||
| * @throws Exception never | * @throws Exception never | ||||
| */ | */ | ||||
| public TraXLiaison() throws Exception { | |||||
| public TraXLiaison() throws Exception { //NOSONAR | |||||
| } | } | ||||
| /** | /** | ||||
| @@ -144,7 +144,7 @@ public class jlink { | |||||
| * a rational manner to outfile. | * a rational manner to outfile. | ||||
| * @throws Exception on error. | * @throws Exception on error. | ||||
| */ | */ | ||||
| public void link() throws Exception { | |||||
| public void link() throws Exception { //NOSONAR | |||||
| ZipOutputStream output = new ZipOutputStream(new FileOutputStream(outfile)); | ZipOutputStream output = new ZipOutputStream(new FileOutputStream(outfile)); | ||||
| if (compression) { | if (compression) { | ||||
| @@ -702,10 +702,10 @@ public class JUnitTask extends Task { | |||||
| /** | /** | ||||
| * Creates a new JUnitRunner and enables fork of a new Java VM. | * Creates a new JUnitRunner and enables fork of a new Java VM. | ||||
| * | * | ||||
| * @throws Exception under ??? circumstances | |||||
| * @throws Exception never | |||||
| * @since Ant 1.2 | * @since Ant 1.2 | ||||
| */ | */ | ||||
| public JUnitTask() throws Exception { | |||||
| public JUnitTask() throws Exception { //NOSONAR | |||||
| } | } | ||||
| /** | /** | ||||
| @@ -1603,7 +1603,7 @@ public class FileUtils { | |||||
| * | * | ||||
| * @since Ant 1.7 | * @since Ant 1.7 | ||||
| */ | */ | ||||
| public static String getRelativePath(File fromFile, File toFile) throws Exception { | |||||
| public static String getRelativePath(File fromFile, File toFile) throws Exception { //NOSONAR | |||||
| String fromPath = fromFile.getCanonicalPath(); | String fromPath = fromFile.getCanonicalPath(); | ||||
| String toPath = toFile.getCanonicalPath(); | String toPath = toFile.getCanonicalPath(); | ||||
| @@ -195,7 +195,7 @@ public final class StringUtils { | |||||
| * @throws Exception if there is a problem. | * @throws Exception if there is a problem. | ||||
| * @since Ant 1.7 | * @since Ant 1.7 | ||||
| */ | */ | ||||
| public static long parseHumanSizes(String humanSize) throws Exception { | |||||
| public static long parseHumanSizes(String humanSize) throws Exception { //NOSONAR | |||||
| long factor = 1L; | long factor = 1L; | ||||
| char s = humanSize.charAt(0); | char s = humanSize.charAt(0); | ||||
| switch (s) { | switch (s) { | ||||