| Chunk |
|---|
| Conflicting content |
|---|
{
Artifact artifact;
<<<<<<< HEAD
Map |
| Solution content |
|---|
{
Artifact artifact;
Map |
| File |
|---|
| TestCompilerMojo.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
}
}
<<<<<<< HEAD
private File getDestinationFile( Artifact artifact ) throws MojoExecutionException
{
File destFile;
String defaultFinalName = artifact.getArtifactId() + "-" + artifact.getVersion();
MavenProject pomProject = getProject( artifact );
String finalName = pomProject.getBuild().getFinalName();
if ( finalName.equals( defaultFinalName ) )
{
String classifier = StringUtils.isEmpty( artifact.getClassifier() ) ? "" : "-" + artifact.getClassifier();
String version = stripVersion ? "" : "-" + artifact.getVersion();
destFile = new File( webappDirectory, artifact.getArtifactId() + version + classifier + "." + SWF );
}
else
{
if ( stripVersion )
{
getLog().info( "Copying artifact using final name " + finalName + " ignoring strip version" );
}
destFile = new File( webappDirectory, finalName + "." + SWF );
}
=======
private File getDestinationFile( Artifact artifact )
throws MojoExecutionException
{
MavenProject pomProject = getProject( artifact );
String fileName;
if ( !useFinalName )
{
String classifier = StringUtils.isEmpty( artifact.getClassifier() ) ? "" : "-" + artifact.getClassifier();
String version = stripVersion ? "" : "-" + artifact.getVersion();
fileName = artifact.getArtifactId() + version + classifier + "." + SWF;
}
else
{
fileName = pomProject.getBuild().getFinalName() + "." + SWF;
}
if ( stripVersion && fileName.contains( artifact.getVersion() ) )
{
fileName = fileName.replace( artifact.getVersion() + "-", "" );
fileName = fileName.replace( "-" + artifact.getVersion(), "" );
fileName = fileName.replace( artifact.getVersion(), "" );
}
File destFile = new File( webappDirectory, fileName );
>>>>>>> e0c6d6fe4f39341f0a0f608f7ac1d03752e0ba76
return destFile;
}
|
| Solution content |
|---|
}
}
private File getDestinationFile( Artifact artifact )
throws MojoExecutionException
{
MavenProject pomProject = getProject( artifact );
String fileName;
if ( !useFinalName )
{
String classifier = StringUtils.isEmpty( artifact.getClassifier() ) ? "" : "-" + artifact.getClassifier();
String version = stripVersion ? "" : "-" + artifact.getVersion();
fileName = artifact.getArtifactId() + version + classifier + "." + SWF;
}
else
{
fileName = pomProject.getBuild().getFinalName() + "." + SWF;
}
if ( stripVersion && fileName.contains( artifact.getVersion() ) )
{
fileName = fileName.replace( artifact.getVersion() + "-", "" );
fileName = fileName.replace( "-" + artifact.getVersion(), "" );
fileName = fileName.replace( artifact.getVersion(), "" );
}
File destFile = new File( webappDirectory, fileName );
return destFile;
}
|
| File |
|---|
| CopyMojo.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| If statement |
| Method invocation |
| Method signature |
| Variable |