diff options
author | Olivier Lamy <olamy@apache.org> | 2011-09-30 14:00:23 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2011-09-30 14:00:23 +0000 |
commit | 05191844ba0e0311e29c70c777e59ba16e7a607b (patch) | |
tree | 82ebbe9a7b96fb158ad82ef9efda07fc6751f5dc /archiva-modules/archiva-web | |
parent | bf865287f3d45437d68e26a76018f18d452ff4ec (diff) | |
download | archiva-05191844ba0e0311e29c70c777e59ba16e7a607b.tar.gz archiva-05191844ba0e0311e29c70c777e59ba16e7a607b.zip |
add some materials to be able to use REST services in a gwt based application
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1177666 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web')
3 files changed, 83 insertions, 62 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/pom.xml b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/pom.xml index e049f0af7..6e6a35c82 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/pom.xml +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/pom.xml @@ -74,4 +74,22 @@ </exclusions> </dependency> </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>bind-sources</id> + <goals> + <goal>jar-no-fork</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </project> diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/Dependency.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/Dependency.java index 0d945ef4e..2064ad27f 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/Dependency.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/Dependency.java @@ -38,68 +38,6 @@ public class Dependency private String scope; - @Override - public String toString() - { - return "Dependency{" + "groupId='" + groupId + '\'' + ", artifactId='" + artifactId + '\'' + ", version='" - + version + '\'' + ", classifier='" + classifier + '\'' + ", type='" + type + '\'' + ", scope='" + scope - + '\'' + '}'; - } - - @Override - public boolean equals( Object o ) - { - if ( this == o ) - { - return true; - } - if ( o == null || getClass() != o.getClass() ) - { - return false; - } - - Dependency that = (Dependency) o; - - if ( !artifactId.equals( that.artifactId ) ) - { - return false; - } - if ( classifier != null ? !classifier.equals( that.classifier ) : that.classifier != null ) - { - return false; - } - if ( !groupId.equals( that.groupId ) ) - { - return false; - } - if ( scope != null ? !scope.equals( that.scope ) : that.scope != null ) - { - return false; - } - if ( type != null ? !type.equals( that.type ) : that.type != null ) - { - return false; - } - if ( !version.equals( that.version ) ) - { - return false; - } - - return true; - } - - @Override - public int hashCode() - { - int result = groupId.hashCode(); - result = 31 * result + artifactId.hashCode(); - result = 31 * result + version.hashCode(); - result = 31 * result + ( classifier != null ? classifier.hashCode() : 0 ); - result = 31 * result + ( type != null ? type.hashCode() : 0 ); - result = 31 * result + ( scope != null ? scope.hashCode() : 0 ); - return result; - } - public Dependency( String groupId, String artifactId, String version, String classifier, String type, String scope ) { this.groupId = groupId; @@ -169,4 +107,66 @@ public class Dependency { this.scope = scope; } + + @Override + public String toString() + { + return "Dependency{" + "groupId='" + groupId + '\'' + ", artifactId='" + artifactId + '\'' + ", version='" + + version + '\'' + ", classifier='" + classifier + '\'' + ", type='" + type + '\'' + ", scope='" + scope + + '\'' + '}'; + } + + @Override + public boolean equals( Object o ) + { + if ( this == o ) + { + return true; + } + if ( o == null || getClass() != o.getClass() ) + { + return false; + } + + Dependency that = (Dependency) o; + + if ( !artifactId.equals( that.artifactId ) ) + { + return false; + } + if ( classifier != null ? !classifier.equals( that.classifier ) : that.classifier != null ) + { + return false; + } + if ( !groupId.equals( that.groupId ) ) + { + return false; + } + if ( scope != null ? !scope.equals( that.scope ) : that.scope != null ) + { + return false; + } + if ( type != null ? !type.equals( that.type ) : that.type != null ) + { + return false; + } + if ( !version.equals( that.version ) ) + { + return false; + } + + return true; + } + + @Override + public int hashCode() + { + int result = groupId.hashCode(); + result = 31 * result + artifactId.hashCode(); + result = 31 * result + version.hashCode(); + result = 31 * result + ( classifier != null ? classifier.hashCode() : 0 ); + result = 31 * result + ( type != null ? type.hashCode() : 0 ); + result = 31 * result + ( scope != null ? scope.hashCode() : 0 ); + return result; + } } diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/resources/org/apache/archiva/rest/api/ArchivaRestModel.gwt.xml b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/resources/org/apache/archiva/rest/api/ArchivaRestModel.gwt.xml new file mode 100644 index 000000000..fdf93c82e --- /dev/null +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/resources/org/apache/archiva/rest/api/ArchivaRestModel.gwt.xml @@ -0,0 +1,3 @@ +<module> + <source path="model" /> +</module>
\ No newline at end of file |