diff options
Diffstat (limited to 'src/main/java/net/sf/antcontrib')
3 files changed, 48 insertions, 18 deletions
diff --git a/src/main/java/net/sf/antcontrib/cpptasks/CCTask.java b/src/main/java/net/sf/antcontrib/cpptasks/CCTask.java index 92ead13..5f15bf1 100644 --- a/src/main/java/net/sf/antcontrib/cpptasks/CCTask.java +++ b/src/main/java/net/sf/antcontrib/cpptasks/CCTask.java @@ -51,9 +51,8 @@ import org.apache.tools.ant.types.Environment; * Resource files. * </p> * - * * <p> - * Copyright (c) 2001-2006, The Ant-Contrib project. + * Copyright (c) 2001-2007, The Ant-Contrib project. * </p> * * <p> @@ -67,23 +66,54 @@ import org.apache.tools.ant.types.Environment; * </p> * * <p> - * THIS SOFTWARE IS PROVIDED 'AS-IS', See http://www.apache.org/licenses/LICENSE-2.0 for - * additional disclaimers. + * THIS SOFTWARE IS PROVIDED 'AS-IS', See + * http://www.apache.org/licenses/LICENSE-2.0 for additional disclaimers. * </p> * * To use: * <ol> - * <li>Place cpptasks.jar into Ant's classpath by placing in Ant's lib directory, - * adding to CLASSPATH environment variable or using the -lib command line option.</li> - * <li>Add type and task definitions in build file: - * <ul><li>Ant 1.6 or later: add xmlns:cpptasks="antlib:org.sf.net.antcontrib.cpptasks" to <project> element.</li> - * <li>Ant 1.5 or later: Add <taskdef resource="cpptasks.tasks"/> and <typedef - * resource="cpptasks.types"/> to body of <project> element.</li></ul></li> - * <li>Add <cc/>, <compiler/> and <linker/> elements to - * project.</li> - * <li>Set path and environment variables to be able to run compiler from - * command line.</li> - * <li>Build project.</li> + * <li> + * Place cpptasks.jar into Ant's classpath by placing it in Ant's lib + * directory, adding it to the CLASSPATH environment variable or by using the + * -lib command line option. + * </li> + * <li> + * Add type and task definitions to the build file: + * <ul> + * <li> + * Ant 1.6 or later: + * <ul> + * <li>Add xmlns:cpptasks="antlib:net.sf.antcontrib.cpptasks" to + * <project> element. + * </li> + * <li> + * Add <cpptasks:cc/>, <cpptasks:compiler/> and + * <cpptasks:linker/> elements to the project. + * </li> + * </ul> + * </li> + * <li> + * Ant 1.5 or later: + * <ul> + * <li>Add <taskdef resource="cpptasks.tasks"/> and + * <typedef resource="cpptasks.types"/> to body of <project> + * element. + * </li> + * <li> + * Add <cc/>, <compiler/> and <linker/> elements to the + * project. + * </li> + * </ul> + * </li> + * </ul> + * </li> + * <li> + * Set the path and environment variables to be able to run compiler from + * command line. + * </li> + * <li> + * Build the project. + * </li> * </ol> * * @author Adam Murdoch @@ -1337,7 +1367,7 @@ public class CCTask extends Task { /** * Enumerated attribute with the values "none", "severe", "default", - * "production", "diagnostic", and "failtask". + * "production", "diagnostic", and "aserror". */ public void setWarnings(WarningLevelEnum level) { compilerDef.setWarnings(level); diff --git a/src/main/java/net/sf/antcontrib/cpptasks/CompilerDef.java b/src/main/java/net/sf/antcontrib/cpptasks/CompilerDef.java index 1bbdabf..aef1e32 100644 --- a/src/main/java/net/sf/antcontrib/cpptasks/CompilerDef.java +++ b/src/main/java/net/sf/antcontrib/cpptasks/CompilerDef.java @@ -483,7 +483,7 @@ public final class CompilerDef extends ProcessorDef { } /** * Enumerated attribute with the values "none", "severe", "default", - * "production", "diagnostic", and "failtask". + * "production", "diagnostic", and "aserror". */ public void setWarnings(WarningLevelEnum level) { warnings = level.getIndex(); diff --git a/src/main/java/net/sf/antcontrib/cpptasks/WarningLevelEnum.java b/src/main/java/net/sf/antcontrib/cpptasks/WarningLevelEnum.java index 6ba8489..6ba7438 100644 --- a/src/main/java/net/sf/antcontrib/cpptasks/WarningLevelEnum.java +++ b/src/main/java/net/sf/antcontrib/cpptasks/WarningLevelEnum.java @@ -19,7 +19,7 @@ import org.apache.tools.ant.types.EnumeratedAttribute; /** * Enumerated attribute with the values "none", "severe", "default", - * "production", "diagnostic", and "failtask". + * "production", "diagnostic", and "aserror". */ public final class WarningLevelEnum extends EnumeratedAttribute { /** |