fix license headers in plugin store
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1414985 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/modello-plugin-store/pom.xml b/modello-plugin-store/pom.xml
index e817612..e3b44f3 100644
--- a/modello-plugin-store/pom.xml
+++ b/modello-plugin-store/pom.xml
@@ -30,6 +30,17 @@
<dependencies>
<dependency>
+ <groupId>org.codehaus.modello</groupId>
+ <artifactId>modello-core</artifactId>
+ <version>1.6</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.modello</groupId>
+ <artifactId>modello-test</artifactId>
+ <version>1.6</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-velocity</artifactId>
<version>1.1.4</version>
diff --git a/modello-plugin-store/src/main/java/org/codehaus/modello/plugin/store/metadata/StoreMetadataPlugin.java b/modello-plugin-store/src/main/java/org/codehaus/modello/plugin/store/metadata/StoreMetadataPlugin.java
index c19cf84..26abae1 100644
--- a/modello-plugin-store/src/main/java/org/codehaus/modello/plugin/store/metadata/StoreMetadataPlugin.java
+++ b/modello-plugin-store/src/main/java/org/codehaus/modello/plugin/store/metadata/StoreMetadataPlugin.java
@@ -24,11 +24,13 @@
import org.codehaus.modello.metadata.AssociationMetadata;
import org.codehaus.modello.metadata.ClassMetadata;
import org.codehaus.modello.metadata.FieldMetadata;
+import org.codehaus.modello.metadata.InterfaceMetadata;
import org.codehaus.modello.metadata.ModelMetadata;
import org.codehaus.modello.model.Model;
import org.codehaus.modello.model.ModelAssociation;
import org.codehaus.modello.model.ModelClass;
import org.codehaus.modello.model.ModelField;
+import org.codehaus.modello.model.ModelInterface;
import org.codehaus.plexus.util.StringUtils;
import java.util.Collections;
@@ -54,6 +56,13 @@
return new StoreModelMetadata();
}
+ public InterfaceMetadata getInterfaceMetadata( ModelInterface modelInterface, Map<String, String> stringStringMap )
+ throws ModelloException
+ {
+ // TODO implements ?
+ return null;
+ }
+
public ClassMetadata getClassMetadata( ModelClass clazz, Map data )
throws ModelloException
{
diff --git a/modello-plugin-store/src/main/resources/META-INF/plexus/components.xml b/modello-plugin-store/src/main/resources/META-INF/plexus/components.xml
index 8920212..ed643f8 100644
--- a/modello-plugin-store/src/main/resources/META-INF/plexus/components.xml
+++ b/modello-plugin-store/src/main/resources/META-INF/plexus/components.xml
@@ -1,3 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
<component-set>
<components>
diff --git a/modello-plugin-store/src/main/resources/org/codehaus/modello/plugin/store/templates/Store.vm b/modello-plugin-store/src/main/resources/org/codehaus/modello/plugin/store/templates/Store.vm
index 31bca4b..17cb6a9 100644
--- a/modello-plugin-store/src/main/resources/org/codehaus/modello/plugin/store/templates/Store.vm
+++ b/modello-plugin-store/src/main/resources/org/codehaus/modello/plugin/store/templates/Store.vm
@@ -1,5 +1,21 @@
package ${package};
+##
+## Copyright 2001-2005 The Apache Software Foundation.
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+## http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+
/**
* Generated storage mechanism for the $model.name model.
*
diff --git a/modello-plugin-store/src/main/resources/org/codehaus/modello/plugin/store/templates/StoreException.vm b/modello-plugin-store/src/main/resources/org/codehaus/modello/plugin/store/templates/StoreException.vm
index 7f7650d..da4fbdb 100644
--- a/modello-plugin-store/src/main/resources/org/codehaus/modello/plugin/store/templates/StoreException.vm
+++ b/modello-plugin-store/src/main/resources/org/codehaus/modello/plugin/store/templates/StoreException.vm
@@ -1,5 +1,21 @@
package ${package};
+##
+## Copyright 2001-2005 The Apache Software Foundation.
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+## http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+
/**
* Generated exception for the store for the $model.name model.
*
diff --git a/modello-plugin-store/src/test/java/org/codehaus/modello/plugin/store/StoreModelloGeneratorTest.java b/modello-plugin-store/src/test/java/org/codehaus/modello/plugin/store/StoreModelloGeneratorTest.java
index bb09e47..cb7a173 100644
--- a/modello-plugin-store/src/test/java/org/codehaus/modello/plugin/store/StoreModelloGeneratorTest.java
+++ b/modello-plugin-store/src/test/java/org/codehaus/modello/plugin/store/StoreModelloGeneratorTest.java
@@ -1,25 +1,22 @@
package org.codehaus.modello.plugin.store;
/*
- * Copyright (c) 2005, Codehaus.org
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
import org.codehaus.modello.AbstractModelloGeneratorTest;
@@ -51,7 +48,7 @@
Properties parameters = new Properties();
- parameters.setProperty( ModelloParameterConstants.OUTPUT_DIRECTORY, getGeneratedSources().getAbsolutePath() );
+ parameters.setProperty( ModelloParameterConstants.OUTPUT_DIRECTORY, getOutputDirectory().getPath() );
parameters.setProperty( ModelloParameterConstants.VERSION, "4.0.0" );
diff --git a/modello-plugin-store/src/test/resources/mergere-tissue.mdo b/modello-plugin-store/src/test/resources/mergere-tissue.mdo
index 390d005..2d54cf5 100644
--- a/modello-plugin-store/src/test/resources/mergere-tissue.mdo
+++ b/modello-plugin-store/src/test/resources/mergere-tissue.mdo
@@ -1,3 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
<model>
<id>tissue</id>
<name>Tissue</name>