Fix missing dependency on ivy-provisioning:resolve in build-std-ant-plugin's buildtype

git-svn-id: https://svn.apache.org/repos/asf/ant/easyant/buildtypes/trunk@1554014 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/build-std-ant-plugin/module.ivy b/build-std-ant-plugin/module.ivy
index 3010f3f..f66416e 100644
--- a/build-std-ant-plugin/module.ivy
+++ b/build-std-ant-plugin/module.ivy
@@ -20,6 +20,7 @@
         <description>A standard build for true ant plugins, relying on standard phases, and providing compilation,
             execution and unit tests</description>
         <ea:build organisation="org.apache.easyant.buildtypes" module="build-std-ant-plugin" revision="0.1" />
+	<ea:property name="test.antunit.excludes.pattern" value="**/*simpleplugin-test.xml"/> 
     </info>
     <configurations>
         <conf name="default" description="runtime dependencies artifact can be used with this conf" />
@@ -32,4 +33,4 @@
         <artifact type="ant" />
         <artifact type="properties" />
     </publications>
-</ivy-module>
\ No newline at end of file
+</ivy-module>
diff --git a/build-std-ant-plugin/src/main/resources/build-std-ant-plugin.ant b/build-std-ant-plugin/src/main/resources/build-std-ant-plugin.ant
index 531c77a..60191cb 100644
--- a/build-std-ant-plugin/src/main/resources/build-std-ant-plugin.ant
+++ b/build-std-ant-plugin/src/main/resources/build-std-ant-plugin.ant
@@ -29,7 +29,7 @@
     <ea:plugin module="antunit" revision="0.9" />
 
     <!-- friendly target names -->
-    <bindtargets targets="resources-std:copy-resources" extensionPoint="ivy-publication:publish-ready" />
+    <bindtargets targets="resources-std:copy-resources,ivy-provisioning:resolve" extensionPoint="ivy-publication:publish-ready" />
 
     <!-- bind high level targets -->
     <bindtargets targets="clean-std:clean" extensionPoint="clean" />
diff --git a/build-std-ant-plugin/src/test/antunit/build-std-ant-plugin-test.xml b/build-std-ant-plugin/src/test/antunit/build-std-ant-plugin-test.xml
new file mode 100644
index 0000000..2c1fd89
--- /dev/null
+++ b/build-std-ant-plugin/src/test/antunit/build-std-ant-plugin-test.xml
@@ -0,0 +1,65 @@
+<!--
+   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;build-std-ant-plugin-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 />
+    <!-- import our local plugin -->
+    <property name="easyant.file" value="${basedir}/module.ivy" />
+    <ea:import-test-module moduleIvy="../../../module.ivy" sourceDirectory="../../main/resources" />
+
+    <!-- Defines a setUp / tearDown (before each test) that cleans the environnement -->
+    <target name="clean-test" 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-test">
+        <ivy:settings id="project.ivy.instance" />
+    </target>
+    <target name="tearDown" depends="clean-test" />
+    <target name="test-build-std-ant-plugin:clean" depends="clean">
+        <au:assertLogContains text="Cleaning ${target}..." />
+        <au:assertLogContains
+            text="Build sequence for target(s) `setUp', `test-build-std-ant-plugin:clean' is [clean-test, setUp, clean-std:clean, clean, test-build-std-ant-plugin:clean]"
+            level="debug" />
+    </target>
+    <!-- disabled as antunit conflicts with itself and break all assertions on logs 
+    <target name="test-build-std-ant-plugin:test" depends="test">
+        <au:assertLogContains text="Tests run: 1, Failures: 0, Errors: 0" />
+        <au:assertLogContains text="Target: test-simpleplugin:dumb took "/>
+        <au:assertLogContains
+            text="Build sequence for target(s) `setUp', `test-build-std-ant-plugin:test' is [clean-test, setUp, compile, -ivy-provisioning:init, abstract-provisioning:provisioning-ready, -ivy-provisioning:resolve, -ivy-provisioning:resolve-main-confs, -ivy-provisioning:resolve-test-confs, -ivy-provisioning:resolve-provided-confs, ivy-provisioning:resolve, abstract-provisioning:provisioning, easyant-plugin-publication:before-test, abstract-test:test-ready, abstract-test:test-run, antunit:init, -antunit:test, antunit:run, test, test-build-std-ant-plugin:test]"
+            level="debug" />
+    </target>
+    -->
+    <target name="test-build-std-ant-plugin:package" depends="package">
+        <au:assertLogContains
+            text="Build sequence for target(s) `setUp', `test-build-std-ant-plugin:package' is [clean-test, setUp, compile, package, test-build-std-ant-plugin:package]"
+            level="debug" />
+    </target>
+    
+    <target name="test-build-std-ant-plugin:dist" depends="dist">
+        <au:assertLogContains
+            text="Build sequence for target(s) `setUp', `test-build-std-ant-plugin:dist' is [clean-test, setUp, resources-std:init, -resources-std:check-resources, resources-std:copy-resources, -ivy-provisioning:init, abstract-provisioning:provisioning-ready, -ivy-provisioning:resolve, -ivy-provisioning:resolve-main-confs, -ivy-provisioning:resolve-test-confs, -ivy-provisioning:resolve-provided-confs, ivy-provisioning:resolve, ivy-publication:publish-ready, dist, test-build-std-ant-plugin:dist]"
+            level="debug" />
+    </target>
+</project>
\ No newline at end of file