Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MCLEAN-110, MCLEAN-124, MCLEAN-126, ] Merge 3.x to 4.x #86

Merged
merged 19 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
bf21c55
MCLEAN-110 Replaced Utils.createSymlink with Java 7 Files.createSymbo…
peterdemaeyer Nov 6, 2024
cb2127f
[MCLEAN-124] Leverage Files.delete(Path) API to provide more accurate…
peterdemaeyer Nov 9, 2024
091570b
[MCLEAN-124] Replace JUnit Assumptions with @DisabledOnOs, to better …
peterdemaeyer Nov 12, 2024
a38e8bc
Add Release Drafter - 3.x
slawekjaranowski Jan 9, 2025
e8fea70
[MCLEAN-126] Replaced old File API with new Path equivalent where pos…
peterdemaeyer Jan 19, 2025
d236c12
Add PR Automation
slawekjaranowski Jan 28, 2025
6af9e04
Bump org.apache.maven.plugins:maven-plugins from 42 to 43
dependabot[bot] Jan 21, 2025
dcc3b09
Fix license/notice (#48)
gnodet Jun 26, 2024
9dc0953
Bump org.codehaus.plexus:plexus-testing from 1.3.0 to 1.4.0
dependabot[bot] Jan 21, 2025
e514d80
Bump mavenVersion from 3.6.3 to 3.9.9 (#77)
dependabot[bot] Jan 30, 2025
5e797fc
Bump org.apache.maven.resolver:maven-resolver-api from 1.1.1 to 1.9.22
dependabot[bot] Jan 22, 2025
a70d2e4
Use global release-drafter configuration
slawekjaranowski Feb 1, 2025
c003151
release-drafter configuration
slawekjaranowski Feb 1, 2025
7065077
[MNGSITE-529] Rename "Goals" to "Plugin Documentation"
Bukama Feb 12, 2025
9db0e77
PR Automation only on close event
slawekjaranowski Feb 15, 2025
92305ba
Update scm tag according to branch
slawekjaranowski Feb 15, 2025
8211bc5
[maven-release-plugin] prepare release maven-clean-plugin-3.4.1
slawekjaranowski Feb 15, 2025
68f2009
[maven-release-plugin] prepare for next development iteration
slawekjaranowski Feb 15, 2025
184f143
Merge branch 'maven-clean-plugin-3.x' into master-tmp-merge-3.x
peterdemaeyer Feb 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions src/it/dangling-symlinks/setup.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,24 @@
* under the License.
*/

import java.io.*;
import java.nio.file.*;
import java.util.*;
import java.util.jar.*;
import java.util.regex.*;
import org.apache.maven.plugins.clean.*;
import java.nio.file.attribute.*;

try
{
File targetDir = new File( basedir, "target" );
File link = new File( targetDir, "link" );
File target = new File( targetDir, "link-target.txt" );
Path targetDir = basedir.toPath().resolve( "target" );
Path link = targetDir.resolve( "link" );
Path target = targetDir.resolve( "link-target.txt" );

System.out.println( "Creating symlink " + link + " -> " + target );
Files.createSymbolicLink( link.toPath(), target.toPath() );
if ( !link.exists() )
Files.createSymbolicLink( link, target, new FileAttribute[0] );
if ( !Files.exists( link, new LinkOption[0] ) )
{
System.out.println( "Platform does not support symlinks, skipping test." );
}

System.out.println( "Deleting symlink target " + target );
target.delete();
Files.delete( target );
}
catch( Exception ex )
{
Expand Down
18 changes: 6 additions & 12 deletions src/it/symlink-dont-follow/setup.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,8 @@
* under the License.
*/

import java.io.*;
import java.nio.file.*;
import java.util.*;
import java.util.jar.*;
import java.util.regex.*;
import org.apache.maven.plugins.clean.*;
import java.nio.file.attribute.*;

def pairs =
[
Expand All @@ -34,13 +30,11 @@ def pairs =

for ( pair : pairs )
{
File target = new File( basedir, pair[0] );
File link = new File( basedir, pair[1] );
println "Creating symlink " + link + " -> " + target;
Path targetPath = target.toPath();
Path linkPath = link.toPath();
Files.createSymbolicLink( linkPath, targetPath );
if ( !link.exists() )
Path target = basedir.toPath().resolve( pair[0] );
Path link = basedir.toPath().resolve( pair[1] );
System.out.println( "Creating symlink " + link + " -> " + target );
Files.createSymbolicLink( link, target, new FileAttribute[0] );
if ( !Files.exists( link, new LinkOption[0] ) )
{
println "Platform does not support symlinks, skipping test.";
return;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/apache/maven/plugins/clean/CleanMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public class CleanMojo implements org.apache.maven.api.plugin.Mojo {
* <code>${maven.multiModuleProjectDirectory}/target/.clean</code> directory will be used. If the
* <code>${build.directory}</code> has been modified, you'll have to adjust this property explicitly.
* In order for fast clean to work correctly, this directory and the various directories that will be deleted
* should usually reside on the same volume. The exact conditions are system dependant though, but if an atomic
* should usually reside on the same volume. The exact conditions are system-dependent though, but if an atomic
* move is not supported, the standard deletion mechanism will be used.
*
* @since 3.2
Expand All @@ -201,8 +201,8 @@ public class CleanMojo implements org.apache.maven.api.plugin.Mojo {
* Mode to use when using fast clean. Values are: <code>background</code> to start deletion immediately and
* waiting for all files to be deleted when the session ends, <code>at-end</code> to indicate that the actual
* deletion should be performed synchronously when the session ends, or <code>defer</code> to specify that
* the actual file deletion should be started in the background when the session ends (this should only be used
* when maven is embedded in a long running process).
* the actual file deletion should be started in the background when the session ends. This should only be used
* when maven is embedded in a long-running process.
*
* @since 3.2
* @see #fast
Expand Down