forked from spepping/fop-cs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
72 changed files
with
2,615 additions
and
461 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
@ECHO OFF | ||
REM Licensed to the Apache Software Foundation (ASF) under one or more | ||
REM contributor license agreements. See the NOTICE file distributed with | ||
REM this work for additional information regarding copyright ownership. | ||
REM The ASF licenses this file to You under the Apache License, Version 2.0 | ||
REM (the "License"); you may not use this file except in compliance with | ||
REM the License. You may obtain a copy of the License at | ||
REM | ||
REM http://www.apache.org/licenses/LICENSE-2.0 | ||
REM | ||
REM Unless required by applicable law or agreed to in writing, software | ||
REM distributed under the License is distributed on an "AS IS" BASIS, | ||
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
REM See the License for the specific language governing permissions and | ||
REM limitations under the License. | ||
REM $Id$ | ||
|
||
SETLOCAL ENABLEDELAYEDEXPANSION | ||
|
||
rem %~dp0 is the expanded pathname of the current script under NT | ||
set LOCAL_FOP_HOME= | ||
if "%OS%"=="Windows_NT" set LOCAL_FOP_HOME="%~dp0" | ||
|
||
rem Code from Apache Ant project | ||
rem Slurp the command line arguments. This loop allows for an unlimited number | ||
rem of arguments (up to the command line limit, anyway). | ||
rem Could also do a "shift" and "%*" for all params, but apparently doesn't work | ||
rem with Win9x. | ||
set FOP_CMD_LINE_ARGS=%1 | ||
if ""%1""=="""" goto doneStart | ||
shift | ||
:setupArgs | ||
if ""%1""=="""" goto doneStart | ||
set FOP_CMD_LINE_ARGS=%FOP_CMD_LINE_ARGS% %1 | ||
shift | ||
goto setupArgs | ||
rem This label provides a place for the argument list loop to break out | ||
rem and for NT handling to skip to. | ||
:doneStart | ||
|
||
set LOGCHOICE= | ||
rem The default commons logger for JDK1.4 is JDK1.4Logger. | ||
rem To use a different logger, uncomment the one desired below | ||
rem set LOGCHOICE=-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog | ||
rem set LOGCHOICE=-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog | ||
rem set LOGCHOICE=-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger | ||
|
||
set LOGLEVEL= | ||
rem Logging levels | ||
rem Below option is only if you are using SimpleLog instead of the default JDK1.4 Logger. | ||
rem To set logging levels for JDK 1.4 Logger, edit the %JAVA_HOME%\JRE\LIB\logging.properties | ||
rem file instead. | ||
rem Possible SimpleLog values: "trace", "debug", "info" (default), "warn", "error", or "fatal". | ||
rem set LOGLEVEL=-Dorg.apache.commons.logging.simplelog.defaultlog=INFO | ||
|
||
set LIBDIR=%LOCAL_FOP_HOME%lib | ||
|
||
set LOCALCLASSPATH=%FOP_HYPHENATION_PATH% | ||
for %%l in (%LOCAL_FOP_HOME%build\*.jar %LIBDIR%\*.jar) do set LOCALCLASSPATH=!LOCALCLASSPATH!;%%l | ||
|
||
set JAVAOPTS=-Denv.windir=%WINDIR% | ||
|
||
if "%JAVA_HOME%" == "" goto noJavaHome | ||
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome | ||
if "%JAVACMD%" == "" set JAVACMD=%JAVA_HOME%\bin\java | ||
goto runFop | ||
|
||
:noJavaHome | ||
if "%JAVACMD%" == "" set JAVACMD=java | ||
|
||
:runFop | ||
rem echo "%JAVACMD%" %LOGCHOICE% %LOGLEVEL% -cp "%LOCALCLASSPATH%" org.apache.fop.cli.Main %FOP_CMD_LINE_ARGS% | ||
"%JAVACMD%" %JAVAOPTS% %LOGCHOICE% %LOGLEVEL% -cp "%LOCALCLASSPATH%" %FOP_OPTS% org.apache.fop.cli.Main %FOP_CMD_LINE_ARGS% | ||
|
||
ENDLOCAL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version="1.0"?> | ||
<project xmlns:jacoco="antlib:org.jacoco.ant" name="JaCoCo" default="coverage-report"> | ||
<import file="build.xml"/> | ||
<property name="jacoco.report.dir" value="${build.dir}/report_jacoco"/> | ||
<taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml"> | ||
<classpath location="${jacocoant.jar}"/> | ||
</taskdef> | ||
<target name="test-coverage" depends="junit-compile, setup-xml-schema"> | ||
<jacoco:coverage destfile="${jacoco.report.dir}/jacoco.exec"> | ||
<junit dir="${basedir}" haltonfailure="yes" fork="on" forkmode="once"> | ||
<sysproperty key="jawa.awt.headless" value="true"/> | ||
<classpath> | ||
<path refid="standard-junit-classpath"/> | ||
</classpath> | ||
<batchtest> | ||
<fileset dir="${build.unit.tests.dir}" includes="**/*TestCase.class"/> | ||
</batchtest> | ||
</junit> | ||
</jacoco:coverage> | ||
</target> | ||
<target name="coverage-report" depends="test-coverage" | ||
description="Runs JaCoCo for a code coverage report"> | ||
<jacoco:report> | ||
<executiondata> | ||
<file file="${jacoco.report.dir}/jacoco.exec"/> | ||
</executiondata> | ||
<structure name="Apache FOP"> | ||
<classfiles> | ||
<fileset dir="${build.classes.dir}"/> | ||
</classfiles> | ||
<sourcefiles> | ||
<fileset dir="${src.java.dir}"/> | ||
</sourcefiles> | ||
</structure> | ||
<html destdir="${jacoco.report.dir}"/> | ||
</jacoco:report> | ||
</target> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
BSD License | ||
|
||
Copyright (c) 2000-2006, www.hamcrest.org | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
Redistributions of source code must retain the above copyright notice, this list of | ||
conditions and the following disclaimer. Redistributions in binary form must reproduce | ||
the above copyright notice, this list of conditions and the following disclaimer in | ||
the documentation and/or other materials provided with the distribution. | ||
|
||
Neither the name of Hamcrest nor the names of its contributors may be used to endorse | ||
or promote products derived from this software without specific prior written | ||
permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY | ||
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT | ||
SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED | ||
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR | ||
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY | ||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH | ||
DAMAGE. |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License | ||
|
||
Copyright (c) 2007 Mockito contributors | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Mockito license - MIT. | ||
|
||
Libraries used: | ||
|
||
Cglib - Apache License 2.0 | ||
ASM - BSD license | ||
|
||
Mockito all distribution: | ||
|
||
Objenesis - MIT license | ||
Hamcrest - BSD license |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Copyright (c) 2003-2008, Objenesis Team and all contributors | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
the Software, and to permit persons to whom the Software is furnished to do so, | ||
subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.