Permalink
Browse files

move this module to a better place

  • Loading branch information...
1 parent 23beeac commit af9abdaa91cbc08f7182668b471da2c33e8b53ba @olamy olamy committed Feb 15, 2013
Showing with 1 addition and 1,354 deletions.
  1. +1 −0 modello-plugins/pom.xml
  2. +0 −154 spring-registry/modello-plugin-redback-registry/pom.xml
  3. +0 −60 ...c/main/java/org/apache/archiva/redback/components/registry/modello/AbstractRegistryGenerator.java
  4. +0 −39 ...src/main/java/org/apache/archiva/redback/components/registry/modello/RegistryReaderGenerator.java
  5. +0 −39 ...src/main/java/org/apache/archiva/redback/components/registry/modello/RegistryWriterGenerator.java
  6. +0 −45 spring-registry/modello-plugin-redback-registry/src/main/resources/META-INF/plexus/components.xml
  7. +0 −141 .../src/main/resources/org/apache/archiva/redback/components/registry/modello/RegistryReader.java.vm
  8. +0 −161 .../src/main/resources/org/apache/archiva/redback/components/registry/modello/RegistryWriter.java.vm
  9. +0 −153 ...ava/org/apache/archiva/redback/components/registry/modello/AbstractRegistryGeneratorTestCase.java
  10. +0 −41 ...test/java/org/apache/archiva/redback/components/registry/modello/RegistryReaderGeneratorTest.java
  11. +0 −41 ...test/java/org/apache/archiva/redback/components/registry/modello/RegistryWriterGeneratorTest.java
  12. +0 −155 spring-registry/modello-plugin-redback-registry/src/test/resources/model.mdo
  13. +0 −97 ...ry/modello-plugin-redback-registry/src/test/verifiers/registry-reader/RegistryReaderVerifier.java
  14. +0 −26 spring-registry/modello-plugin-redback-registry/src/test/verifiers/registry-reader/test.properties
  15. +0 −51 spring-registry/modello-plugin-redback-registry/src/test/verifiers/registry-reader/test.xml
  16. +0 −150 ...ry/modello-plugin-redback-registry/src/test/verifiers/registry-writer/RegistryWriterVerifier.java
  17. +0 −1 spring-registry/pom.xml
