[infinispan-commits] Infinispan SVN: r669 - in trunk/tools: src/main/java/org/infinispan/tools/schema and 1 other directory.
infinispan-commits at lists.jboss.org
infinispan-commits at lists.jboss.org
Thu Aug 13 09:22:00 EDT 2009
Author: vblagojevic at jboss.com
Date: 2009-08-13 09:22:00 -0400 (Thu, 13 Aug 2009)
New Revision: 669
Removed:
trunk/tools/src/main/java/org/infinispan/tools/schema/JaxbSchemaGenerator.java
Modified:
trunk/tools/pom.xml
Log:
remove jaxb schema creation
Modified: trunk/tools/pom.xml
===================================================================
--- trunk/tools/pom.xml 2009-08-13 13:18:41 UTC (rev 668)
+++ trunk/tools/pom.xml 2009-08-13 13:22:00 UTC (rev 669)
@@ -100,28 +100,4 @@
</dependencies>
</profile>
</profiles>
- <build>
- <plugins>
- <!--
- Generates XML schema for Infinispan configuration files
- Run with mvn exec:java
- For more details see:
- http://mojo.codehaus.org/exec-maven-plugin/usage.html -->
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>1.1</version>
- <executions>
- <execution>
- <goals>
- <goal>java</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <mainClass>org.infinispan.tools.schema.JaxbSchemaGenerator</mainClass>
- </configuration>
- </plugin>
- </plugins>
- </build>
</project>
Deleted: trunk/tools/src/main/java/org/infinispan/tools/schema/JaxbSchemaGenerator.java
===================================================================
--- trunk/tools/src/main/java/org/infinispan/tools/schema/JaxbSchemaGenerator.java 2009-08-13 13:18:41 UTC (rev 668)
+++ trunk/tools/src/main/java/org/infinispan/tools/schema/JaxbSchemaGenerator.java 2009-08-13 13:22:00 UTC (rev 669)
@@ -1,54 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2009, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.infinispan.tools.schema;
-
-import java.io.File;
-import java.io.IOException;
-
-import javax.xml.bind.JAXBContext;
-import javax.xml.bind.SchemaOutputResolver;
-import javax.xml.transform.Result;
-import javax.xml.transform.stream.StreamResult;
-
-import org.infinispan.Version;
-import org.infinispan.config.InfinispanConfiguration;
-
-/**
- * Generates XML schema using JAXB annotations from our configuration class hierarchy.
- *
- * @author Vladimir Blagojevic
- * @since 4.0
- */
-public class JaxbSchemaGenerator {
-
- public static void main(String[] args) throws Exception {
- final File baseDir = new File(".");
- class InfinispanSchemaOutputResolver extends SchemaOutputResolver {
- public Result createOutput( String namespaceUri, String suggestedFileName ) throws IOException {
- return new StreamResult(new File(baseDir,"infinispan-config-" +Version.getMajorVersion()+ ".xsd"));
- }
- }
- JAXBContext context = JAXBContext.newInstance(InfinispanConfiguration.class);
- context.generateSchema(new InfinispanSchemaOutputResolver());
- }
-
-}
More information about the infinispan-commits
mailing list