You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2009/05/02 13:34:12 UTC
svn commit: r770933 -
/maven/ant-tasks/branches/maven-ant-tasks-2.0.x/sample.build.xml
Author: hboutemy
Date: Sat May 2 11:34:12 2009
New Revision: 770933
URL: http://svn.apache.org/viewvc?rev=770933&view=rev
Log:
[MANTTASKS-142] improved unit-test for MANTTASKS-103 to better show that repo id is transformed to 'remote' (instead of remote repo url)
Modified:
maven/ant-tasks/branches/maven-ant-tasks-2.0.x/sample.build.xml
Modified: maven/ant-tasks/branches/maven-ant-tasks-2.0.x/sample.build.xml
URL: http://svn.apache.org/viewvc/maven/ant-tasks/branches/maven-ant-tasks-2.0.x/sample.build.xml?rev=770933&r1=770932&r2=770933&view=diff
==============================================================================
--- maven/ant-tasks/branches/maven-ant-tasks-2.0.x/sample.build.xml (original)
+++ maven/ant-tasks/branches/maven-ant-tasks-2.0.x/sample.build.xml Sat May 2 11:34:12 2009
@@ -20,14 +20,14 @@
REQUIRED SETUP FOR RUNNING DEPLOYMENT TESTS
-
- Some of the deploy tests require that you have the ssh daemon (sshd) running
+
+ Some of the deploy tests require that you have the ssh daemon (sshd) running
on your local system. This allows the deploy taks to scp artifacts to a local
test repository.
-
- How you start sshd will depend on your system. For example on Fedora,
+
+ How you start sshd will depend on your system. For example on Fedora,
you can start the ssh deamon using "service sshd start"
-
+
-->
<target name="initClassloader">
@@ -119,7 +119,7 @@
</target>
<target name="test-pom-profiles" depends="initTaskDefs">
-
+
<!-- Test default profile activation -->
<artifact:pom file="src/test/pom-with-profiles.xml" id="project.default"/>
@@ -410,16 +410,20 @@
</target>
<target name="test-deploy-spaces" depends="initTaskDefs,installSshProvider">
+ <delete file="${basedir}/target/local-repo/org/apache/maven/maven-ant-tasks/maven-metadata-remote.*"/>
<echo file="target/test file.txt">dummy</echo>
<artifact:deploy file="target/test file.txt">
<!-- intentionnally left without id to check default id: see MANTTASKS-103 -->
- <remoteRepository url="scp://localhost/tmp/deployment-repo" id="scp.localhost.repo"/>
+ <remoteRepository url="scp://localhost/tmp/deployment-repo"/>
<localrepository refid="local.repository"/>
<pom refid="maven.project"/>
</artifact:deploy>
- <!-- MANTTASKS-103: maven-metadata-scp: should not exist since scp: is an illegal remoteRepository id -->
+ <!-- MANTTASKS-103: maven-metadata-scp: should not exist since scp: is an illegal remoteRepository id
+ replaced instead by "remote" id in DeployTask.java
+ -->
<check.file.not.exists file="${basedir}/target/local-repo/org/apache/maven/maven-ant-tasks/maven-metadata-scp://localhost"/>
+ <check.file.exists file="${basedir}/target/local-repo/org/apache/maven/maven-ant-tasks/maven-metadata-remote.xml"/>
</target>
<target name="test-deploy" depends="initTaskDefs,installSshProvider">