New Upstream Release - cssparser
Ready changes
Summary
Merged new upstream version: 0.9.30 (was: 0.9.29).
Resulting package
Built on 2023-08-04T12:37 (took 5m54s)
The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:
apt install -t fresh-releases libcssparser-java
Lintian Result
Diff
diff --git a/LICENSE.txt b/LICENSE.txt
deleted file mode 100644
index ade750b..0000000
--- a/LICENSE.txt
+++ /dev/null
@@ -1,177 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
diff --git a/checkstyle.xml b/checkstyle.xml
deleted file mode 100644
index d3a8ecb..0000000
--- a/checkstyle.xml
+++ /dev/null
@@ -1,229 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE module PUBLIC
- "-//Puppy Crawl//DTD Check Configuration 1.3//EN"
- "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
-
-<module name="Checker">
-
- <!-- Suppresses certain checks. -->
- <module name="SuppressionFilter">
- <property name="file" value="${checkstyle.suppressions.file}"/>
- </module>
-
- <!-- Checks that a package.html file exists for each package. -->
- <!-- See http://checkstyle.sf.net/config_javadoc.html#JavadocPackage -->
-<!--
- <module name="JavadocPackage">
- <property name="allowLegacy" value="true"/>
- </module>
- -->
-
- <!-- Checks whether files end with a new line. -->
- <!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->
-<!--
- <module name="NewlineAtEndOfFile"/>
--->
-
- <!-- Checks that property files contain the same keys. -->
- <!-- See http://checkstyle.sf.net/config_misc.html#Translation -->
- <module name="Translation"/>
-
- <module name="Header">
- <property name="header" value="/*\n * Copyright (C) 1999-2019 David Schweinsberg.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"/>
- </module>
-
- <module name="FileLength"/>
-
- <module name="FileTabCharacter">
- <property name="eachLine" value="true"/>
- </module>
-
- <!-- Prevent two spaces after @xxxx -->
- <module name="RegexpSingleline">
- <property name="format" value="\* *@\w* "/>
- </module>
-
- <module name="RegexpSingleline">
- <property name="format" value="\*\*/"/>
- <property name="message" value="Trailing two asterisks."/>
- </module>
-
- <module name="RegexpSingleline">
- <property name="format" value="\s$"/>
- <property name="message" value="Trailing whitespace found."/>
- </module>
-
- <module name="RegexpSingleline">
- <property name="format" value="\(value = (\w|\d)+\)"/>
- <property name="message" value="Unneeded 'value' literal."/>
- </module>
-
- <module name="RegexpMultiline">
- <property name="format" value="(?<=\r?\n)\r?\n\r?\n"/>
- <property name="message" value="Two empty contiguous lines"/>
- </module>
-
- <module name="RegexpSingleline">
- <property name="format" value="@JsxFunction\(\)|@JsxGetter\(\)|@JsxSetter\(\)|@JsxConstructor\(\)|@Alerts\(\)$"/>
- <property name="message" value="No need to specify parentheses"/>
- </module>
-
- <module name="RegexpSingleline">
- <property name="format" value="@Alerts$"/>
- <property name="message" value="No need to specify empty @Alerts"/>
- </module>
-
- <!--
- at the moment there is a problem with disabling this check for some files
- without disabling all RegexpMultiline checks; for this reason this is not active
- <module name="RegexpMultiline">
- <property name="id" value="sysout"/>
- <property name="format" value="System\s*\.\s*(out)|(err)\s*\.\s*print(ln)?\("/>
- <property name="message" value="System.out.print/ln found"/>
- </module>
- -->
-
- <module name="TreeWalker">
- <property name="tabWidth" value="4"/>
-
- <module name="LeftCurly">
- <property name="option" value="eol"/>
- </module>
- <module name="RightCurly">
- <property name="option" value="alone"/>
- <property name="tokens" value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, LITERAL_DO, STATIC_INIT, INSTANCE_INIT"/>
- </module>
-
- <module name="LineLength">
- <property name="max" value="120"/>
- </module>
- <module name="MethodLength">
- <property name="max" value="175"/>
- </module>
-
- <module name="ConstantName">
- <property name="format" value="log|^[a-zA-Z][a-zA-Z0-9_]*$"/>
- </module>
-
- <!-- Checks for Javadoc comments. -->
- <!-- See http://checkstyle.sf.net/config_javadoc.html -->
-<!--
- <module name="JavadocMethod">
- <property name="scope" value="protected"/>
- <property name="logLoadErrors" value="true"/>
- <property name="suppressLoadErrors" value="true"/>
- </module>
- <module name="JavadocType">
- <property name="scope" value="protected"/>
- <property name="authorFormat" value="\S \S"/>
- </module>
- <module name="JavadocVariable">
- <property name="scope" value="protected"/>
- </module>
- <module name="JavadocStyle">
- <property name="scope" value="protected"/>
- <property name="checkFirstSentence" value="true"/>
- <property name="checkEmptyJavadoc" value="false"/>
- <property name="checkHtml" value="true"/>
- </module>
- -->
-
- <!-- Checks for Naming Conventions. -->
- <!-- See http://checkstyle.sf.net/config_naming.html -->
- <module name="LocalFinalVariableName"/>
- <module name="LocalVariableName"/>
- <module name="MethodName">
- <property name="format" value="^[a-zA-Z0-9]+|test[A-Z][a-zA-Z0-9_]+$"/>
- </module>
- <module name="PackageName"/>
- <module name="ParameterName"/>
- <module name="StaticVariableName">
- <property name="format" value="^[A-Z][a-zA-Z0-9_]+_$"/>
- </module>
- <module name="TypeName"/>
- <module name="MemberName">
- <property name="format" value="^[a-z][a-zA-Z0-9_]+_$"/>
- </module>
-
- <!-- Checks for imports -->
- <!-- See http://checkstyle.sf.net/config_imports.html -->
- <module name="AvoidStarImport"/>
- <module name="IllegalImport"/>
- <module name="RedundantImport"/>
- <module name="UnusedImports"/>
-
- <!-- Checks for Size Violations. -->
- <!-- See http://checkstyle.sf.net/config_sizes.html -->
- <module name="ParameterNumber"/>
-
- <!-- Checks for whitespace -->
- <!-- See http://checkstyle.sf.net/config_whitespace.html -->
- <module name="EmptyForInitializerPad">
- <property name="option" value="space"/>
- </module>
- <module name="EmptyForIteratorPad"/>
- <module name="MethodParamPad"/>
- <module name="NoWhitespaceAfter"/>
- <module name="NoWhitespaceBefore"/>
- <module name="OperatorWrap"/>
- <module name="ParenPad"/>
- <module name="TypecastParenPad"/>
- <module name="WhitespaceAfter"/>
- <module name="WhitespaceAround"/>
- <module name="GenericWhitespace"/>
- <module name="ArrayTypeStyle"/>
-
- <!-- Checks for correct basic indentation -->
- <!-- See http://checkstyle.sf.net/config_misc.html -->
- <module name="Indentation"/>
-
- <!-- Modifier Checks -->
- <!-- See http://checkstyle.sf.net/config_modifiers.html -->
- <module name="ModifierOrder"/>
- <module name="RedundantModifier"/>
-
- <!-- Checks for blocks. You know, those {}'s -->
- <!-- See http://checkstyle.sf.net/config_blocks.html -->
- <module name="AvoidNestedBlocks"/>
- <module name="EmptyBlock">
- <property name="option" value="text"/>
- </module>
-
- <module name="NeedBraces"/>
- <module name="AnnotationUseStyle">
- <property name="elementStyle" value="compact"/>
- </module>
-
- <!-- Checks for common coding problems -->
- <!-- See http://checkstyle.sf.net/config_coding.html -->
- <module name="EmptyStatement"/>
- <module name="EqualsHashCode"/>
- <module name="HiddenField"/>
- <module name="IllegalInstantiation"/>
- <module name="InnerAssignment"/>
- <module name="MissingSwitchDefault"/>
- <module name="EqualsAvoidNull"/>
-
- <module name="SimplifyBooleanReturn"/>
- <module name="SimplifyBooleanExpression"/>
-
- <module name="UnnecessaryParentheses"/>
-
- <!-- Checks for class design -->
- <!-- See http://checkstyle.sf.net/config_design.html -->
- <module name="FinalClass"/>
- <module name="HideUtilityClassConstructor"/>
- <module name="InterfaceIsType"/>
- <module name="VisibilityModifier"/>
-
- <!-- Miscellaneous other checks. -->
- <!-- See http://checkstyle.sf.net/config_misc.html -->
-
- <module name="UpperEll"/>
- <module name="OneStatementPerLine"/>
-
- <module name="FinalLocalVariable">
- <property name="tokens" value="VARIABLE_DEF,PARAMETER_DEF"/>
- </module>
- </module>
-</module>
\ No newline at end of file
diff --git a/checkstyle_suppressions.xml b/checkstyle_suppressions.xml
deleted file mode 100644
index b1bc541..0000000
--- a/checkstyle_suppressions.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0"?>
-
-<!DOCTYPE suppressions PUBLIC
- "-//Puppy Crawl//DTD Suppressions 1.0//EN"
- "http://www.puppycrawl.com/dtds/suppressions_1_0.dtd">
-
-<suppressions>
- <suppress checks=".*" files="ASCII_CharStream.java"/>
-
- <suppress checks=".*" files="CharStream.java"/>
- <suppress checks=".*" files="ParseException.java"/>
- <suppress checks=".*" files="SACParserCSS1.java"/>
- <suppress checks=".*" files="SACParserCSS1Constants.java"/>
- <suppress checks=".*" files="SACParserCSS1TokenManager.java"/>
- <suppress checks=".*" files="SACParserCSS2.java"/>
- <suppress checks=".*" files="SACParserCSS21.java"/>
- <suppress checks=".*" files="SACParserCSS21Constants.java"/>
- <suppress checks=".*" files="SACParserCSS21TokenManager.java"/>
- <suppress checks=".*" files="SACParserCSS2Constants.java"/>
- <suppress checks=".*" files="SACParserCSS2TokenManager.java"/>
- <suppress checks=".*" files="SACParserCSS3.java"/>
- <suppress checks=".*" files="SACParserCSS3Constants.java"/>
- <suppress checks=".*" files="SACParserCSS3TokenManager.java"/>
- <suppress checks=".*" files="SACParserCSSmobileOKBasic1.java"/>
- <suppress checks=".*" files="SACParserCSSmobileOKBasic1Constants.java"/>
- <suppress checks=".*" files="SACParserCSSmobileOKBasic1TokenManager.java"/>
- <suppress checks=".*" files="Token.java"/>
- <suppress checks=".*" files="TokenMgrError.java"/>
-
- <suppress checks=".*" files="TokenMgrError.java"/>
-
- <suppress checks="MethodLength" files="LexicalUnitImpl.java"/>
-
- <suppress checks="MethodLength" files="GettingStartedTest.java"/>
- <suppress checks="FinalLocalVariable" files="GettingStartedTest.java"/>
- <suppress checks="FinalLocalVariable" files="InputSourceTest.java"/>
- <suppress checks="FinalLocalVariable" files="OutputFormattingTest.java"/>
-
- <suppress checks="Header" files=".+.properties"/>
-
- <!-- JUnit Rules require the rules field to have public visibility. -->
- <!-- See http://checkstyle.sourceforge.net/config_design.html#VisibilityModifier -->
- <suppress files=".*(?:Test|TestBase)\.java$" checks="VisibilityModifier|FileLength"/>
-</suppressions>
diff --git a/debian/changelog b/debian/changelog
index c6d3672..db81f33 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+cssparser (0.9.30-1) UNRELEASED; urgency=low
+
+ * New upstream release.
+
+ -- Debian Janitor <janitor@jelmer.uk> Fri, 04 Aug 2023 12:31:50 -0000
+
cssparser (0.9.29-1) unstable; urgency=medium
* Team upload.
diff --git a/pom.xml b/pom.xml
deleted file mode 100644
index d8b8ff1..0000000
--- a/pom.xml
+++ /dev/null
@@ -1,364 +0,0 @@
-<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>
- <groupId>net.sourceforge.cssparser</groupId>
- <artifactId>cssparser</artifactId>
- <version>0.9.29</version>
- <name>CSS Parser</name>
- <url>http://cssparser.sourceforge.net/</url>
- <packaging>jar</packaging>
- <description>A CSS parser which implements SAC (the Simple API for CSS).</description>
- <parent>
- <groupId>org.sonatype.oss</groupId>
- <artifactId>oss-parent</artifactId>
- <version>7</version>
- </parent>
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
-
- <maven.compiler.source>8</maven.compiler.source>
- <maven.compiler.target>8</maven.compiler.target>
- </properties>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.8.1</version>
- </plugin>
- <plugin>
- <!-- generate parsers and lexers before compiling -->
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>javacc-maven-plugin</artifactId>
- <version>2.6</version>
- <executions>
- <execution>
- <id>javacc</id>
- <goals>
- <goal>javacc</goal>
- </goals>
- </execution>
- </executions>
- <dependencies>
- <dependency>
- <groupId>net.java.dev.javacc</groupId>
- <artifactId>javacc</artifactId>
- <version>7.0.4</version>
- </dependency>
- </dependencies>
- </plugin>
- <plugin>
- <groupId>com.google.code.maven-replacer-plugin</groupId>
- <artifactId>replacer</artifactId>
- <version>1.5.3</version>
- <executions>
- <execution>
- <phase>process-sources</phase>
- <goals>
- <goal>replace</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <basedir>${project.build.directory}/generated-sources/javacc/com/steadystate/css/parser</basedir>
- <includes>
- <include>SACParserCSSmobileOKBasic1.java</include>
- <include>SACParserCSSmobileOKBasic1TokenManager.java</include>
-
- <include>SACParserCSS1.java</include>
- <include>SACParserCSS1TokenManager.java</include>
-
- <include>SACParserCSS2.java</include>
- <include>SACParserCSS2TokenManager.java</include>
-
- <include>SACParserCSS21.java</include>
- <include>SACParserCSS21TokenManager.java</include>
-
- <include>SACParserCSS3.java</include>
- <include>SACParserCSS3TokenManager.java</include>
-
- <include>Token.java</include>
- <include>TokenMgrError.java</include>
- </includes>
- <regex>true</regex>
- <regexFlags>
- <regexFlag>MULTILINE</regexFlag>
- </regexFlags>
- <replacements>
- <replacement>
- <token>@SuppressWarnings("unused")</token>
- <value>@SuppressWarnings({"unused", "all"})</value>
- </replacement>
- <replacement>
- <token>\{if \("" != null\) return (..*)\}\n throw new Error\("Missing return statement in function"\);</token>
- <value>return $1</value>
- </replacement>
- <replacement>
- <token>\{if \("" != null\) return (..*)\}\n(\s*break;)?</token>
- <value>return $1</value>
- </replacement>
- <replacement>
- <token>\{if \("" != null\) return;\}</token>
- <value>return;</value>
- </replacement>
- <replacement>
- <token>\{if \(true\) throw (..*)\}(\n)(\s*break;\n)?</token>
- <value>throw $1$2</value>
- </replacement>
- <replacement>
- <token>\s*throw new Error\("Missing return statement in function"\);</token>
- <value></value>
- </replacement>
- </replacements>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-checkstyle-plugin</artifactId>
- <version>3.0.0</version>
- <configuration>
- <configLocation>checkstyle.xml</configLocation>
- <suppressionsLocation>checkstyle_suppressions.xml</suppressionsLocation>
- <includeTestSourceDirectory>true</includeTestSourceDirectory>
- <consoleOutput>true</consoleOutput>
- <failsOnError>true</failsOnError>
- </configuration>
- <dependencies>
- <dependency>
- <groupId>com.puppycrawl.tools</groupId>
- <artifactId>checkstyle</artifactId>
- <version>8.11</version>
- </dependency>
- </dependencies>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>3.1.0</version>
- <configuration>
- <archive>
- <manifest>
- <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
- <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
- </manifest>
- <manifestEntries>
- <Url>${project.url}</Url>
- <Build-Time>${maven.build.timestamp}</Build-Time>
- </manifestEntries>
- <addMavenDescriptor>false</addMavenDescriptor>
- </archive>
- </configuration>
- </plugin>
- <plugin>
- <!-- always generate a source JAR -->
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <version>3.0.1</version>
- <executions>
- <execution>
- <id>attach-sources</id>
- <phase>verify</phase>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>3.2.0</version>
- <configuration>
- <doclint>none</doclint>
- <links>
- <link>https://docs.oracle.com/javase/8/docs/api/</link>
- <link>http://www.w3.org/Style/CSS/SAC/doc/</link>
- </links>
- <additionalparam>--allow-script-in-comments</additionalparam>
- <excludePackageNames>com.gargoylesoftware.css.parser.javacc</excludePackageNames>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-gpg-plugin</artifactId>
- <version>1.6</version>
- <executions>
- <execution>
- <phase>verify</phase>
- <goals>
- <goal>sign</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-site-plugin</artifactId>
- <version>3.7.1</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-eclipse-plugin</artifactId>
- <version>2.10</version>
- <configuration>
- <downloadSources>true</downloadSources>
- <downloadJavadocs>true</downloadJavadocs>
- <additionalBuildcommands>
- <buildcommand>net.sf.eclipsecs.core.CheckstyleBuilder</buildcommand>
- </additionalBuildcommands>
- <additionalProjectnatures>
- <projectnature>net.sf.eclipsecs.core.CheckstyleNature</projectnature>
- </additionalProjectnatures>
- <additionalConfig>
- <file>
- <name>.checkstyle</name>
- <content>
-<![CDATA[<?xml version="1.0" encoding="UTF-8"?>
-<fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false">
- <local-check-config name="CSS Parser" location="checkstyle.xml" type="project" description="CSS Parser">
- <property name="checkstyle.suppressions.file" value="$${project_loc}/checkstyle_suppressions.xml"/>
- <additional-data name="protect-config-file" value="false" />
- </local-check-config>
- <fileset name="all" enabled="true" check-config-name="CSS Parser" local="true">
- <file-match-pattern match-pattern="^src/.*\.java$" include-pattern="true"/>
- </fileset>
- <filter name="NonSrcDirs" enabled="true" />
-</fileset-config>
-]]>
- </content>
- </file>
- </additionalConfig>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-release-plugin</artifactId>
- <version>2.5.3</version>
- </plugin>
- </plugins>
- </build>
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>3.2.0</version>
- <configuration>
- <doclint>none</doclint>
- <links>
- <link>https://docs.oracle.com/javase/8/docs/api/</link>
- <link>http://www.w3.org/Style/CSS/SAC/doc/</link>
- </links>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-changes-plugin</artifactId>
- <version>2.12.1</version>
- <reportSets>
- <reportSet>
- <reports>
- <report>changes-report</report>
- </reports>
- </reportSet>
- </reportSets>
- <configuration>
- <issueLinkTemplatePerSystem>
- <features>http://sourceforge.net/p/htmlunit/feature-requests/%ISSUE%</features>
- </issueLinkTemplatePerSystem>
- </configuration>
- </plugin>
- </plugins>
- </reporting>
- <issueManagement>
- <system>SourceForge2</system>
- <url>http://sourceforge.net/p/cssparser/bugs/</url>
- </issueManagement>
- <inceptionYear>1999</inceptionYear>
- <licenses>
- <license>
- <name>Apache License, Version 2.0</name>
- <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
- <distribution>repo</distribution>
- </license>
- </licenses>
- <scm>
- <connection>scm:svn:svn://svn.code.sf.net/p/cssparser/code/trunk/cssparser</connection>
- <developerConnection>scm:svn:svn+ssh://svn.code.sf.net/p/cssparser/code/trunk/cssparser</developerConnection>
- <url>http://svn.code.sf.net/p/cssparser/code/trunk/cssparser</url>
- </scm>
- <ciManagement>
- <system>Jenkins</system>
- <url>https://wetator.ci.cloudbees.com/job/CSSParser/</url>
- </ciManagement>
- <mailingLists>
- <mailingList>
- <name>CSSParser Developers</name>
- <subscribe>https://lists.sourceforge.net/lists/listinfo/cssparser-developers</subscribe>
- <unsubscribe>https://lists.sourceforge.net/lists/listinfo/cssparser-developers</unsubscribe>
- <archive>http://sourceforge.net/p/cssparser/mailman/cssparser-developers</archive>
- <post>cssparser-develops@lists.sourceforge.net</post>
- </mailingList>
- </mailingLists>
- <developers>
- <developer>
- <name>David Schweinsberg</name>
- <id>davidsch</id>
- <email>davidsch@users.sourceforge.net</email>
- </developer>
- <developer>
- <name>Alan Krueger</name>
- <id>alankrueger</id>
- </developer>
- <developer>
- <name>Daniel Gredler</name>
- <id>sdanig</id>
- <email>sdanig@users.sourceforge.net</email>
- <url>http://daniel.gredler.net/</url>
- <timezone>-5</timezone>
- </developer>
- <developer>
- <name>Johannes Koch</name>
- <id>waldbaer</id>
- <email>waldbaer@users.sourceforge.net</email>
- </developer>
- <developer>
- <name>Ronald Brill</name>
- <id>rbri</id>
- <email>rbri@rbri.de</email>
- <url>http://www.wetator.org/</url>
- <timezone>+1</timezone>
- </developer>
- </developers>
- <contributors>
- <contributor>
- <name>Ahmed Ashour</name>
- </contributor>
- <contributor>
- <name>Christian Morgner</name>
- </contributor>
- </contributors>
- <dependencies>
- <dependency>
- <groupId>org.w3c.css</groupId>
- <artifactId>sac</artifactId>
- <version>1.3</version>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.11</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-</project>
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 1b069fb..71934f6 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -7,6 +7,11 @@
</properties>
<body>
+ <release version="0.9.30" date="28.12.2022" description="bugfix">
+ <action type="fix" dev="rbri">
+ Unknown rule values are printed as ems instead of em.
+ </action>
+ </release>
<release version="0.9.29" date="07.11.2020" description="more dimensions, new format option and bugfixes">
<action type="add" dev="rbri" issue="6">
New CSSFormat setting useSingleQuotes to force the usage of single quotes instead
diff --git a/src/main/javacc/SACParserCSS1.jj b/src/main/javacc/SACParserCSS1.jj
index b0792f3..b54c3e6 100644
--- a/src/main/javacc/SACParserCSS1.jj
+++ b/src/main/javacc/SACParserCSS1.jj
@@ -910,7 +910,7 @@ String skip() {
JAVACODE
void appendUnit(Token t, StringBuilder sb) {
if (t.kind == EMS) {
- sb.append("ems");
+ sb.append("em");
return;
}
if (t.kind == EXS) {
diff --git a/src/main/javacc/SACParserCSS2.jj b/src/main/javacc/SACParserCSS2.jj
index 1c34391..de4568f 100644
--- a/src/main/javacc/SACParserCSS2.jj
+++ b/src/main/javacc/SACParserCSS2.jj
@@ -1362,7 +1362,7 @@ String skip() {
JAVACODE
void appendUnit(Token t, StringBuilder sb) {
if (t.kind == EMS) {
- sb.append("ems");
+ sb.append("em");
return;
}
if (t.kind == EXS) {
diff --git a/src/main/javacc/SACParserCSS21.jj b/src/main/javacc/SACParserCSS21.jj
index 666dd1f..54f57aa 100644
--- a/src/main/javacc/SACParserCSS21.jj
+++ b/src/main/javacc/SACParserCSS21.jj
@@ -1441,7 +1441,7 @@ String skipUnit() {
JAVACODE
void appendUnit(Token t, StringBuilder sb) {
if (t.kind == EMS) {
- sb.append("ems");
+ sb.append("em");
return;
}
if (t.kind == EXS) {
diff --git a/src/main/javacc/SACParserCSS3.jj b/src/main/javacc/SACParserCSS3.jj
index 7829ddf..bfe89a9 100755
--- a/src/main/javacc/SACParserCSS3.jj
+++ b/src/main/javacc/SACParserCSS3.jj
@@ -2133,7 +2133,7 @@ String skipUnit() {
JAVACODE
void appendUnit(Token t, StringBuilder sb) {
if (t.kind == EMS) {
- sb.append("ems");
+ sb.append("em");
return;
}
if (t.kind == REM) {
diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml
index f5f795d..4fd8a1a 100644
--- a/src/site/xdoc/index.xml
+++ b/src/site/xdoc/index.xml
@@ -43,8 +43,7 @@
</ul>
</section>
- <section name="Download latest release 0.9.29 (07.11.2020)">
-
+ <section name="Download latest release 0.9.30 (28.12.2022)">
<p>from the <a href="http://sourceforge.net/projects/cssparser/">SourceForge Project Page</a>
<a href="changes-report.html">Change history</a>.
</p>
diff --git a/src/test/java/com/steadystate/css/parser/SACParserCSS21Test.java b/src/test/java/com/steadystate/css/parser/SACParserCSS21Test.java
index de1565c..671e75b 100644
--- a/src/test/java/com/steadystate/css/parser/SACParserCSS21Test.java
+++ b/src/test/java/com/steadystate/css/parser/SACParserCSS21Test.java
@@ -2458,6 +2458,39 @@ public class SACParserCSS21Test extends AbstractSACParserTest {
Assert.assertEquals("h1:first-line { color: red }", rule.toString());
Assert.assertEquals("h1:first-line { color: red }", rule.getCssText());
}
+
+ /**
+ * @throws Exception if any error occurs
+ */
+ @Test
+ public void unknownRule() throws Exception {
+ final String css = "@keyframes load5 {0%, 100% {"
+ + "box-shadow: 0em -2.6em 0em 0em #000000, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), "
+ + "2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), "
+ + "0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), "
+ + "-2.6em 0em 0 0em rgba(0, 0, 0, 0.5), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.7);"
+ + "}";
+
+ final CSSStyleSheet sheet = parse(css);
+ final CSSRuleList rules = sheet.getCssRules();
+
+ Assert.assertEquals(1, rules.getLength());
+
+ final CSSRule rule = rules.item(0);
+ Assert.assertEquals("@keyframes load5 {0%, 100% {"
+ + "box-shadow: 0em -2.6em 0em 0em #000000, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), "
+ + "2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), "
+ + "0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), "
+ + "-2.6em 0em 0 0em rgba(0, 0, 0, 0.5), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.7);"
+ + "}", rule.toString());
+ Assert.assertEquals("@keyframes load5 {0%, 100% {"
+ + "box-shadow: 0em -2.6em 0em 0em #000000, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), "
+ + "2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), "
+ + "0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), "
+ + "-2.6em 0em 0 0em rgba(0, 0, 0, 0.5), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.7);"
+ + "}", rule.getCssText());
+ }
+
//
// /**
// * @throws Exception if any error occurs
diff --git a/src/test/java/com/steadystate/css/parser/SACParserCSS2Test.java b/src/test/java/com/steadystate/css/parser/SACParserCSS2Test.java
index d9c64c4..6205d13 100644
--- a/src/test/java/com/steadystate/css/parser/SACParserCSS2Test.java
+++ b/src/test/java/com/steadystate/css/parser/SACParserCSS2Test.java
@@ -795,4 +795,36 @@ public class SACParserCSS2Test extends AbstractSACParserTest {
Assert.assertEquals("h1:first-line { color: red }", rule.toString());
Assert.assertEquals("h1:first-line { color: red }", rule.getCssText());
}
+
+ /**
+ * @throws Exception if any error occurs
+ */
+ @Test
+ public void unknownRule() throws Exception {
+ final String css = "@keyframes load5 {0%, 100% {"
+ + "box-shadow: 0em -2.6em 0em 0em #000000, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), "
+ + "2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), "
+ + "0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), "
+ + "-2.6em 0em 0 0em rgba(0, 0, 0, 0.5), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.7);"
+ + "}";
+
+ final CSSStyleSheet sheet = parse(css);
+ final CSSRuleList rules = sheet.getCssRules();
+
+ Assert.assertEquals(1, rules.getLength());
+
+ final CSSRule rule = rules.item(0);
+ Assert.assertEquals("@keyframes load5 {0%, 100% {"
+ + "box-shadow: 0em -2.6em 0em 0em #000000, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), "
+ + "2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), "
+ + "0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), "
+ + "-2.6em 0em 0 0em rgba(0, 0, 0, 0.5), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.7);"
+ + "}", rule.toString());
+ Assert.assertEquals("@keyframes load5 {0%, 100% {"
+ + "box-shadow: 0em -2.6em 0em 0em #000000, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), "
+ + "2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), "
+ + "0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), "
+ + "-2.6em 0em 0 0em rgba(0, 0, 0, 0.5), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.7);"
+ + "}", rule.getCssText());
+ }
}
diff --git a/src/test/java/com/steadystate/css/parser/SACParserCSS3Test.java b/src/test/java/com/steadystate/css/parser/SACParserCSS3Test.java
index d157222..a3f0f80 100755
--- a/src/test/java/com/steadystate/css/parser/SACParserCSS3Test.java
+++ b/src/test/java/com/steadystate/css/parser/SACParserCSS3Test.java
@@ -4120,6 +4120,38 @@ public class SACParserCSS3Test extends AbstractSACParserTest {
Assert.assertEquals("h1::link { color: red }", rule.getCssText());
}
+ /**
+ * @throws Exception if any error occurs
+ */
+ @Test
+ public void unknownRule() throws Exception {
+ final String css = "@keyframes load5 {0%, 100% {"
+ + "box-shadow: 0em -2.6em 0em 0em #000000, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), "
+ + "2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), "
+ + "0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), "
+ + "-2.6em 0em 0 0em rgba(0, 0, 0, 0.5), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.7);"
+ + "}";
+
+ final CSSStyleSheet sheet = parse(css);
+ final CSSRuleList rules = sheet.getCssRules();
+
+ Assert.assertEquals(1, rules.getLength());
+
+ final CSSRule rule = rules.item(0);
+ Assert.assertEquals("@keyframes load5 {0%, 100% {"
+ + "box-shadow: 0em -2.6em 0em 0em #000000, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), "
+ + "2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), "
+ + "0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), "
+ + "-2.6em 0em 0 0em rgba(0, 0, 0, 0.5), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.7);"
+ + "}", rule.toString());
+ Assert.assertEquals("@keyframes load5 {0%, 100% {"
+ + "box-shadow: 0em -2.6em 0em 0em #000000, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), "
+ + "2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), "
+ + "0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), "
+ + "-2.6em 0em 0 0em rgba(0, 0, 0, 0.5), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.7);"
+ + "}", rule.getCssText());
+ }
+
//
// /**
// * @throws Exception if any error occurs
Debdiff
[The following lists of changes regard files as different if they have different names, permissions or owners.]
Files in first set of .debs but not in second
-rw-r--r-- root/root /usr/share/java/cssparser.jar -rw-r--r-- root/root /usr/share/maven-repo/net/sourceforge/cssparser/cssparser/0.9.29/cssparser-0.9.29.pom -rw-r--r-- root/root /usr/share/maven-repo/net/sourceforge/cssparser/cssparser/debian/cssparser-debian.pom lrwxrwxrwx root/root /usr/share/java/cssparser-0.9.29.jar -> cssparser.jar lrwxrwxrwx root/root /usr/share/maven-repo/net/sourceforge/cssparser/cssparser/0.9.29/cssparser-0.9.29.jar -> ../../../../../../java/cssparser.jar lrwxrwxrwx root/root /usr/share/maven-repo/net/sourceforge/cssparser/cssparser/debian/cssparser-debian.jar -> ../../../../../../java/cssparser.jar
Control files: lines which differ (wdiff format)
Depends: libsac-java