org.eclipse.persistence.jaxb.xjc.MOXyXJC Maven / Gradle / Ivy
/*
* Copyright (c) 1998, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
*/
// Contributors:
// dclarke - Example MOXy XJC implementation
package org.eclipse.persistence.jaxb.xjc;
import java.io.File;
import java.io.FileWriter;
import org.xml.sax.SAXParseException;
import com.sun.tools.xjc.*;
/**
* Custom XJC implementation that ensures the EclipseLink MOXy-specific
* jaxb.properties file is generated in the package where the classes are
* created.
*
* @author dclarke
* @author rbarkhouse
* @since EclipseLink 1.1.2
*/
public class MOXyXJC {
private MOXyXJC() {
}
/**
* Entry point
* @param args arguments
* @throws Throwable for errors
*/
public static void main(String[] args) throws Throwable {
Listener listener = new Listener();
int compileSuccess = -1;
try {
for(int x=0; x