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

[MSHARED-1090] Update module #11

Merged
merged 4 commits into from
Jun 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
36 changes: 20 additions & 16 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-shared-components</artifactId>
<version>34</version>
<version>36</version>
<relativePath/>
</parent>

Expand Down Expand Up @@ -60,35 +60,40 @@
</site>
</distributionManagement>
<properties>
<javaVersion>7</javaVersion>
<mavenVersion>3.1.0</mavenVersion>
<javaVersion>8</javaVersion>
<slf4jVersion>1.7.36</slf4jVersion>
<project.build.outputTimestamp>2020-04-04T09:03:59Z</project.build.outputTimestamp>
</properties>

<dependencies>
<!-- Maven -->
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>${mavenVersion}</version>
</dependency>

<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-shared-utils</artifactId>
<version>3.3.3</version>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4jVersion}</version>
</dependency>

<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.3.0</version>
<version>3.4.2</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.11.0</version>
</dependency>

<!-- Test -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.1</version>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>${slf4jVersion}</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -99,7 +104,6 @@
<groupId>org.codehaus.modello</groupId>
<artifactId>modello-maven-plugin</artifactId>
<configuration>
<useJava5>true</useJava5>
<version>1.1.0</version>
<models>
<model>src/main/mdo/fileset.mdo</model>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@
public class FlatFileNameMapper
implements FileNameMapper
{
/** {@inheritDoc} */
@Override
public void setFrom( String from )
{
// nop
}

/** {@inheritDoc} */
@Override
public void setTo( String to )
{
// nop
}

/** {@inheritDoc} */
@Override
public String mapFileName( String sourceFileName )
{
return new File( sourceFileName ).getName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void setCaseSensitive( boolean caseSensitive )
this.caseSensitive = caseSensitive;
}

/** {@inheritDoc} */
@Override
public void setFrom( String from )
{
int index = from.lastIndexOf( "*" );
Expand All @@ -107,7 +107,7 @@ public void setFrom( String from )
postfixLength = fromPostfix.length();
}

/** {@inheritDoc} */
@Override
public void setTo( String to )
{
int index = to.lastIndexOf( "*" );
Expand All @@ -123,7 +123,7 @@ public void setTo( String to )
}
}

/** {@inheritDoc} */
@Override
public String mapFileName( String sourceFileName )
{
if ( fromPrefix == null || !modifyName( sourceFileName ).startsWith( modifyName( fromPrefix ) )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@
public class IdentityMapper
implements FileNameMapper
{
/** {@inheritDoc} */
@Override
public void setFrom( String from )
{
// nop
}

/** {@inheritDoc} */
@Override
public void setTo( String to )
{
// nop
}

/** {@inheritDoc} */
@Override
public String mapFileName( String sourceFileName )
{
return sourceFileName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@ public class MergingMapper
{
private String mergedFile = null;

/** {@inheritDoc} */
@Override
public void setFrom( String from )
{
// nop
}

/** {@inheritDoc} */
@Override
public void setTo( String to )
{
mergedFile = to;
}

/** {@inheritDoc} */
@Override
public String mapFileName( String sourceFileName )
{
return mergedFile;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
public class PackageNameMapper
extends GlobPatternMapper
{
/** {@inheritDoc} */
@Override
protected String extractVariablePart( String name )
{
String var = name.substring( prefixLength, name.length() - postfixLength );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@ public class RegexpPatternMapper
private Pattern fromPattern;
private String toReplaceExpression;

/** {@inheritDoc} */
@Override
public void setFrom( String from )
{
this.fromPattern = Pattern.compile( from );
}

/** {@inheritDoc} */
@Override
public void setTo( String to )
{
this.toReplaceExpression = to;
}

/** {@inheritDoc} */
@Override
public String mapFileName( String sourceFileName )
{
Matcher matcher = this.fromPattern.matcher( sourceFileName );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
public class UnPackageNameMapper
extends GlobPatternMapper
{
/** {@inheritDoc} */
@Override
protected String extractVariablePart( String name )
{
String var = name.substring( prefixLength, name.length() - postfixLength );
Expand Down
Loading