Debian Codegraph @

contrib/charts/convert.bat

raw
1 @echo off
2 :: ----------------------------------------------------------------------------
3 ::
4 :: Licensed to the Apache Software Foundation (ASF) under one or more
5 :: contributor license agreements. See the NOTICE file distributed with
6 :: this work for additional information regarding copyright ownership.
7 :: The ASF licenses this file to You under the Apache License, Version 2.0
8 :: (the "License"); you may not use this file except in compliance with
9 :: the License. You may obtain a copy of the License at
10 ::
11 :: http://www.apache.org/licenses/LICENSE-2.0
12 ::
13 :: Unless required by applicable law or agreed to in writing, software
14 :: distributed under the License is distributed on an "AS IS" BASIS,
15 :: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 :: See the License for the specific language governing permissions and
17 :: limitations under the License.
18 ::
19 :: $Id$
20 :: ----------------------------------------------------------------------------
21
22 if '%1'=='' goto usage
23
24 set LOCALCLASSPATH=.
25 for %%1 in (..\..\lib\build\xalan*.jar) do call lcp.bat %%1
26 for %%1 in (..\..\lib\build\xerces*.jar) do call lcp.bat %%1
27
28 echo Using classpath: %LOCALCLASSPATH%
29
30 java -classpath %LOCALCLASSPATH% -Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl org.apache.xalan.xslt.Process -IN xml\%1.xml -XSL xsl\%2.xsl -OUT out\%1-%2.svg -EDUMP
31 goto end
32
33 :usage
34 echo.
35 echo Usage: convert.bat xml-filename xslt-stylesheet
36 echo.
37 echo Example: convert.bat data bar
38 echo Will convert file xml\data.xml with stylesheet xsl\bar.xsl into out\data-bar.svg
39
40 :end
41 echo.
42 echo have a nice day ;-)