You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by le...@apache.org on 2011/07/24 17:28:03 UTC
svn commit: r1150411 - in /pdfbox/trunk/preflight:
checkstyle-suppressions.xml edoc-checkstyle.xml findbugs-exclude.xml pom.xml
Author: lehmi
Date: Sun Jul 24 15:28:02 2011
New Revision: 1150411
URL: http://svn.apache.org/viewvc?rev=1150411&view=rev
Log:
PDFBOX-1056: added missing config files, integrated preflight into pdfbox build
Added:
pdfbox/trunk/preflight/checkstyle-suppressions.xml (with props)
pdfbox/trunk/preflight/edoc-checkstyle.xml (with props)
pdfbox/trunk/preflight/findbugs-exclude.xml (with props)
Modified:
pdfbox/trunk/preflight/pom.xml
Added: pdfbox/trunk/preflight/checkstyle-suppressions.xml
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/checkstyle-suppressions.xml?rev=1150411&view=auto
==============================================================================
--- pdfbox/trunk/preflight/checkstyle-suppressions.xml (added)
+++ pdfbox/trunk/preflight/checkstyle-suppressions.xml Sun Jul 24 15:28:02 2011
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!DOCTYPE suppressions PUBLIC
+ "-//Puppy Crawl//DTD Suppressions 1.0//EN"
+ "http://www.puppycrawl.com/dtds/suppressions_1_0.dtd">
+<suppressions>
+ <suppress checks=".*"
+ files="mets[\\/].*\.java"/>
+ <suppress checks=".*"
+ files="simplexades[\\/].*\.java"/>
+</suppressions>
Propchange: pdfbox/trunk/preflight/checkstyle-suppressions.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: pdfbox/trunk/preflight/edoc-checkstyle.xml
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/edoc-checkstyle.xml?rev=1150411&view=auto
==============================================================================
--- pdfbox/trunk/preflight/edoc-checkstyle.xml (added)
+++ pdfbox/trunk/preflight/edoc-checkstyle.xml Sun Jul 24 15:28:02 2011
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!--
+ This configuration file was written by the eclipse-cs plugin configuration editor
+-->
+<!--
+ Checkstyle-Configuration: checkstyle-secure-archive.xml
+ Description: none
+-->
+<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
+<module name="Checker">
+ <property name="severity" value="warning"/>
+ <module name="TreeWalker">
+ <module name="JavadocMethod"/>
+ <module name="JavadocType"/>
+ <module name="JavadocVariable">
+ <property name="excludeScope" value="private"/>
+ <property name="scope" value="nothing"/>
+ </module>
+ <module name="ConstantName"/>
+ <module name="LocalFinalVariableName"/>
+ <module name="LocalVariableName"/>
+ <module name="MemberName"/>
+ <module name="MethodName"/>
+ <module name="PackageName"/>
+ <module name="StaticVariableName"/>
+ <module name="TypeName"/>
+ <module name="AvoidStarImport"/>
+ <module name="IllegalImport"/>
+ <module name="RedundantImport"/>
+ <module name="UnusedImports"/>
+ <module name="ParameterNumber"/>
+ <module name="ParenPad"/>
+ <module name="ModifierOrder"/>
+ <module name="AvoidNestedBlocks"/>
+ <module name="EmptyBlock">
+ <property name="severity" value="error"/>
+ </module>
+ <module name="NeedBraces"/>
+ <module name="RightCurly"/>
+ <module name="DoubleCheckedLocking">
+ <property name="severity" value="error"/>
+ </module>
+ <module name="EmptyStatement"/>
+ <module name="EqualsHashCode">
+ <property name="severity" value="error"/>
+ </module>
+ <module name="HiddenField"/>
+ <module name="IllegalInstantiation"/>
+ <module name="InnerAssignment"/>
+ <module name="MagicNumber"/>
+ <module name="MissingSwitchDefault"/>
+ <module name="RedundantThrows"/>
+ <module name="SimplifyBooleanExpression"/>
+ <module name="SimplifyBooleanReturn"/>
+ <module name="DeclarationOrder"/>
+ <module name="ExplicitInitialization"/>
+ <module name="StringLiteralEquality"/>
+ <module name="SuperClone"/>
+ <module name="SuperFinalize"/>
+ <module name="FinalClass">
+ <property name="severity" value="error"/>
+ </module>
+ <module name="HideUtilityClassConstructor"/>
+ <module name="InterfaceIsType"/>
+ <module name="VisibilityModifier"/>
+ <module name="ArrayTypeStyle"/>
+ <module name="TodoComment"/>
+ <module name="ParameterName">
+ <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Parameter name"/>
+ <property name="id" value="ParameterName"/>
+ <property name="format" value="^_?[a-z][a-zA-Z0-9]*$"/>
+ </module>
+ </module>
+ <module name="PackageHtml">
+ <property name="severity" value="ignore"/>
+ </module>
+ <module name="NewlineAtEndOfFile"/>
+ <!--
+ <module name="SuppressionFilter">
+ <property name="file" value="checkstyle-suppressions.xml"/>
+ </module>
+ -->
+</module>
Propchange: pdfbox/trunk/preflight/edoc-checkstyle.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: pdfbox/trunk/preflight/findbugs-exclude.xml
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/findbugs-exclude.xml?rev=1150411&view=auto
==============================================================================
--- pdfbox/trunk/preflight/findbugs-exclude.xml (added)
+++ pdfbox/trunk/preflight/findbugs-exclude.xml Sun Jul 24 15:28:02 2011
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<FindBugsFilter>
+
+ <!-- TODO en version finale virer ce bloc -->
+ <Match>
+ <Package name="org.apache.padaf.preflight.javacc" />
+ </Match>
+
+ <Match>
+ <Package name="org.apache.padaf.preflight.javacc.stream" />
+ </Match>
+
+ <Match>
+ <Package name="org.apache.padaf.preflight.javacc.extractor" />
+ </Match>
+ <!-- TODO jusque ici -->
+
+ <Match>
+ <Package name="org.apache.padaf.preflight.javacc" />
+ <Bug pattern="NM_METHOD_NAMING_CONVENTION"/>
+ </Match>
+
+ <Match>
+ <Package name="org.apache.padaf.preflight.javacc.stream" />
+ <Bug pattern="NM_METHOD_NAMING_CONVENTION"/>
+ </Match>
+
+ <Match>
+ <Package name="org.apache.padaf.preflight.javacc.extractor" />
+ <Bug pattern="NM_METHOD_NAMING_CONVENTION"/>
+ </Match>
+
+
+ <Match>
+ <Package name="org.apache.padaf.preflight.javacc" />
+ <Bug pattern="DLS_DEAD_LOCAL_STORE"/>
+ </Match>
+
+ <Match>
+ <Package name="org.apache.padaf.preflight.javacc.stream" />
+ <Bug pattern="DLS_DEAD_LOCAL_STORE"/>
+ </Match>
+
+ <Match>
+ <Package name="org.apache.padaf.preflight.javacc.extractor" />
+ <Bug pattern="DLS_DEAD_LOCAL_STORE"/>
+ </Match>
+
+
+</FindBugsFilter>
Propchange: pdfbox/trunk/preflight/findbugs-exclude.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: pdfbox/trunk/preflight/pom.xml
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/pom.xml?rev=1150411&r1=1150410&r2=1150411&view=diff
==============================================================================
--- pdfbox/trunk/preflight/pom.xml (original)
+++ pdfbox/trunk/preflight/pom.xml Sun Jul 24 15:28:02 2011
@@ -18,237 +18,245 @@
under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <artifactId>preflight</artifactId>
- <name>PDF/A Validation</name>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>preflight</artifactId>
- <description>
- pdfa-validation is a API used to ensure a declared PDF/A-1b document
- respect all points of the ISO-19005 specification.
- </description>
-
- <parent>
- <groupId>org.apache.pdfbox</groupId>
- <artifactId>padaf-parent</artifactId>
- <version>0.6.2-SNAPSHOT</version>
- <relativePath>../padaf-parent</relativePath>
- </parent>
-
- <properties>
- <compileSource>1.6</compileSource>
- <javacPath>${user.javac6}</javacPath>
- <pdfa.valid>${user.pdfa.valid}</pdfa.valid>
- <pdfa.invalid>${user.pdfa.invalid}</pdfa.invalid>
- <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
- </properties>
-
- <build>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- <filtering>true</filtering>
- <includes>
- <include>project.version</include>
- </includes>
- </resource>
- </resources>
- <plugins>
- <plugin>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>2.2-beta-5</version>
- <configuration>
- <descriptorRefs>
- <descriptorRef>jar-with-dependencies</descriptorRef>
- </descriptorRefs>
- <archive>
- <manifest>
- <mainClass>org.apache.padaf.preflight.Validator_A1b</mainClass>
- </manifest>
- </archive>
- </configuration>
- <executions>
- <execution>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>javacc-maven-plugin</artifactId>
- <version>2.6</version>
- <executions>
- <execution>
- <id>javacc</id>
- <goals>
- <goal>javacc</goal>
- </goals>
- <configuration />
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>cobertura-maven-plugin</artifactId>
- <version>2.3</version>
- <configuration>
- <instrumentation>
- <ignores>
- <ignore>org.apache.padaf.preflight.javacc.*</ignore>
- <ignore>org.apache..padaf.preflight.javacc.extractor.*</ignore>
- </ignores>
- <excludes>
- <exclude>org/apache/padaf/preflight/javacc/**/*.class</exclude>
- </excludes>
- </instrumentation>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>clean</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-checkstyle-plugin</artifactId>
- <version>2.2</version>
- <configuration>
- <configLocation>edoc-checkstyle.xml</configLocation>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-source-plugin</artifactId>
- <version>2.1.1</version>
- <configuration>
- <attach>true</attach>
- </configuration>
- <executions>
- <execution>
- <id>attach-sources</id>
- <phase>verify</phase>
- <goals>
- <goal>jar-no-fork</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>commons-io</groupId>
- <artifactId>commons-io</artifactId>
- <version>1.4</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.pdfbox</groupId>
- <artifactId>xmpbox</artifactId>
- <version>${project.version}</version>
- </dependency>
- <!-- TODO add or automatic ? -->
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.7</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>com.lowagie</groupId>
- <artifactId>itext</artifactId>
- <version>2.1.7</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>1.2.12</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>org.pdfa</groupId>
- <artifactId>isartor</artifactId>
- <version>1.0-20080813</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>taglist-maven-plugin</artifactId>
- <version>2.4</version>
- <configuration>
- <encoding>UTF-8</encoding>
- <sourceFileLocale>en</sourceFileLocale>
- <emptyComments>false</emptyComments>
- <tagListOptions>
- <tagClasses>
- <tagClass>
- <displayName>TODO List</displayName>
- <tags>
- <tag>
- <matchString>TODO</matchString>
- <matchType>exact</matchType>
- </tag>
- <tag>
- <matchString>FIXME</matchString>
- <matchType>exact</matchType>
- </tag>
- </tags>
- </tagClass>
- </tagClasses>
- </tagListOptions>
- </configuration>
- </plugin>
-
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-checkstyle-plugin</artifactId>
- <version>2.2</version>
- <configuration>
- <configLocation>edoc-checkstyle.xml</configLocation>
- </configuration>
- </plugin>
-
-
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>cobertura-maven-plugin</artifactId>
- <version>2.3</version>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-report-plugin</artifactId>
- <version>2.6</version>
- <configuration>
- <showSuccess>true</showSuccess>
- <aggregate>true</aggregate>
- <outputDirectory>${project.reporting.outputDirectory}/surefire-report</outputDirectory>
- </configuration>
- <reportSets>
- <reportSet>
- <id />
- </reportSet>
- </reportSets>
- </plugin>
-
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>findbugs-maven-plugin</artifactId>
- <version>2.0.1</version>
- <configuration>
- <excludeFilterFile>findbugs-exclude.xml</excludeFilterFile>
- </configuration>
- </plugin>
- </plugins>
- </reporting>
+ <name>Apache preflight</name>
+ <description>
+ pdfa-validation is a API used to ensure a declared PDF/A-1b document
+ respect all points of the ISO-19005 specification.
+ </description>
+
+ <packaging>bundle</packaging>
+
+ <parent>
+ <groupId>org.apache.pdfbox</groupId>
+ <artifactId>pdfbox-parent</artifactId>
+ <version>1.7.0-SNAPSHOT</version>
+ <relativePath>../parent/pom.xml</relativePath>
+ </parent>
+
+ <properties>
+ <compileSource>1.5</compileSource>
+ <javacPath>${user.javac5}</javacPath>
+ <pdfa.valid>${user.pdfa.valid}</pdfa.valid>
+ <pdfa.invalid>${user.pdfa.invalid}</pdfa.invalid>
+ <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
+ </properties>
+
+ <build>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <filtering>true</filtering>
+ <includes>
+ <include>project.version</include>
+ </includes>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>2.0.0</version>
+ <extensions>true</extensions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2-beta-5</version>
+ <configuration>
+ <descriptorRefs>
+ <descriptorRef>jar-with-dependencies</descriptorRef>
+ </descriptorRefs>
+ <archive>
+ <manifest>
+ <mainClass>org.apache.padaf.preflight.Validator_A1b</mainClass>
+ </manifest>
+ </archive>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>javacc-maven-plugin</artifactId>
+ <version>2.6</version>
+ <executions>
+ <execution>
+ <id>javacc</id>
+ <goals>
+ <goal>javacc</goal>
+ </goals>
+ <configuration />
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin</artifactId>
+ <version>2.3</version>
+ <configuration>
+ <instrumentation>
+ <ignores>
+ <ignore>org.apache.padaf.preflight.javacc.*</ignore>
+ <ignore>org.apache.padaf.preflight.javacc.extractor.*</ignore>
+ </ignores>
+ <excludes>
+ <exclude>org/apache/padaf/preflight/javacc/**/*.class</exclude>
+ </excludes>
+ </instrumentation>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>clean</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <version>2.2</version>
+ <configuration>
+ <configLocation>edoc-checkstyle.xml</configLocation>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.1.1</version>
+ <configuration>
+ <attach>true</attach>
+ </configuration>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>jar-no-fork</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ <version>1.4</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>pdfbox</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>xmpbox</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <!-- TODO add or automatic ? -->
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.12</version>
+ <scope>compile</scope>
+ </dependency>
+ <!-- TODO find a suitable place to store the isator test pdfs
+ <dependency>
+ <groupId>org.pdfa</groupId>
+ <artifactId>isartor</artifactId>
+ <version>1.0-20080813</version>
+ <scope>test</scope>
+ </dependency>
+ -->
+ </dependencies>
+
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>taglist-maven-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <encoding>UTF-8</encoding>
+ <sourceFileLocale>en</sourceFileLocale>
+ <emptyComments>false</emptyComments>
+ <tagListOptions>
+ <tagClasses>
+ <tagClass>
+ <displayName>TODO List</displayName>
+ <tags>
+ <tag>
+ <matchString>TODO</matchString>
+ <matchType>exact</matchType>
+ </tag>
+ <tag>
+ <matchString>FIXME</matchString>
+ <matchType>exact</matchType>
+ </tag>
+ </tags>
+ </tagClass>
+ </tagClasses>
+ </tagListOptions>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <version>2.2</version>
+ <configuration>
+ <configLocation>edoc-checkstyle.xml</configLocation>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin</artifactId>
+ <version>2.3</version>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-report-plugin</artifactId>
+ <version>2.6</version>
+ <configuration>
+ <showSuccess>true</showSuccess>
+ <aggregate>true</aggregate>
+ <outputDirectory>${project.reporting.outputDirectory}/surefire-report</outputDirectory>
+ </configuration>
+ <reportSets>
+ <reportSet>
+ <id />
+ </reportSet>
+ </reportSets>
+ </plugin>
+
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>findbugs-maven-plugin</artifactId>
+ <version>2.0.1</version>
+ <configuration>
+ <excludeFilterFile>findbugs-exclude.xml</excludeFilterFile>
+ </configuration>
+ </plugin>
+ </plugins>
+ </reporting>
</project>