Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 32910 invoked from network); 6 Jun 2004 17:32:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 6 Jun 2004 17:32:19 -0000 Received: (qmail 24705 invoked by uid 500); 6 Jun 2004 17:31:59 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 24432 invoked by uid 500); 6 Jun 2004 17:31:53 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 24349 invoked by uid 500); 6 Jun 2004 17:31:52 -0000 Received: (qmail 24339 invoked by uid 99); 6 Jun 2004 17:31:52 -0000 Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.27.1) with SMTP; Sun, 06 Jun 2004 10:31:52 -0700 Received: (qmail 32734 invoked by uid 1403); 6 Jun 2004 17:31:51 -0000 Date: 6 Jun 2004 17:31:51 -0000 Message-ID: <20040606173151.32733.qmail@minotaur.apache.org> From: umagesh@apache.org To: ant-cvs@apache.org Subject: cvs commit: ant/src/testcases/org/apache/tools/ant DispatchTaskTest.java PickOneTask.java X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N umagesh 2004/06/06 10:31:50 Added: src/testcases/org/apache/tools/ant DispatchTaskTest.java PickOneTask.java Log: Tasks extending from abstract DispatchTask may have multiple action methods that will get invoked depending upon the action attribute of the task. Revision Changes Path 1.1 ant/src/testcases/org/apache/tools/ant/DispatchTaskTest.java Index: DispatchTaskTest.java =================================================================== /* * Copyright 2004 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.tools.ant; import org.apache.tools.ant.BuildFileTest; public class DispatchTaskTest extends BuildFileTest { public DispatchTaskTest(String name) { super(name); } public void setUp() { configureProject("src/etc/testcases/core/dispatch/dispatch.xml"); } public void testDisp() { expectBuildException("disp", "list"); } } 1.1 ant/src/testcases/org/apache/tools/ant/PickOneTask.java Index: PickOneTask.java =================================================================== /* * Copyright 2004 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.tools.ant; import org.apache.tools.ant.dispatch.DispatchTask; public class PickOneTask extends DispatchTask { public void list() { throw new BuildException("list"); } public void show() { throw new BuildException("show"); } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org