Skip to content

Commit

Permalink
Merge remote-tracking branch 'jabref/master' into enhanceSidePaneToggle
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/test/java/net/sf/jabref/gui/importer/fetcher/GeneralFetcherTest.java
  • Loading branch information
chriba committed Oct 10, 2016
2 parents 8f454e7 + 55e0f13 commit cbcc4de
Show file tree
Hide file tree
Showing 268 changed files with 3,879 additions and 2,995 deletions.
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
- [ ] Screenshots added (for bigger UI changes)
- [ ] Manually tested changed features in running JabRef
- [ ] Check documentation status (Issue created for outdated help page at [help.jabref.org](https://github.com/JabRef/help.jabref.org/issues)?)
- [ ] If you changed the localization: Did you run `gradle localizationUpdate`?
8 changes: 4 additions & 4 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,10 @@ Robert Jäschke <rjoberon@users.sf.net>
Ulrik Stervbo <ulriks@users.sourceforge.net>
Stefano Gariazzo <steog88@gmail.com>
Lee Patton <lpatton@users.sourceforge.net>
Jörg Lenhard <joerg.lenhard@uni-bamberg.de>
Jörg Lenhard <joerg.lenhard@kau.se>
<joerg.lenhard@uni-bamberg.de> <joerg@lenhard.info>
<joerg.lenhard@uni-bamberg.de> <lenhard@users.noreply.github.com>
<joerg.lenhard@uni-bamberg.de> <joerg.lenhard@kau.se>
<joerg.lenhard@kau.se> <joerg@lenhard.info>
<joerg.lenhard@kau.se> <lenhard@users.noreply.github.com>
Jörg Lenhard <joerg.lenhard@kau.se> <joerg.lenhard@uni-bamberg.de>
Matthias Geiger <matthias.geiger@uni-bamberg.de>
Christoph Braun <braunch.dev@gmail.com>
Felix Wilke <horstilaemmer@yahoo.com>
Expand All @@ -103,3 +102,4 @@ Christoph Schwentker <cschwentker@gmail.com>
Christoph Schwentker <cschwentker@gmail.com> <siedlerkiller@gmail.com>
Jens Döcke <jens.doecke@gmail.com>
Jürgen Lange <juergen.lange@unitybox.de>
Sascha Zeller <zeller.dev@gmail.com>
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ after_script:
- ./gradlew jacocoTestReport
- bash <(curl -s https://codecov.io/bash)

after_failure:
# show test results if build fails
- $TRAVIS_BUILD_DIR/scripts/after-failure.sh

# cache gradle dependencies
# https://docs.travis-ci.com/user/languages/java#Caching
before_cache:
Expand Down
2 changes: 2 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Ambrogio Oliva
Andreas Amann
Andreas Rudert
Anh Nghia Tran
Antonio Ribeiro
Behrouz Javanmardi
Bernd Kalbfuss
Bernhard Tempel
Expand Down Expand Up @@ -47,6 +48,7 @@ Fedor Bezrukov
Felix Berger
Felix Langner
Felix Wilke
Fernando Santagata
Florian Straßer
Francois Charette
Frank Steimle
Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `#
## [Unreleased]

### Changed
- Source tab in the entry editor displays "BibLaTeX Source" when using biblatex mode
- Add session restoring functionality for shared database. Related to [#1703](https://github.com/JabRef/jabref/issues/1703)
- Implementation of LiveUpdate for PostgreSQL & Oracle systems. Related to [#970](https://github.com/JabRef/jabref/issues/970).
- [koppor#31](https://github.com/koppor/jabref/issues/31): Number column in the main table is always Left aligned
Expand Down Expand Up @@ -54,10 +55,17 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `#
- [#490](https://github.com/JabRef/jabref/issues/490) Added right click menu to main table and entry editor to allow copying doi url
- [#549](https://github.com/JabRef/jabref/issues/549) Added new shortcut to copy the BibTeX key as a hyperlink to its url to the clipboard
- Complete vietnam language translation in menu
- Generalize German translation of database into "Datenbank"
- Improve language quality of the German translation of shared database
- Change "Recent files" to "Recent databases" to keep the file menu consistent
- Customized importer files need to be slightly changed since the class `ImportFormat` was renamed to `Importer`

### Fixed
- Fixed [#2092](https://github.com/JabRef/jabref/issues/2092): "None"-button in date picker clears the date field
- Fixed [#1993](https://github.com/JabRef/jabref/issues/1993): Various optimizations regarding search performance
- Fixed [koppor#160](https://github.com/koppor/jabref/issues/160): Tooltips now working in the main table
- Fixed [#2054](https://github.com/JabRef/jabref/issues/2054): Ignoring a new version now works as expected
- Fixed [#1542](https://github.com/JabRef/jabref/issues/1542): Improved error messages when using fetcher
- Fixed selecting an entry out of multiple duplicates
- Fixed [#617](https://github.com/JabRef/jabref/issues/617): `Enter` in global search opens the selected entry & `Enter` in search dialog window opens the selected entry
- Entries in the SearchResultPanel will be shown correctly (Latex to Unicode)
Expand All @@ -82,12 +90,19 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `#
- Fixed [#1958](https://github.com/JabRef/jabref/issues/1958): Verbatim fields are no longer checked for HTML encoded characters by integrity checks
- Fixed [#1937](https://github.com/JabRef/jabref/issues/1937): If no help page for the current chosen language exists, the english help page will be shown
- Fixed [#2060](https://github.com/JabRef/jabref/issues/2060): Medline fetcher now imports data in UTF-8 encoding
- Fixed file menu displays wrong hotkey in the German translation
- Fixed [#2090](https://github.com/JabRef/jabref/issues/#2090): If special fields were not selected, two menu item separator were shown
- Fixed [#2064](https://github.com/JabRef/jabref/issues/2064): Not all `other fields` are shown on entry change of same type
- Fixed [#2104](https://github.com/JabRef/jabref/issues/#2104): Crash after saving BibTeX source with parsing error
- Fixed [#2109](https://github.com/JabRef/jabref/issues/#2109): <kbd>Ctrl-s</kbd> doesn't trigger parsing error message
- Fixed RTFChars would only use "?" for characters with unicode over the value of 127, now it uses the base character (é -> e instead of ?)

### Removed
- Removed 2nd preview style
- The non-supported feature of being able to define file directories for any extension is removed. Still, it should work for older databases using the legacy `ps` and `pdf` fields, although we strongly encourage using the `file` field.
- Automatic migration for the `evastar_pdf` field is removed.
- We removed the customizable "content selectors" since they are replaced by the auto-completion feature
- Removed optional fields from `other fields` (BibTeX), Removed deprecated fields from `other fields` (BibLaTeX)



Expand Down
3 changes: 1 addition & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ More information on this can be found via `man git-shortlog`.
Please, **do not add yourself at `@authors`**.
The contribution information is tracked via the version control system.

We are currently in transition from [GPL](https://tldrlegal.com/license/gnu-general-public-license-v2) to the [MIT license](https://tldrlegal.com/license/mit-license).
Thus, all your contributions are considered being made under MIT license.
Your contribution is considered being made under [MIT license](https://tldrlegal.com/license/mit-license).


### Write a good commit message
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ Releasing is done using [CircleCI](https://circleci.com/gh/JabRef/jabref). A ful

## License

We are currently in transition from [GPL](https://tldrlegal.com/license/gnu-general-public-license-v2) to the [MIT license](https://tldrlegal.com/license/mit-license).
Thus, all new contributions are considered being made under MIT license.

Since version 3.6, JabRef is licensed under the [MIT license](https://tldrlegal.com/license/mit-license).
See the [LICENSE.md](LICENSE.md) for the full MIT license.

JabRef also uses libraries distributed by other parties.
Expand Down
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,11 @@ test {
}
}

task copyTestResources(type: Copy) {
from "${projectDir}/src/test/resources"
into "${buildDir}/classes/test"
}
processTestResources.dependsOn copyTestResources

task databaseTest(type: Test) {
testClassesDir = sourceSets.databaseTest.output.classesDir
Expand Down
5 changes: 5 additions & 0 deletions jabref.install4j
Original file line number Diff line number Diff line change
Expand Up @@ -750,4 +750,9 @@ return true;</string>
</mediaSets>
<buildIds buildAll="true" />
<buildOptions verbose="false" faster="false" disableSigning="false" disableJreBundling="false" debug="false" />
<jvmArguments>
<arg>-XX:+UseG1GC</arg>
<arg>-XX:+UseStringDeduplication</arg>
<arg>-XX:StringTableSize=1000003</arg>
</jvmArguments>
</install4j>
27 changes: 27 additions & 0 deletions scripts/after-failure.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
# taken from https://github.com/lhotari/travis-gradle-test-failures-to-console/blob/master/travis/junit-errors-to-stdout.sh
IFS='
'
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
if [ "$TRAVIS" = "true" ]; then
#echo 'Installing xml-twig-tools and xsltproc....'
sudo apt-get install -qq -y --force-yes xml-twig-tools xsltproc > /dev/null
fi
ROOTDIR="$1"
if [ -z "$ROOTDIR" ]; then
ROOTDIR="."
fi
echo 'Formatting results...'
FILES=$(find "$ROOTDIR" -path '*/build/test-results/*.xml' | xargs --no-run-if-empty xml_grep --files --cond 'testsuite[@failures > 0 or @errors > 0]')
if [ -n "$FILES" ]; then
for file in $FILES; do
echo "Formatting $file"
if [ -f "$file" ]; then
echo '====================================================='
xsltproc "$DIR/junit-xml-format-errors.xsl" "$file"
fi
done
echo '====================================================='
else
echo 'No */build/test-results/*.xml files found with failing tests.'
fi
61 changes: 61 additions & 0 deletions scripts/junit-xml-format-errors.xsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- based on SO answer http://stackoverflow.com/a/9471505/166062 by dvdvorle http://stackoverflow.com/users/481635/dvdvorle -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" indent="no"/>
<xsl:template match="/testsuite">
<xsl:text>Testsuite: </xsl:text><xsl:value-of select="@name" />
<xsl:text>
Tests run: </xsl:text>
<xsl:value-of select="@tests" />
<xsl:text>, Failures: </xsl:text>
<xsl:value-of select="@failures" />
<xsl:text>, Errors: </xsl:text>
<xsl:value-of select="@errors" />
<xsl:text>, Time elapsed: </xsl:text>
<xsl:value-of select="@time" />
<xsl:text> sec</xsl:text>
<xsl:text>
--------- ----------- ---------</xsl:text>
<xsl:apply-templates select="testcase" />
<xsl:apply-templates select="system-out" />
<xsl:apply-templates select="system-err" />
</xsl:template>

<xsl:template match="testcase">
<xsl:text>
Testcase: </xsl:text>
<xsl:value-of select="@name" />
<xsl:text> took </xsl:text>
<xsl:value-of select="@time" />
<xsl:choose>
<xsl:when test="failure"><xsl:text> FAILURE </xsl:text><xsl:apply-templates select="failure"/></xsl:when>
<xsl:when test="error"><xsl:text> ERROR </xsl:text><xsl:apply-templates select="error"/></xsl:when>
<xsl:otherwise><xsl:text> SUCCESS</xsl:text></xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template match="error | failure">
<xsl:value-of select="@message" />
<xsl:if test="@type != @message">
<xsl:text> </xsl:text><xsl:value-of select="@type" />
</xsl:if>
<xsl:text>
</xsl:text>
<xsl:value-of select="." />
</xsl:template>

<xsl:template match="system-out">
<xsl:text>
------ Standard output ------
</xsl:text>
<xsl:value-of select="." />
</xsl:template>

<xsl:template match="system-err">
<xsl:text>
------ Error output ------
</xsl:text>
<xsl:value-of select="." />
</xsl:template>

</xsl:stylesheet>
14 changes: 7 additions & 7 deletions scripts/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ def enum(**enums):


def error(content):
print "{color_error}{content}{color_end}" \
.format(color_error=OUTPUT_COLORS.ERROR, content=str(content), color_end=OUTPUT_COLORS.ENDC)
print u"{color_error}{content}{color_end}".encode('utf8') \
.format(color_error=OUTPUT_COLORS.ERROR, content=str(content.encode('utf8')), color_end=OUTPUT_COLORS.ENDC)


def warn(content):
print "{color_error}{content}{color_end}" \
.format(color_error=OUTPUT_COLORS.WARN, content=str(content), color_end=OUTPUT_COLORS.ENDC)
print u"{color_error}{content}{color_end}".encode('utf8') \
.format(color_error=OUTPUT_COLORS.WARN, content=str(content.encode('utf8')), color_end=OUTPUT_COLORS.ENDC).encode('utf8')


def ok(content):
print "{color_error}{content}{color_end}" \
.format(color_error=OUTPUT_COLORS.OK, content=str(content), color_end=OUTPUT_COLORS.ENDC)
print u"{color_error}{content}{color_end}".encode('utf8') \
.format(color_error=OUTPUT_COLORS.OK, content=str(content.encode('utf8')), color_end=OUTPUT_COLORS.ENDC).encode('utf8')


def neutral(content):
print content
print content.encode('utf8')
Loading

0 comments on commit cbcc4de

Please sign in to comment.