diff options
author | Brett Porter <brett@apache.org> | 2009-03-06 08:26:30 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2009-03-06 08:26:30 +0000 |
commit | 497493a78bbc677d978ad3f7a46ca309130e0d74 (patch) | |
tree | d4c2def51ee3fe4bb97b3e587116ab560041b366 /archiva-modules | |
parent | 32c2577fa0e82ff0fe5916c7c6eb7baf4a6b58b3 (diff) | |
download | archiva-497493a78bbc677d978ad3f7a46ca309130e0d74.tar.gz archiva-497493a78bbc677d978ad3f7a46ca309130e0d74.zip |
[MRM-1073] restore backwards compatibility of model
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@750808 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules')
-rwxr-xr-x | archiva-modules/archiva-base/archiva-model/pom.xml | 2 | ||||
-rw-r--r-- | archiva-modules/archiva-base/archiva-model/src/main/mdo/archiva-base.xml | 52 |
2 files changed, 25 insertions, 29 deletions
diff --git a/archiva-modules/archiva-base/archiva-model/pom.xml b/archiva-modules/archiva-base/archiva-model/pom.xml index 08d05a6ca..16288f304 100755 --- a/archiva-modules/archiva-base/archiva-model/pom.xml +++ b/archiva-modules/archiva-base/archiva-model/pom.xml @@ -60,7 +60,7 @@ <groupId>org.codehaus.modello</groupId> <artifactId>modello-maven-plugin</artifactId> <configuration> - <version>1.0.0</version> + <version>1.2.0</version> <packageWithVersion>false</packageWithVersion> <models> <model>src/main/mdo/archiva-base.xml</model> diff --git a/archiva-modules/archiva-base/archiva-model/src/main/mdo/archiva-base.xml b/archiva-modules/archiva-base/archiva-model/src/main/mdo/archiva-base.xml index 3c2887d38..656b0e782 100644 --- a/archiva-modules/archiva-base/archiva-model/src/main/mdo/archiva-base.xml +++ b/archiva-modules/archiva-base/archiva-model/src/main/mdo/archiva-base.xml @@ -1,11 +1,11 @@ <?xml version="1.0" ?> <model jpox.mapping-in-package="true" jpox.table-prefix="ARCHIVA_" - xsd.namespace="http://maven.apache.org/archiva/MODEL-1.0.0" - xsd.target-namespace="http://maven.apache.org/archiva/MODEL-1.0.0"> + xsd.namespace="http://archiva.apache.org/model/1.2.0" + xsd.target-namespace="http://archiva.apache.org/model/1.2.0"> <id>archiva-base-model</id> <name>ArchivaBaseModel</name> - <version>1.0.0</version> + <version>1.2.0</version> <description>Archiva Model</description> <defaults> <default> @@ -407,7 +407,7 @@ <type>Date</type> <required>false</required> <description> - When this artifact was gathered or disovered from the repository. + When this artifact was gathered or discovered from the repository. </description> </field> </fields> @@ -611,20 +611,20 @@ ]]></code> </codeSegment> <codeSegment> - <version>1.0.0</version> + <version>1.0.0+</version> <code> - public void updateTimestamp() - { - setLastUpdatedTimestamp( new java.util.Date() ); - } + public void updateTimestamp() + { + setLastUpdatedTimestamp( new java.util.Date() ); + } - public void setLastUpdatedTimestamp( java.util.Date date ) - { - java.util.TimeZone timezone = java.util.TimeZone.getTimeZone( "UTC" ); - java.text.DateFormat fmt = new java.text.SimpleDateFormat( "yyyyMMddHHmmss" ); - fmt.setTimeZone( timezone ); - setLastUpdated( fmt.format( date ) ); - } + public void setLastUpdatedTimestamp( java.util.Date date ) + { + java.util.TimeZone timezone = java.util.TimeZone.getTimeZone( "UTC" ); + java.text.DateFormat fmt = new java.text.SimpleDateFormat( "yyyyMMddHHmmss" ); + fmt.setTimeZone( timezone ); + setLastUpdated( fmt.format( date ) ); + } </code> </codeSegment> </codeSegments> @@ -2203,41 +2203,37 @@ The number of new files discovered. </description> </field> - <field> + <field jpox.null-value="default"> <name>totalProjectCount</name> - <version>1.0.0+</version> + <version>1.2.0+</version> <identifier>false</identifier> - <required>true</required> <type>long</type> <description> The total number of unique projects in the repository. </description> </field> - <field> + <field jpox.null-value="default"> <name>totalGroupCount</name> - <version>1.0.0+</version> + <version>1.2.0+</version> <identifier>false</identifier> - <required>true</required> <type>long</type> <description> The total number of unique groups in the repository. </description> </field> - <field> + <field jpox.null-value="default"> <name>totalArtifactCount</name> - <version>1.0.0+</version> + <version>1.2.0+</version> <identifier>false</identifier> - <required>true</required> <type>long</type> <description> The total number of artifacts in the repository. </description> </field> - <field> + <field jpox.null-value="default"> <name>totalSize</name> - <version>1.0.0+</version> + <version>1.2.0+</version> <identifier>false</identifier> - <required>true</required> <type>long</type> <description> The total size in bytes of the repository. |