Skip to content

Commit

Permalink
Merge branch 'master' into topic/miurahr/core/project/getter-setter-s…
Browse files Browse the repository at this point in the history
…egmenter
  • Loading branch information
miurahr committed Dec 1, 2024
2 parents d252a31 + fb1fd6b commit 9299958
Show file tree
Hide file tree
Showing 103 changed files with 216 additions and 1,242 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
*
* OmegaT - Computer Assisted Translation (CAT) tool
* with fuzzy matching, translation memory, keyword search,
* glossaries, and translation leveraging into updated projects.
Expand Down
101 changes: 0 additions & 101 deletions aligner/src/test/java/org/omegat/gui/align/CopyrightTest.java

This file was deleted.

23 changes: 15 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -1666,6 +1666,20 @@ def isCommandAvailable(command) {
}.exitValue == 0
}

def testAcceptanceFinally = tasks.register('testAcceptanceFinally') {
outputs.upToDateWhen { return false } // always run
doLast {
def display = project.hasProperty("testDisplay") ? project.getProperty("testDisplay") : ""
if (!display.isEmpty()) {
def pid = ext.has('xvfbPid') ? ext.xvfbPid : null
if (pid != null) {
stopX(pid)
ext.xfvgPid = null
}
}
}
}

tasks.register('testAcceptance', Test) {
onlyIf {
isCommandAvailable('Xvfb') || project.hasProperty("acceptanceTestLive")
Expand All @@ -1680,14 +1694,7 @@ tasks.register('testAcceptance', Test) {
}
}
}
doLast {
if (!display.isEmpty()) {
def pid = ext.has('xvfbPid') ? ext.xvfbPid : null
if (pid != null) {
stopX(pid)
}
}
}
finalizedBy testAcceptanceFinally

description = 'Run Acceptance GUI test'
group = 'verification'
Expand Down
12 changes: 12 additions & 0 deletions config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,18 @@
<property name="file" value="${config_loc}/suppressions.xml"/>
</module>

<module name="RegexpHeader">
<property name="headerFile" value="${config_loc}/java.header"/>
<property name="multiLines" value="6"/>
<property name="fileExtensions" value="java"/>
</module>

<module name="RegexpHeader">
<property name="headerFile" value="${config_loc}/properties.header"/>
<property name="multiLines" value="6"/>
<property name="fileExtensions" value="properties"/>
</module>

<!-- Checks for Size Violations. -->
<!-- See https://checkstyle.org/checks/sizes/index.html -->
<module name="FileLength"/>
Expand Down
24 changes: 24 additions & 0 deletions config/checkstyle/java.header
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
^/\*(\*{73,})?$
OmegaT \- Computer Assisted Translation \(CAT\) tool$
with fuzzy matching, translation memory, keyword search,$
glossaries, and translation leveraging into updated projects.$
^( \*)?$
(Copyright \(C\)|\s{13}) \d\d\d\d((-|,)\d\d\d\d)? (\w+|\s|,)+
Home page: https://www.omegat.org/
Support center: https://omegat.org/support
^( \*)?$
This file is part of OmegaT.$
^( \*)?$
OmegaT is free software: you can redistribute it and/or modify$
it under the terms of the GNU General Public License as published by$
the Free Software Foundation, either version 3 of the License, or$
\(at your option\) any later version.$
^( \*)?$
OmegaT 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 General Public License for more details.$
^( \*)?$
You should have received a copy of the GNU General Public License$
along with this program. If not, see <https://www.gnu.org/licenses/>.$
^\s?(\*{73,})?\*/$
24 changes: 24 additions & 0 deletions config/checkstyle/properties.header
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
^#(/?\*{75,})?$
^# OmegaT \- Computer Assisted Translation \(CAT\) tool$
^# with fuzzy matching, translation memory, keyword search,$
^# glossaries, and translation leveraging into updated projects.$
^#$
^# (Copyright \(C\)|\s{13}) \d\d\d\d(-\d\d\d\d)? (\w+|\s|,)+
^# Home page: https://www.omegat.org/
^# Support center: https://omegat.org/support
^#$
^# This file is part of OmegaT.$
^#$
^# OmegaT is free software: you can redistribute it and/or modify$
^# it under the terms of the GNU General Public License as published by$
^# the Free Software Foundation, either version 3 of the License, or$
^# \(at your option\) any later version.$
^# ^( \*)?$
^# OmegaT 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 General Public License for more details.$
^#$
^# You should have received a copy of the GNU General Public License$
^# along with this program. If not, see <https://www.gnu.org/licenses/>.$
^#(\*{75,}/?)?$
5 changes: 4 additions & 1 deletion config/checkstyle/suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
<suppressions>

<!-- Permanently suppress errors/warnings -->

<!-- ignore -->
<suppress files="gen.core.*+" checks="RegexpHeader"/>

<!-- tests -->
<suppress files="TestCore\.java" checks="MethodLength"/>
Expand Down Expand Up @@ -161,7 +164,7 @@
<suppress checks="(TypeName|MissingSwitchDefault)" files="srtFilter\.java" lines="55,102"/>
<suppress checks="TypeName" files="XLIFFOptions\.java" lines="67"/>
<suppress files="XHTMLDialect\.java" checks="InnerAssignment" lines="131,132"/>
<suppress files="CamtasiaWindowsDialect\.java" checks="MethodLength" lines="45"/>
<suppress files="CamtasiaWindowsDialect\.java" checks="MethodLength" lines="44"/>
<suppress files="Entry\.java" checks="MethodLength"/>
<suppress files="Handler\.java" checks="EmptyBlock" lines="857"/>

Expand Down
11 changes: 4 additions & 7 deletions doc_src/build.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
/**************************************************************************
OmegaT - Java based Computer Assisted Translation (CAT) tool
OmegaT - Computer Assisted Translation (CAT) tool
Copyright (C) 2011-2012 Didier Briel
2014-2015 Didier Briel
2019 Aaron Madlon-Kay
Home page: http://www.omegat.org/
Home page: https://www.omegat.org/
Support center: https://omegat.org/support
This file is part of OmegaT.
Expand All @@ -23,8 +21,7 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
**************************************************************************/
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<project name="OmegaT documentation" default="all">

Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ commons_lang3 = "3.14.0"
commons_io = "2.16.1"
commons_text = "1.11.0"
commons_validator = "1.9.0"
jsoup = "1.18.1"
jsoup = "1.18.2"
icu4j = { require = "[70,73.2[", prefer = "72.1" }
stax2api = "4.2.2"
woodstox = "6.5.0"
Expand Down Expand Up @@ -187,7 +187,7 @@ xmlunit = ["xmlunit-core", "xmlunit-assertj", "assertj"]

[plugins]
spotbugs = {id = "com.github.spotbugs", version = "6.0.26"}
spotless = {id = "com.diffplug.spotless", version = "6.25.0"}
spotless = {id = "com.diffplug.spotless", version = "7.0.0.BETA4"}
launch4j = {id = "edu.sc.seis.launch4j", version = "3.0.6"}
versions = {id = "com.github.ben-manes.versions", version = "0.51.0"}
ssh = {id = "org.hidetake.ssh", version = "2.11.2"}

This file was deleted.

Loading

0 comments on commit 9299958

Please sign in to comment.