View
@@ -57,6 +57,7 @@
<module>modello-db-keywords</module>
<module>modello-plugin-store</module>
<module>modello-plugin-jpox</module>
+ <module>modello-plugin-redback-registry</module>
</modules>
<dependencyManagement>
@@ -1,154 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
- ~ 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.
- -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <groupId>org.apache.archiva.redback.components.registry</groupId>
- <artifactId>spring-registry</artifactId>
- <version>2.1-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>modello-plugin-redback-registry</artifactId>
- <name>Redback Registry Reader/Writer</name>
-
- <url>http://archiva.apache.org/redback/components/spring-registry/${project.artifactId}</url>
-
- <distributionManagement>
- <site>
- <id>apache.website</id>
- <url>file://${user.home}/redback-components-site-deploy/spring-registry/${project.artifactId}</url>
- </site>
- </distributionManagement>
-
- <dependencies>
- <dependency>
- <groupId>org.codehaus.modello</groupId>
- <artifactId>modello-plugin-store</artifactId>
- <version>1.0-alpha-21</version>
- <exclusions>
- <exclusion>
- <groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-component-api</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.codehaus.modello</groupId>
- <artifactId>modello-test</artifactId>
- <version>1.0-alpha-21</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.archiva.redback.components.registry</groupId>
- <artifactId>spring-registry-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.archiva.redback.components.registry</groupId>
- <artifactId>spring-registry-commons</artifactId>
- </dependency>
- <dependency>
- <groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-component-api</artifactId>
- <version>1.0-alpha-33</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-container-default</artifactId>
- <version>1.0-alpha-33</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-compiler-api</artifactId>
- <version>2.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-compiler-javac</artifactId>
- <version>2.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- <!-- dependencies needed by AbstractRegistryGeneratorTestCase -->
- <dependency>
- <groupId>commons-collections</groupId>
- <artifactId>commons-collections</artifactId>
- <version>3.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-context</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-simple</artifactId>
- <version>${slf4jVersion}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>commons-configuration</groupId>
- <artifactId>commons-configuration</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>commons-lang</groupId>
- <artifactId>commons-lang</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- <version>1.0.4</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>xerces</groupId>
- <artifactId>xercesImpl</artifactId>
- <version>2.9.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <systemPropertyVariables>
- <registryVersion>${project.version}</registryVersion>
- <slf4jVersion>${slf4jVersion}</slf4jVersion>
- <springVersion>${springVersion}</springVersion>
- </systemPropertyVariables>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
-</project>
@@ -1,60 +0,0 @@
-package org.apache.archiva.redback.components.registry.modello;
-
-/*
- * 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.
- */
-
-import org.apache.velocity.context.Context;
-import org.codehaus.modello.ModelloException;
-import org.codehaus.modello.model.Model;
-import org.codehaus.modello.plugin.store.AbstractVelocityModelloGenerator;
-
-import java.util.Properties;
-
-public abstract class AbstractRegistryGenerator
- extends AbstractVelocityModelloGenerator
-{
- protected void generate( Model model, Properties parameters, String outputType )
- throws ModelloException
- {
- initialize( model, parameters );
-
- // Initialize the Velocity context
-
- String packageName;
- if ( isPackageWithVersion() )
- {
- packageName = model.getDefaultPackageName( true, getGeneratedVersion() );
- }
- else
- {
- packageName = model.getDefaultPackageName( false, null );
- }
-
- packageName += ".io.registry";
-
- Context context = makeStubVelocityContext( model, getGeneratedVersion(), packageName );
-
-
- // Generate the reader
- String className = model.getName() + outputType;
-
- writeClass( getClass().getPackage().getName().replaceAll( "\\.", "/" ) + "/" + outputType + ".java.vm",
- getOutputDirectory(), packageName, className, context );
- }
-}
@@ -1,39 +0,0 @@
-package org.apache.archiva.redback.components.registry.modello;
-
-/*
- * 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.
- */
-
-import org.codehaus.modello.ModelloException;
-import org.codehaus.modello.model.Model;
-
-import java.util.Properties;
-
-/**
- * @author <a href="mailto:brett@apache.org">Brett Porter</a>
- *
- */
-public class RegistryReaderGenerator
- extends AbstractRegistryGenerator
-{
- public void generate( Model model, Properties parameters )
- throws ModelloException
- {
- generate( model, parameters, "RegistryReader" );
- }
-}
@@ -1,39 +0,0 @@
-package org.apache.archiva.redback.components.registry.modello;
-
-/*
- * 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.
- */
-
-import org.codehaus.modello.ModelloException;
-import org.codehaus.modello.model.Model;
-
-import java.util.Properties;
-
-/**
- * @author <a href="mailto:brett@apache.org">Brett Porter</a>
- *
- */
-public class RegistryWriterGenerator
- extends AbstractRegistryGenerator
-{
- public void generate( Model model, Properties parameters )
- throws ModelloException
- {
- generate( model, parameters, "RegistryWriter" );
- }
-}
@@ -1,45 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
- ~ 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>
- <component>
- <role>org.codehaus.modello.plugin.ModelloGenerator</role>
- <role-hint>registry-reader</role-hint>
- <implementation>org.apache.archiva.redback.components.registry.modello.RegistryReaderGenerator</implementation>
- <requirements>
- <requirement>
- <role>org.codehaus.plexus.velocity.VelocityComponent</role>
- </requirement>
- </requirements>
- </component>
- <component>
- <role>org.codehaus.modello.plugin.ModelloGenerator</role>
- <role-hint>registry-writer</role-hint>
- <implementation>org.apache.archiva.redback.components.registry.modello.RegistryWriterGenerator</implementation>
- <requirements>
- <requirement>
- <role>org.codehaus.plexus.velocity.VelocityComponent</role>
- </requirement>
- </requirements>
- </component>
- </components>
-</component-set>
Oops, something went wrong.

0 comments on commit af9abda

Please sign in to comment.