Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

NXCM-5153: Content "hasPom" renamed to "pomAvailable"

  • Loading branch information...
commit 13becd124172a0eecdebb79f047ace7d4c9b2ff8 1 parent d4bac92
@cstamas cstamas authored
View
18 ...exus-restlet1x-plugin/src/main/java/org/sonatype/nexus/rest/artifact/AbstractArtifactPlexusResource.java
@@ -340,7 +340,7 @@ public Object upload( Context context, Request request, Response response, List<
ArtifactStoreRequest gavRequest = null;
- if ( uploadContext.isHasPom() )
+ if ( uploadContext.isPomAvailable() )
{
if ( isPom )
{
@@ -427,7 +427,7 @@ public Object upload( Context context, Request request, Response response, List<
}
else
{
- if ( uploadContext.isHasPom() )
+ if ( uploadContext.isPomAvailable() )
{
helper.storeArtifact( gavRequest, is, null );
}
@@ -445,7 +445,7 @@ public Object upload( Context context, Request request, Response response, List<
}
finally
{
- if ( uploadContext.isHasPom() )
+ if ( uploadContext.isPomAvailable() )
{
pomManager.removeTempPomFile();
}
@@ -466,7 +466,7 @@ public Object upload( Context context, Request request, Response response, List<
{
private String repositoryId = null;
- private boolean hasPom = false;
+ private boolean pomAvailable = false;
private String extension = null;
@@ -490,14 +490,14 @@ public void setRepositoryId( String repositoryId )
this.repositoryId = repositoryId;
}
- public boolean isHasPom()
+ public boolean isPomAvailable()
{
- return hasPom;
+ return pomAvailable;
}
- public void setHasPom( boolean hasPom )
+ public void setPomAvailable( boolean pomAvailable )
{
- this.hasPom = hasPom;
+ this.pomAvailable = pomAvailable;
}
public String getExtension()
@@ -612,7 +612,7 @@ else if ( "e".equals( fi.getFieldName() ) )
}
else if ( "hasPom".equals( fi.getFieldName() ) )
{
- uploadContext.setHasPom( Boolean.parseBoolean( fi.getString() ) );
+ uploadContext.setPomAvailable( Boolean.parseBoolean( fi.getString() ) );
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.