You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by jl...@apache.org on 2014/01/21 10:17:50 UTC
svn commit: r1559950 - in /ant/easyant/plugins/trunk: abstract-test/
default-version-strategy/src/test/antunit/
easyant-plugin-publication/src/main/resources/
ivy-repo-management/src/test/antunit/ skeleton/src/test/antunit/
webstart/src/test/antunit/
Author: jlboudart
Date: Tue Jan 21 09:17:49 2014
New Revision: 1559950
URL: http://svn.apache.org/r1559950
Log:
Fix a few plugin tests
Modified:
ant/easyant/plugins/trunk/abstract-test/module.ivy
ant/easyant/plugins/trunk/default-version-strategy/src/test/antunit/default-version-strategy-test.xml
ant/easyant/plugins/trunk/easyant-plugin-publication/src/main/resources/easyant-plugin-publication.ant
ant/easyant/plugins/trunk/ivy-repo-management/src/test/antunit/ivy-repo-management-test.xml
ant/easyant/plugins/trunk/skeleton/src/test/antunit/skeleton-test.xml
ant/easyant/plugins/trunk/webstart/src/test/antunit/webstart-test.xml
Modified: ant/easyant/plugins/trunk/abstract-test/module.ivy
URL: http://svn.apache.org/viewvc/ant/easyant/plugins/trunk/abstract-test/module.ivy?rev=1559950&r1=1559949&r2=1559950&view=diff
==============================================================================
--- ant/easyant/plugins/trunk/abstract-test/module.ivy (original)
+++ ant/easyant/plugins/trunk/abstract-test/module.ivy Tue Jan 21 09:17:49 2014
@@ -37,7 +37,7 @@
<artifact type="ant" />
</publications>
<dependencies>
- <dependency org="org.apache.ant" name="ant-junit" rev="1.9.1" conf="default->master"/>
- <dependency org="org.apache.ant" name="ant-junit4" rev="1.9.1" conf="default->master"/>
+ <dependency org="org.apache.ant" name="ant-junit" rev="1.9.3" conf="default->master"/>
+ <dependency org="org.apache.ant" name="ant-junit4" rev="1.9.3" conf="default->master"/>
</dependencies>
</ivy-module>
Modified: ant/easyant/plugins/trunk/default-version-strategy/src/test/antunit/default-version-strategy-test.xml
URL: http://svn.apache.org/viewvc/ant/easyant/plugins/trunk/default-version-strategy/src/test/antunit/default-version-strategy-test.xml?rev=1559950&r1=1559949&r2=1559950&view=diff
==============================================================================
--- ant/easyant/plugins/trunk/default-version-strategy/src/test/antunit/default-version-strategy-test.xml (original)
+++ ant/easyant/plugins/trunk/default-version-strategy/src/test/antunit/default-version-strategy-test.xml Tue Jan 21 09:17:49 2014
@@ -18,7 +18,7 @@
xmlns:ivy="antlib:org.apache.ivy.ant" xmlns:ea="antlib:org.apache.easyant">
<!-- Import your plugin -->
- <property name="target" value="target/test-antunit" />
+ <property name="target" value="${basedir}/target/test-antunit" />
<!-- configure easyant in current project -->
<ea:configure-easyant-ivy-instance />
<!-- import our local plugin -->
@@ -36,8 +36,10 @@
<target name="tearDown" depends="clean" />
<target name="configure-ivy-project">
+ <property name="ivy.local.default.root" value="${target}/local-repo" />
+ <property name="ivy.shared.default.root" value="${target}/shared-repo" />
<property name="project.ivy.file" value="sample-module.ivy" />
- <ivy:settings id="project.ivy.instance" />
+ <ivy:configure settingsId="project.ivy.instance" url="${ivy.default.settings.dir}/ivysettings.xml"/>
<ivy:info file="sample-module.ivy" settingsRef="project.ivy.instance" />
</target>
<target name="test-default-version-strategy:init" depends="default-version-strategy:init">
@@ -62,4 +64,4 @@
<target name="test-default-version-strategy:release" depends="default-version-strategy:release">
<au:assertPropertyEquals name="version" value="${ivy.revision}" />
</target>
-</project>
\ No newline at end of file
+</project>
Modified: ant/easyant/plugins/trunk/easyant-plugin-publication/src/main/resources/easyant-plugin-publication.ant
URL: http://svn.apache.org/viewvc/ant/easyant/plugins/trunk/easyant-plugin-publication/src/main/resources/easyant-plugin-publication.ant?rev=1559950&r1=1559949&r2=1559950&view=diff
==============================================================================
--- ant/easyant/plugins/trunk/easyant-plugin-publication/src/main/resources/easyant-plugin-publication.ant (original)
+++ ant/easyant/plugins/trunk/easyant-plugin-publication/src/main/resources/easyant-plugin-publication.ant Tue Jan 21 09:17:49 2014
@@ -30,9 +30,9 @@
-->
<target name="easyant-plugin-publication:before-test" depends="abstract-provisioning:provisioning"
extensionOf="abstract-test:test-ready" if="publish.plugin.before.test">
- <ea:configure-build-scoped-repository buildScopedRepositoryName="build"
+ <ea:configure-build-scoped-repository name="build"
settingsRef="easyant.ivy.instance" />
<ivy:publish artifactspattern="${target.artifacts}/[artifact](-[classifier]).[ext]" resolver="build"
forcedeliver="true" overwrite="true" settingsRef="easyant.ivy.instance" />
</target>
-</project>
\ No newline at end of file
+</project>
Modified: ant/easyant/plugins/trunk/ivy-repo-management/src/test/antunit/ivy-repo-management-test.xml
URL: http://svn.apache.org/viewvc/ant/easyant/plugins/trunk/ivy-repo-management/src/test/antunit/ivy-repo-management-test.xml?rev=1559950&r1=1559949&r2=1559950&view=diff
==============================================================================
--- ant/easyant/plugins/trunk/ivy-repo-management/src/test/antunit/ivy-repo-management-test.xml (original)
+++ ant/easyant/plugins/trunk/ivy-repo-management/src/test/antunit/ivy-repo-management-test.xml Tue Jan 21 09:17:49 2014
@@ -35,7 +35,7 @@
<target name="setUp" depends="clean">
<property name="ivy.local.default.root" value="${target}/local-repo" />
<property name="ivy.shared.default.root" value="${target}/shared-repo" />
- <ivy:settings id="project.ivy.instance" />
+ <ivy:configure settingsId="project.ivy.instance" url="${ivy.default.settings.dir}/ivysettings.xml"/>
<property name="install.interactive.mode" value="false" />
</target>
<target name="tearDown" depends="clean" />
@@ -89,4 +89,4 @@
<au:assertLogContains text=":: publishing :: org.foobar#foobar-core" />
<au:assertLogContains text="publish commited" />
</target>
-</project>
\ No newline at end of file
+</project>
Modified: ant/easyant/plugins/trunk/skeleton/src/test/antunit/skeleton-test.xml
URL: http://svn.apache.org/viewvc/ant/easyant/plugins/trunk/skeleton/src/test/antunit/skeleton-test.xml?rev=1559950&r1=1559949&r2=1559950&view=diff
==============================================================================
--- ant/easyant/plugins/trunk/skeleton/src/test/antunit/skeleton-test.xml (original)
+++ ant/easyant/plugins/trunk/skeleton/src/test/antunit/skeleton-test.xml Tue Jan 21 09:17:49 2014
@@ -35,11 +35,16 @@
<target name="setUp" depends="clean" />
<target name="tearDown" depends="clean" />
- <target name="test-skeleton:init">
- <au:assertPropertyEquals name="target.main.classes" value="target/test-antunit/main/classes" />
- <au:assertPropertyEquals name="target.test.classes" value="target/test-antunit/test/classes" />
- <au:assertPropertyEquals name="target.test.integration.classes" value="target/test-antunit/integration-test/classes" />
- <au:assertReferenceSet refid="compile.main.classpath" />
- <au:assertReferenceSet refid="compile.test.classpath" />
+ <target name="test-skeleton:init" depends="skeleton:init">
+ <au:assertPropertyEquals name="skeleton.default.basedir" value="${basedir}" />
+ <au:assertPropertyEquals name="skeleton.default.excludes.pattern" value="target/**" />
+ <au:assertPropertyEquals name="skeleton.default.includes.pattern" value="" />
+ <au:assertPropertyEquals name="skeleton.default.type" value="zip" />
+ <au:assertPropertyEquals name="skeleton.default.to.resolver" value="easyant-shared-modules" />
+ <au:assertPropertyEquals name="skeleton.default.revision" value="0.1" />
+ <au:assertPropertyEquals name="skeleton.default.organisation" value="org.apache.easyant.skeletons" />
+ <au:assertPropertyEquals name="project.default.organisation" value=""/>
+ <au:assertPropertyEquals name="skeleton.interactive.mode" value="true"/>
+ <au:assertPropertyEquals name="skeleton.is.interactive" value="true"/>
</target>
-</project>
\ No newline at end of file
+</project>
Modified: ant/easyant/plugins/trunk/webstart/src/test/antunit/webstart-test.xml
URL: http://svn.apache.org/viewvc/ant/easyant/plugins/trunk/webstart/src/test/antunit/webstart-test.xml?rev=1559950&r1=1559949&r2=1559950&view=diff
==============================================================================
--- ant/easyant/plugins/trunk/webstart/src/test/antunit/webstart-test.xml (original)
+++ ant/easyant/plugins/trunk/webstart/src/test/antunit/webstart-test.xml Tue Jan 21 09:17:49 2014
@@ -17,7 +17,7 @@
<project name="org.apache.easyant.plugins;webstart-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" />
+ <property name="target" value="${basedir}/target/test-antunit" />
<!-- configure easyant in current project -->
<ea:configure-easyant-ivy-instance />
<!-- import our local plugin -->
@@ -40,7 +40,7 @@
<property name="webstart.storepass" value="mypass" />
<mkdir dir="${target}/artifacts" />
- <jar destfile="${target.main.artifact}" />
+ <jar destfile="${target.main.artifact}"/>
<mkdir dir="lib/main" />
<echo file="${webstart.jnlp.file}" />
</target>
@@ -82,4 +82,4 @@
<target name="test-webstart:run" depends="webstart:run">
<!-- TODO: Don't know how to test it yet :) -->
</target>
-</project>
\ No newline at end of file
+</project>