johallar / xsd2thrift

This tool allows for converting XML Schema files (.xsd) to Thrift (.thrift) and Protocol Buffers (.proto).

Home Page:http://tranchis.github.com/xsd2thrift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XSD2THRIFT Build Status

This tool allows for converting XML Schema files (.xsd) to Thrift (.thrift) and Protocol Buffers (.proto).

Binary download

Version 1.0

Importing from Maven

<repositories>
  <repository>
    <id>xsd2thrift</id>
    <url>http://dl.bintray.com/content/tranchis/xsd2thrift</url>
  </repository>
</repositories>

<dependency>
  <groupid>com.github.tranchis</groupid>
  <artifactid>xsd2thrift</artifactid>
  <version>1.0</version>
  <type>jar</type>
</dependency>

Building

To build xsd2thrift, you need Maven (http://maven.apache.org/) installed. To build xsd2thrift, run mvn install.

xsd2thrift has been tested on Java SE 6.

Usage

Usage: java xsd2thrift.jar [--thrift] [--protobuf] [--output=FILENAME] [--package=NAME] filename.xsd

--thrift               : convert to Thrift
--protobuf             : convertingonvert to Protocol Buffers
--output=FILENAME      : store the result in FILENAME instead of standard output
--package=NAME         : set namespace/package of the output file
--nestEnums=true|false : nest enum declaration within messages that reference them, only supported by protobuf,
                         defaults to true

License

The code contributed for this package is licensed under LGPL v3 (see LICENSE).

XSOM is covered by GPL v2 with classpath exception (see LICENSE-xsom.1).

XSOM internally uses an URI class, which is copyrighted by Thai Open Source Center (see LICENSE-xsom.2).

Contact

Any feedback will be greatly appreciated, at the GitHub project page (http://github.com/tranchis/xsd2thrift) or at tranchis_-AT-_gmail.com.

Contributors (@github.com)

  • tranchis
  • Fred-dy-
  • pfisterer
  • wesyoung
  • dabble
  • ae589

About

This tool allows for converting XML Schema files (.xsd) to Thrift (.thrift) and Protocol Buffers (.proto).

http://tranchis.github.com/xsd2thrift

License:GNU Lesser General Public License v3.0


Languages

Language:Java 67.8%Language:Groff 32.2%