[Git][java-team/cssparser][master] 8 commits: Converted debian/watch to the version 5 format
Emmanuel Bourg (@ebourg)
gitlab at salsa.debian.org
Wed Nov 11 00:37:45 GMT 2026
Emmanuel Bourg pushed to branch master at Debian Java Maintainers / cssparser
Commits:
91b56864 by Emmanuel Bourg at 2026-11-10T23:06:35+01:00
Converted debian/watch to the version 5 format
- - - - -
45234174 by Emmanuel Bourg at 2026-11-10T23:06:35+01:00
Standards-Version updated to 4.7.4
- - - - -
4354cfb5 by Emmanuel Bourg at 2026-11-10T23:06:36+01:00
Removed the Priority field
- - - - -
695f9977 by Emmanuel Bourg at 2026-11-10T23:52:14+01:00
New upstream version 0.9.30
- - - - -
567cb818 by Emmanuel Bourg at 2026-11-10T23:52:15+01:00
Update upstream source from tag 'upstream/0.9.30'
Update to upstream version '0.9.30'
with Debian dir 75ac9773af54ac23ff1ce10391e6fc5bcf1fd1a2
- - - - -
c51a659a by Emmanuel Bourg at 2026-11-10T23:53:55+01:00
Ignore the new enforcer and dependency-check plugins
- - - - -
b4c20111 by Emmanuel Bourg at 2026-11-11T00:19:57+01:00
Updated debian/copyright
- - - - -
d844abd5 by Emmanuel Bourg at 2026-11-11T00:19:57+01:00
Upload to unstable
- - - - -
15 changed files:
- debian/changelog
- debian/control
- debian/copyright
- debian/maven.ignoreRules
- debian/watch
- pom.xml
- src/changes/changes.xml
- src/main/javacc/SACParserCSS1.jj
- src/main/javacc/SACParserCSS2.jj
- src/main/javacc/SACParserCSS21.jj
- src/main/javacc/SACParserCSS3.jj
- src/site/xdoc/index.xml
- src/test/java/com/steadystate/css/parser/SACParserCSS21Test.java
- src/test/java/com/steadystate/css/parser/SACParserCSS2Test.java
- src/test/java/com/steadystate/css/parser/SACParserCSS3Test.java
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,15 @@
+cssparser (0.9.30-1) unstable; urgency=medium
+
+ * Team upload.
+ * New upstream release
+ - Ignore the new enforcer and dependency-check plugins
+ * Standards-Version updated to 4.7.4
+ * Removed the Priority field
+ * Updated debian/copyright
+ * Converted debian/watch to the version 5 format
+
+ -- Emmanuel Bourg <ebourg at apache.org> Wed, 11 Nov 2026 00:18:44 +0100
+
cssparser (0.9.29-1) unstable; urgency=medium
* Team upload.
=====================================
debian/control
=====================================
@@ -1,6 +1,5 @@
Source: cssparser
Section: java
-Priority: optional
Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
Uploaders: Ludovico Cavedon <cavedon at debian.org>
Build-Depends:
@@ -12,7 +11,7 @@ Build-Depends:
libreplacer-java,
libsac-java,
maven-debian-helper
-Standards-Version: 4.6.1
+Standards-Version: 4.7.4
Vcs-Git: https://salsa.debian.org/java-team/cssparser.git
Vcs-Browser: https://salsa.debian.org/java-team/cssparser
Homepage: http://cssparser.sourceforge.net/
=====================================
debian/copyright
=====================================
@@ -4,30 +4,43 @@ Upstream-Contact: David Schweinsberg <davidsch at users.sourceforge.net>
Source: http://cssparser.sourceforge.net
Files: *
-Copyright: 1999-2008, David Schweinsberg <davidsc at users.sourceforge.net>
- Johannes Koch <waldbaer at users.sourceforge.net>
- Daniel Gredler
- 1999-2002, Steady State Software Limited
-License: LGPL-2+
+Copyright: 1999-2020, David Schweinsberg
+License: Apache-2.0
+ On Debian systems, the full text of the Apache License, Version 2.0 can be
+ found in the file `/usr/share/common-licenses/Apache-2.0'.
+
+Files: src/test/resources/realworld/bootstrap_3_3_7_min.css
+ src/test/resources/realworld/mui.css
+ src/test/resources/realworld/normalize.css
+Copyright: 2011-2016, Twitter, Inc.
+ Nicolas Gallagher and Jonathan Neal
+License: Expat
+ 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.
Files: debian/*
Copyright: 2010, Ludovico Cavedon <cavedon at debian.org>
-License: LGPL-2+
-
License: LGPL-2+
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
.
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
- .
- You should have received a copy of the GNU Lesser General Public
- License along with this library; if not, write to the Free Software
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
- .
- On Debian GNU/Linux system you can find the complete text of the
- LGPL-2 license in '/usr/share/common-licenses/LGPL-2'
+ On Debian systems, the full text of the GNU Library General Public
+ License version 2 can be found in the file
+ `/usr/share/common-licenses/LGPL-2'.
=====================================
debian/maven.ignoreRules
=====================================
@@ -2,3 +2,5 @@ com.puppycrawl.tools checkstyle * *
org.apache.maven.plugins maven-changes-plugin * *
org.apache.maven.plugins maven-javadoc-plugin * *
org.apache.maven.plugins maven-source-plugin * *
+org.apache.maven.plugins maven-enforcer-plugin * * * *
+org.owasp dependency-check-maven * * * *
=====================================
debian/watch
=====================================
@@ -1,4 +1,6 @@
-version=4
-opts="mode=svn,uversionmangle=s/_/./g" \
-https://svn.code.sf.net/p/cssparser/code/tags (?:cssparser-|CSSPARSER_)([\d._]+)/
-
+Version: 5
+Mode: svn
+Source: https://svn.code.sf.net/p/cssparser/code/tags
+Matching-Pattern: (?:cssparser-|CSSPARSER_)([\d._]+)/
+Uversion-Mangle: s/_/./g
+Compression: xz
=====================================
pom.xml
=====================================
@@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>net.sourceforge.cssparser</groupId>
<artifactId>cssparser</artifactId>
- <version>0.9.29</version>
+ <version>0.9.30</version>
<name>CSS Parser</name>
<url>http://cssparser.sourceforge.net/</url>
<packaging>jar</packaging>
@@ -24,10 +24,48 @@
<build>
<plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>3.1.0</version>
+ <executions>
+ <execution>
+ <id>enforce-maven</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireMavenVersion>
+ <version>3.6.3</version>
+ </requireMavenVersion>
+ <requireJavaVersion>
+ <version>1.8.0</version>
+ </requireJavaVersion>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.owasp</groupId>
+ <artifactId>dependency-check-maven</artifactId>
+ <version>7.4.1</version>
+ <configuration>
+ <failBuildOnCVSS>0</failBuildOnCVSS>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
- <version>3.8.1</version>
+ <version>3.10.1</version>
</plugin>
<plugin>
<!-- generate parsers and lexers before compiling -->
@@ -46,7 +84,7 @@
<dependency>
<groupId>net.java.dev.javacc</groupId>
<artifactId>javacc</artifactId>
- <version>7.0.4</version>
+ <version>7.0.12</version>
</dependency>
</dependencies>
</plugin>
@@ -118,7 +156,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
- <version>3.0.0</version>
+ <version>3.1.2</version>
<configuration>
<configLocation>checkstyle.xml</configLocation>
<suppressionsLocation>checkstyle_suppressions.xml</suppressionsLocation>
@@ -130,14 +168,14 @@
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
- <version>8.11</version>
+ <version>9.3</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
- <version>3.1.0</version>
+ <version>3.3.0</version>
<configuration>
<archive>
<manifest>
@@ -156,7 +194,7 @@
<!-- always generate a source JAR -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
- <version>3.0.1</version>
+ <version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
@@ -170,7 +208,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
- <version>3.2.0</version>
+ <version>3.4.1</version>
<configuration>
<doclint>none</doclint>
<links>
@@ -191,7 +229,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
- <version>1.6</version>
+ <version>3.0.1</version>
<executions>
<execution>
<phase>verify</phase>
@@ -357,7 +395,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
- <version>4.11</version>
+ <version>4.13.2</version>
<scope>test</scope>
</dependency>
</dependencies>
=====================================
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
=====================================
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) {
=====================================
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) {
=====================================
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) {
=====================================
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) {
=====================================
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>
=====================================
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
=====================================
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());
+ }
}
=====================================
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
View it on GitLab: https://salsa.debian.org/java-team/cssparser/-/compare/d99881f5e75567a2613ed808473f1d1b15f13d14...d844abd590291e9b7ae666ae6a5f7b9e409afdc6
--
View it on GitLab: https://salsa.debian.org/java-team/cssparser/-/compare/d99881f5e75567a2613ed808473f1d1b15f13d14...d844abd590291e9b7ae666ae6a5f7b9e409afdc6
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20261111/d7d36361/attachment.htm>
More information about the pkg-java-commits
mailing list