From easyant-commits-return-454-apmail-incubator-easyant-commits-archive=incubator.apache.org@incubator.apache.org Tue Aug 7 19:22:32 2012 Return-Path: X-Original-To: apmail-incubator-easyant-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-easyant-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6C5AFD778 for ; Tue, 7 Aug 2012 19:22:32 +0000 (UTC) Received: (qmail 29106 invoked by uid 500); 7 Aug 2012 19:22:32 -0000 Delivered-To: apmail-incubator-easyant-commits-archive@incubator.apache.org Received: (qmail 29084 invoked by uid 500); 7 Aug 2012 19:22:32 -0000 Mailing-List: contact easyant-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: easyant-dev@incubator.apache.org Delivered-To: mailing list easyant-commits@incubator.apache.org Received: (qmail 29076 invoked by uid 99); 7 Aug 2012 19:22:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2012 19:22:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2012 19:22:30 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 4735D23888EA; Tue, 7 Aug 2012 19:21:47 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1370452 - in /incubator/easyant/plugins/trunk/compile-test-groovy/src/test: ./ antunit/ antunit/src/ antunit/src/integration-test/ antunit/src/integration-test/groovy/ antunit/src/integration-test/groovy/org/ antunit/src/integration-test/g... Date: Tue, 07 Aug 2012 19:21:47 -0000 To: easyant-commits@incubator.apache.org From: jlboudart@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120807192147.4735D23888EA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jlboudart Date: Tue Aug 7 19:21:46 2012 New Revision: 1370452 URL: http://svn.apache.org/viewvc?rev=1370452&view=rev Log: Add compile-test-groovy test case Added: incubator/easyant/plugins/trunk/compile-test-groovy/src/test/ incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/ incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/compile-test-groovy-test.xml incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/sample-module.ivy incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/src/ incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/src/integration-test/ incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/src/integration-test/groovy/ incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/src/integration-test/groovy/org/ incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/src/integration-test/groovy/org/apache/ incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/src/integration-test/groovy/org/apache/easyant/ incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/src/integration-test/groovy/org/apache/easyant/example/ incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/src/integration-test/groovy/org/apache/easyant/example/Example2.groovy incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/src/test/ incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/src/test/groovy/ incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/src/test/groovy/org/ incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/src/test/groovy/org/apache/ incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/src/test/groovy/org/apache/easyant/ incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/src/test/groovy/org/apache/easyant/example/ incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/src/test/groovy/org/apache/easyant/example/Example.groovy Added: incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/compile-test-groovy-test.xml URL: http://svn.apache.org/viewvc/incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/compile-test-groovy-test.xml?rev=1370452&view=auto ============================================================================== --- incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/compile-test-groovy-test.xml (added) +++ incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/compile-test-groovy-test.xml Tue Aug 7 19:21:46 2012 @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Added: incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/sample-module.ivy URL: http://svn.apache.org/viewvc/incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/sample-module.ivy?rev=1370452&view=auto ============================================================================== --- incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/sample-module.ivy (added) +++ incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/sample-module.ivy Tue Aug 7 19:21:46 2012 @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + Added: incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/src/integration-test/groovy/org/apache/easyant/example/Example2.groovy URL: http://svn.apache.org/viewvc/incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/src/integration-test/groovy/org/apache/easyant/example/Example2.groovy?rev=1370452&view=auto ============================================================================== --- incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/src/integration-test/groovy/org/apache/easyant/example/Example2.groovy (added) +++ incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/src/integration-test/groovy/org/apache/easyant/example/Example2.groovy Tue Aug 7 19:21:46 2012 @@ -0,0 +1,40 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You 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.easyant.example; + +import java.io.IOException; +import java.util.Properties; + +public class Example2 { + public static void main(String[] args) throws IOException { + System.out.println(new Example2().sayHello("EasyAnt")); + } + + /* + * @param who Who says hello + */ + public String sayHello(String who) throws IOException { + Properties props = new Properties(); + props.load(Example.class.getResourceAsStream("/main.properties")); + return props.getProperty("example") + " " + who + "!"; + } + public String CheckstyleShouldComplainAboutMethodName() throws IOException { + return "CheckstyleShouldComplainAboutMethodName !"; + } + +} Added: incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/src/test/groovy/org/apache/easyant/example/Example.groovy URL: http://svn.apache.org/viewvc/incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/src/test/groovy/org/apache/easyant/example/Example.groovy?rev=1370452&view=auto ============================================================================== --- incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/src/test/groovy/org/apache/easyant/example/Example.groovy (added) +++ incubator/easyant/plugins/trunk/compile-test-groovy/src/test/antunit/src/test/groovy/org/apache/easyant/example/Example.groovy Tue Aug 7 19:21:46 2012 @@ -0,0 +1,36 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You 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.easyant.example; + +import java.io.IOException; +import java.util.Properties; + +public class Example { + public static void main(String[] args) throws IOException { + System.out.println(new Example().sayHello("EasyAnt")); + } + + /* + * @param who Who says hello + */ + public String sayHello(String who) throws IOException { + Properties props = new Properties(); + props.load(Example.class.getResourceAsStream("/main.properties")); + return props.getProperty("example") + " " + who + "!"; + } +}