FIX: 'null' status attribute in module descriptor (IVY-62)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/trunk@484018 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Xavier Hanin 2005-08-17 17:46:07 +00:00
parent 16975fbcef
commit e30bbf4a37
2 changed files with 6 additions and 2 deletions

View File

@ -14,6 +14,7 @@
- new type filtering in cachepath task
- new cachefileset task: builds an ant fileset of artifacts in cache
- publish task now uses srcivypattern for ivy files finding and for delivery
- FIX: 'null' status attribute in module descriptor (IVY-62)
- FIX: report header contains incorrect link after resolve for multiple, comma-separated configurations (IVY-57)
- FIX: error retrieving dependencies with a '+' in their revision if the ivy file doesn't exist - fixed by maarten coene (IVY-59)
- FIX: trying to resolve latest with no revision in pattern caused a StackOverflowError (IVY-56)

View File

@ -41,7 +41,7 @@ public class DefaultModuleDescriptor implements ModuleDescriptor {
private ModuleRevisionId _revId;
private ModuleRevisionId _resolvedRevId;
private String _status;
private String _status = Status.DEFAULT_STATUS;
private Date _publicationDate;
private Date _resolvedPublicationDate;
private List _dependencies = new ArrayList();
@ -60,7 +60,10 @@ public class DefaultModuleDescriptor implements ModuleDescriptor {
public DefaultModuleDescriptor(ModuleRevisionId id, String status, Date pubDate, boolean isDefault) {
if (id == null) {
throw new NullPointerException("null module reivsion id not allowed");
throw new NullPointerException("null module revision id not allowed");
}
if (status == null) {
throw new NullPointerException("null status not allowed");
}
_revId = id;
_resolvedRevId = id;