Skip to content

Commit

Permalink
Update src/main/java/org/spdx/maven/CreateSpdxMojo.java
Browse files Browse the repository at this point in the history
Per sonatype-lift suggestion

Co-authored-by: sonatype-lift[bot] <37194012+sonatype-lift[bot]@users.noreply.github.com>
  • Loading branch information
goneall and sonatype-lift[bot] committed Apr 10, 2023
1 parent 4a17653 commit 3169bbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/spdx/maven/CreateSpdxMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ public void execute() throws MojoExecutionException
this.artifactType = RDF_OUTPUT_FORMAT.equals( this.outputFormat ) ? SPDX_RDF_ARTIFACT_TYPE : SPDX_JSON_ARTIFACT_TYPE;
if (spdxFile.getName().endsWith( ".spdx" )) {
// add a default extension
String spdxFileType = SPDX_RDF_ARTIFACT_TYPE.equals( this.artifactType ) ? ".rdf.xml" : ".json";
String spdxFileType = Objects.equals(this.artifactType, SPDX_RDF_ARTIFACT_TYPE) ? ".rdf.xml" : ".json";
getLog().info( "spdx file type = "+spdxFileType );
spdxFile = new File( spdxFile.getAbsolutePath() + spdxFileType );
}
Expand Down

0 comments on commit 3169bbb

Please sign in to comment.