You are viewing a plain text version of this content. The canonical link for it is here.
Posted to easyant-commits@incubator.apache.org by jl...@apache.org on 2012/08/04 21:18:35 UTC

svn commit: r1369452 - in /incubator/easyant/plugins/trunk/meta-build-autoactivator/src/test: ./ antunit/ antunit/meta-build-autoactivator-test.xml antunit/submodule/ antunit/submodule/module.ivy

Author: jlboudart
Date: Sat Aug  4 21:18:35 2012
New Revision: 1369452

URL: http://svn.apache.org/viewvc?rev=1369452&view=rev
Log:
Add meta-build-autoactivator missing test cases

Added:
    incubator/easyant/plugins/trunk/meta-build-autoactivator/src/test/
    incubator/easyant/plugins/trunk/meta-build-autoactivator/src/test/antunit/
    incubator/easyant/plugins/trunk/meta-build-autoactivator/src/test/antunit/meta-build-autoactivator-test.xml
    incubator/easyant/plugins/trunk/meta-build-autoactivator/src/test/antunit/submodule/
    incubator/easyant/plugins/trunk/meta-build-autoactivator/src/test/antunit/submodule/module.ivy

Added: incubator/easyant/plugins/trunk/meta-build-autoactivator/src/test/antunit/meta-build-autoactivator-test.xml
URL: http://svn.apache.org/viewvc/incubator/easyant/plugins/trunk/meta-build-autoactivator/src/test/antunit/meta-build-autoactivator-test.xml?rev=1369452&view=auto
==============================================================================
--- incubator/easyant/plugins/trunk/meta-build-autoactivator/src/test/antunit/meta-build-autoactivator-test.xml (added)
+++ incubator/easyant/plugins/trunk/meta-build-autoactivator/src/test/antunit/meta-build-autoactivator-test.xml Sat Aug  4 21:18:35 2012
@@ -0,0 +1,48 @@
+<!--
+   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.
+-->
+<project name="org.apache.easyant.plugins;meta-build-autoactivator-test" 
+    xmlns:au="antlib:org.apache.ant.antunit" 
+    xmlns:ivy="antlib:org.apache.ivy.ant"
+    xmlns:ea="antlib:org.apache.easyant">
+    
+    <!-- Import your plugin --> 
+    <property name="target" value="target/test-antunit"/>
+    <!-- configure easyant in current project -->
+    <ea:configure-easyant-ivy-instance />
+    <property name="skip.org.apache.easyant.buildtypes#meta-build;0.2" value="true"/>
+    <!-- import our local plugin -->
+    <ea:import-test-module moduleIvy="../../../module.ivy" sourceDirectory="../../main/resources"/>
+
+    <!-- Defines a setUp / tearDown (before each test) that cleans the environnement --> 
+    <target name="clean" description="remove stale build artifacts before / after each test">
+        <delete dir="${basedir}" includeemptydirs="true">
+            <include name="**/target/**"/>
+            <include name="**/lib/**"/>
+        </delete>
+    </target>
+    
+    <target name="setUp" depends="clean">
+    </target>
+    <target name="tearDown" depends="clean"/>
+    
+    <target name="test-meta-build-autoactivator">
+        <au:assertPropertyEquals name="metabuild.root" value="."/>
+        <au:assertPropertyEquals name="metabuild.excludes" value="src/ test/ lib/ WEB-INF/ classes/ bin/ module.ivy"/>
+        <au:assertPropertyEquals name="metabuild.mode" value="all"/>
+    </target>
+
+</project>

Added: incubator/easyant/plugins/trunk/meta-build-autoactivator/src/test/antunit/submodule/module.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/plugins/trunk/meta-build-autoactivator/src/test/antunit/submodule/module.ivy?rev=1369452&view=auto
==============================================================================
--- incubator/easyant/plugins/trunk/meta-build-autoactivator/src/test/antunit/submodule/module.ivy (added)
+++ incubator/easyant/plugins/trunk/meta-build-autoactivator/src/test/antunit/submodule/module.ivy Sat Aug  4 21:18:35 2012
@@ -0,0 +1,21 @@
+<?xml version="1.0"?>
+<!--
+   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.
+-->
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org"> 
+    <info organisation="org.apache.easyant" module="standard-java-app" revision="0.1" status="integration"/>
+
+</ivy-module>