From 45b92614dbfcbee43b46223ff31da1e09d1d2433 Mon Sep 17 00:00:00 2001 From: Peter Donald Date: Sun, 16 Dec 2001 05:52:32 +0000 Subject: [PATCH] Description is a container concern - not a tasks concern. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270211 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/tools/ant/types/Description.java | 41 ------------------- .../apache/tools/ant/types/Description.java | 41 ------------------- 2 files changed, 82 deletions(-) delete mode 100644 proposal/myrmidon/src/main/org/apache/tools/ant/types/Description.java delete mode 100644 proposal/myrmidon/src/todo/org/apache/tools/ant/types/Description.java diff --git a/proposal/myrmidon/src/main/org/apache/tools/ant/types/Description.java b/proposal/myrmidon/src/main/org/apache/tools/ant/types/Description.java deleted file mode 100644 index ab6727dab..000000000 --- a/proposal/myrmidon/src/main/org/apache/tools/ant/types/Description.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) The Apache Software Foundation. All rights reserved. - * - * This software is published under the terms of the Apache Software License - * version 1.1, a copy of which has been included with this distribution in - * the LICENSE file. - */ -package org.apache.tools.ant.types; - -/** - * Description is used to provide a project-wide description element (that is, a - * description that applies to a buildfile as a whole). If present, the - * <description> element is printed out before the target descriptions. - * Description has no attributes, only text. There can only be one project - * description per project. A second description element will overwrite the - * first. - * - * @author Craeg Strong - * @version $Revision$ $Date$ - */ -public class Description extends DataType -{ - - /** - * Adds descriptive text to the project. - * - * @param text The feature to be added to the Text attribute - */ - public void addText( String text ) - { - String currentDescription = project.getDescription(); - if( currentDescription == null ) - { - project.setDescription( text ); - } - else - { - project.setDescription( currentDescription + text ); - } - } -} diff --git a/proposal/myrmidon/src/todo/org/apache/tools/ant/types/Description.java b/proposal/myrmidon/src/todo/org/apache/tools/ant/types/Description.java deleted file mode 100644 index ab6727dab..000000000 --- a/proposal/myrmidon/src/todo/org/apache/tools/ant/types/Description.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) The Apache Software Foundation. All rights reserved. - * - * This software is published under the terms of the Apache Software License - * version 1.1, a copy of which has been included with this distribution in - * the LICENSE file. - */ -package org.apache.tools.ant.types; - -/** - * Description is used to provide a project-wide description element (that is, a - * description that applies to a buildfile as a whole). If present, the - * <description> element is printed out before the target descriptions. - * Description has no attributes, only text. There can only be one project - * description per project. A second description element will overwrite the - * first. - * - * @author Craeg Strong - * @version $Revision$ $Date$ - */ -public class Description extends DataType -{ - - /** - * Adds descriptive text to the project. - * - * @param text The feature to be added to the Text attribute - */ - public void addText( String text ) - { - String currentDescription = project.getDescription(); - if( currentDescription == null ) - { - project.setDescription( text ); - } - else - { - project.setDescription( currentDescription + text ); - } - } -}