Skip to content
Permalink
Browse files
COMMONSSITE-102: Move testing target sandbox directory
  • Loading branch information
chtompki committed Feb 15, 2018
1 parent 99abd44 commit 4f5d14e3d930c074e2bf78267041131e4938d0b9
Showing 8 changed files with 18 additions and 16 deletions.
@@ -26,6 +26,8 @@

<body>
<release version="1.1" date="2018-02-15" description="1.1">
<release version="1.1" date="YYYY-MM-DD" description="tbd">
<action issue="COMMONSSITE-102" type="fix" dev="chtompki">Commons Release Plugin doesn't work with Commons Release Plugin</action>
<action issue="COMMONSSITE-101" type="fix" dev="chtompki">Make -Dcommons.release.dryRun=true our commit toggle</action>
</release>

@@ -53,15 +53,15 @@ public void testSuccess() throws Exception {
assertTrue(testPom.exists());
mojo = (CommonsDistributionDetachmentMojo) rule.lookupMojo("detach-distributions", testPom);
mojo.execute();
File detachedTarGz = new File("target/commons-release-plugin/mockAttachedTar.tar.gz");
File detachedTarGzAsc = new File("target/commons-release-plugin/mockAttachedTar.tar.gz.asc");
File detachedTarMd5 = new File("target/commons-release-plugin/mockAttachedTar.tar.gz.md5");
File detachedTarGzSha1 = new File("target/commons-release-plugin/mockAttachedTar.tar.gz.sha1");
File detachedZip = new File("target/commons-release-plugin/mockAttachedZip.zip");
File detachedZipAsc = new File("target/commons-release-plugin/mockAttachedZip.zip.asc");
File detachedZipMd5 = new File("target/commons-release-plugin/mockAttachedZip.zip.md5");
File detachedZipSha1 = new File("target/commons-release-plugin/mockAttachedZip.zip.sha1");
File notDetatchedMockAttachedFile = new File("target/commons-release-plugin/mockAttachedFile.html");
File detachedTarGz = new File("target/testing-commons-release-plugin/mockAttachedTar.tar.gz");
File detachedTarGzAsc = new File("target/testing-commons-release-plugin/mockAttachedTar.tar.gz.asc");
File detachedTarMd5 = new File("target/testing-commons-release-plugin/mockAttachedTar.tar.gz.md5");
File detachedTarGzSha1 = new File("target/testing-commons-release-plugin/mockAttachedTar.tar.gz.sha1");
File detachedZip = new File("target/testing-commons-release-plugin/mockAttachedZip.zip");
File detachedZipAsc = new File("target/testing-commons-release-plugin/mockAttachedZip.zip.asc");
File detachedZipMd5 = new File("target/testing-commons-release-plugin/mockAttachedZip.zip.md5");
File detachedZipSha1 = new File("target/testing-commons-release-plugin/mockAttachedZip.zip.sha1");
File notDetatchedMockAttachedFile = new File("target/testing-commons-release-plugin/mockAttachedFile.html");
assertTrue(detachedTarGz.exists());
assertTrue(detachedTarGzAsc.exists());
assertTrue(detachedTarMd5.exists());
@@ -62,7 +62,7 @@ public void testSuccess() throws Exception {
File releaseNotesBasedir = new File("src/test/resources/mojos/stage-distributions/");
mojoForTest.setBasedir(releaseNotesBasedir);
mojoForTest.execute();
File targetScmDirectory = new File("target/commons-release-plugin/scm");
File targetScmDirectory = new File("target/testing-commons-release-plugin/scm");
assertTrue(targetScmDirectory.exists());
}
}
@@ -55,7 +55,7 @@ public void testCompressSiteSuccess() throws Exception {
assertTrue(testPom.exists());
mojo = (CommonsSiteCompressionMojo) rule.lookupMojo("compress-site", testPom);
mojo.execute();
File siteZip = new File("target/commons-release-plugin/site.zip");
File siteZip = new File("target/testing-commons-release-plugin/site.zip");
assertTrue(siteZip.exists());
}

@@ -42,7 +42,7 @@
<groupId>org.apache.commons</groupId>
<artifactId>commons-release-plugin</artifactId>
<configuration>
<workingDirectory>target/commons-release-plugin</workingDirectory>
<workingDirectory>target/testing-commons-release-plugin</workingDirectory>
<siteDirectory>${basedir}/target/test-classes/mojos/junk</siteDirectory>
</configuration>
</plugin>
@@ -42,7 +42,7 @@
<groupId>org.apache.commons</groupId>
<artifactId>commons-release-plugin</artifactId>
<configuration>
<workingDirectory>target/commons-release-plugin</workingDirectory>
<workingDirectory>target/testing-commons-release-plugin</workingDirectory>
<siteDirectory>${basedir}/target/test-classes/mojos/compress-site/example-site</siteDirectory>
</configuration>
</plugin>
@@ -43,7 +43,7 @@
<artifactId>commons-release-plugin</artifactId>
<configuration>
<project implementation="org.apache.commons.release.plugin.stubs.DistributionDetachmentProjectStub" />
<workingDirectory>target/commons-release-plugin</workingDirectory>
<workingDirectory>target/testing-commons-release-plugin</workingDirectory>
<distSvnStagingUrl>mockDistSvnStagingUrl</distSvnStagingUrl>
</configuration>
</plugin>
@@ -43,8 +43,8 @@
<artifactId>commons-release-plugin</artifactId>
<configuration>
<project implementation="org.apache.commons.release.plugin.stubs.DistributionDetachmentProjectStub" />
<workingDirectory>target/commons-release-plugin</workingDirectory>
<distCheckoutDirectory>target/commons-release-plugin/scm</distCheckoutDirectory>
<workingDirectory>target/testing-commons-release-plugin</workingDirectory>
<distCheckoutDirectory>target/testing-commons-release-plugin/scm</distCheckoutDirectory>
<distSvnStagingUrl>scm:svn:https://dist.apache.org/repos/dist/dev/commons/release-plugin</distSvnStagingUrl>
<dryRun>true</dryRun>
</configuration>

0 comments on commit 4f5d14e

Please sign in to comment.