source: osm/applications/editors/josm/plugins/00_tools/jaxb-ri/bin/xjc.bat@ 35013

Last change on this file since 35013 was 35013, checked in by donvip, 5 years ago

upgrade to Eclipse JAXB 2.3.2

  • Property svn:executable set to *
File size: 2.6 KB
Line 
1@echo off
2
3REM
4REM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
5REM
6REM Copyright (c) 1997-2017 Oracle and/or its affiliates. All rights reserved.
7REM
8REM The contents of this file are subject to the terms of either the GNU
9REM General Public License Version 2 only ("GPL") or the Common Development
10REM and Distribution License("CDDL") (collectively, the "License"). You
11REM may not use this file except in compliance with the License. You can
12REM obtain a copy of the License at
13REM https://oss.oracle.com/licenses/CDDL+GPL-1.1
14REM or LICENSE.txt. See the License for the specific
15REM language governing permissions and limitations under the License.
16REM
17REM When distributing the software, include this License Header Notice in each
18REM file and include the License file at LICENSE.txt.
19REM
20REM GPL Classpath Exception:
21REM Oracle designates this particular file as subject to the "Classpath"
22REM exception as provided by Oracle in the GPL Version 2 section of the License
23REM file that accompanied this code.
24REM
25REM Modifications:
26REM If applicable, add the following below the License Header, with the fields
27REM enclosed by brackets [] replaced by your own identifying information:
28REM "Portions Copyright [year] [name of copyright owner]"
29REM
30REM Contributor(s):
31REM If you wish your version of this file to be governed by only the CDDL or
32REM only the GPL Version 2, indicate your decision by adding "[Contributor]
33REM elects to include this software in this distribution under the [CDDL or GPL
34REM Version 2] license." If you don't indicate a single choice of license, a
35REM recipient has the option to distribute your version of this file under
36REM either the CDDL, the GPL Version 2 or to extend the choice of license to
37REM its licensees as provided above. However, if you add GPL Version 2 code
38REM and therefore, elected the GPL Version 2 license, then the option applies
39REM only if the new code is made subject to such option by the copyright
40REM holder.
41REM
42
43rem
44rem Make sure that JAXB_HOME and JAVA_HOME are set
45rem
46if not "%JAXB_HOME%" == "" goto CHECKJAVAHOME
47
48rem Try to locate JAXB_HOME
49set JAXB_HOME=%~dp0
50set JAXB_HOME=%JAXB_HOME%\..
51if exist "%JAXB_HOME%\lib\jaxb-xjc.jar" goto CHECKJAVAHOME
52
53rem Unable to find it
54echo JAXB_HOME must be set before running this script
55goto END
56
57:CHECKJAVAHOME
58if not "%JAVA_HOME%" == "" goto USE_JAVA_HOME
59
60set JAVA=java
61goto LAUNCHXJC
62
63:USE_JAVA_HOME
64set JAVA="%JAVA_HOME%\bin\java"
65goto LAUNCHXJC
66
67:LAUNCHXJC
68%JAVA% %XJC_OPTS% -cp "%JAXB_HOME%\lib\*" com.sun.tools.xjc.XJCFacade %*
69
70:END
71%COMSPEC% /C exit %ERRORLEVEL%
Note: See TracBrowser for help on using the repository browser.