Skip to content

Commit

Permalink
Partially merge changes from master.
Browse files Browse the repository at this point in the history
  • Loading branch information
meier-rene committed Oct 21, 2024
1 parent 56b72d7 commit 88a42ab
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 21 deletions.
2 changes: 1 addition & 1 deletion MetFragCommandLine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>de.ipbhalle.metfrag</groupId>
<artifactId>MetFrag</artifactId>
<version>2.5.0</version>
<version>2.5.1</version>
</parent>
<groupId>de.ipbhalle.metfrag.commandline</groupId>
<artifactId>MetFragCommandLine</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion MetFragLib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>de.ipbhalle.metfrag</groupId>
<artifactId>MetFrag</artifactId>
<version>2.5.0</version>
<version>2.5.1</version>
</parent>
<packaging>jar</packaging>
<groupId>de.ipbhalle.metfraglib</groupId>
Expand Down
2 changes: 1 addition & 1 deletion MetFragR/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>de.ipbhalle.metfrag</groupId>
<artifactId>MetFrag</artifactId>
<version>2.5.0</version>
<version>2.5.1</version>
</parent>
<groupId>de.ipbhalle.metfrag.r</groupId>
<artifactId>MetFragR</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion MetFragRest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>de.ipbhalle.metfrag</groupId>
<artifactId>MetFrag</artifactId>
<version>2.5.0</version>
<version>2.5.1</version>
</parent>
<groupId>de.ipbhalle.metfrag.metfragrest</groupId>
<artifactId>MetFragRest</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion MetFragTools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>de.ipbhalle.metfrag</groupId>
<artifactId>MetFrag</artifactId>
<version>2.5.0</version>
<version>2.5.1</version>
</parent>
<groupId>de.ipbhalle.metfrag.tools</groupId>
<artifactId>MetFragTools</artifactId>
Expand Down
6 changes: 1 addition & 5 deletions MetFragWeb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>de.ipbhalle.metfrag</groupId>
<artifactId>MetFrag</artifactId>
<version>2.5.0</version>
<version>2.5.1</version>
</parent>
<groupId>de.ipbhalle.metfragweb</groupId>
<artifactId>MetFragWeb</artifactId>
Expand Down Expand Up @@ -54,10 +54,6 @@
<groupId>org.apache.commons</groupId>
<artifactId>commons-email</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>commons-fileupload</groupId>-->
<!-- <artifactId>commons-fileupload</artifactId>-->
<!-- </dependency>-->
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
import org.primefaces.model.chart.LineChartModel;
import org.primefaces.model.chart.LineChartSeries;

import org.primefaces.model.DefaultStreamedContent.Builder;

import de.ipbhalle.metfraglib.additionals.MathTools;
import de.ipbhalle.metfraglib.exceptions.AtomTypeNotKnownFromInputListException;
import de.ipbhalle.metfraglib.imagegenerator.HighlightSubStructureImageGenerator;
Expand Down Expand Up @@ -76,7 +78,7 @@
@SessionScoped
public class MetFragWebBean {

private final String version = "v2.5.0";
private final String version = "v2.5.1";
/*
* combines all the settings
*/
Expand Down Expand Up @@ -2014,7 +2016,11 @@ public org.primefaces.model.StreamedContent getDownloadParameters() {
try {
resource = this.beanSettingsContainer.getUserOutputDataHandler().getDownloadParameters(this.errorMessages, pathToProperties);
} catch(Exception e) {
resource = DefaultStreamedContent.builder().contentType("application/zip").name("MetFragWeb_Parameters.zip").stream(() -> System.in).build();
resource = DefaultStreamedContent.builder()
.name("MetFragWeb_Parameters.zip")
.contentType("application/zip")
.stream(() -> System.in)
.build();
}
return resource;
}
Expand Down Expand Up @@ -2703,7 +2709,12 @@ public void closeScoresView() {
* @return
*/
public org.primefaces.model.StreamedContent generateCandidateDownloadFile() {
org.primefaces.model.StreamedContent resource = DefaultStreamedContent.builder().contentType("application/vnd.ms-excel").name("MetFragWeb_Candidate.xls").stream(() -> System.in).build();
org.primefaces.model.StreamedContent resource = DefaultStreamedContent.builder()
.name("MetFragWeb_Candidate.xls")
.contentType("application/vnd.ms-excel")
.stream(() -> System.in)
.build();

try {
resource = this.beanSettingsContainer.getUserOutputDataHandler().generatedCandidateDownloadFile(this.currentScoreCandidate, this.beanSettingsContainer.getMetFragSettings());
} catch (Exception e1) {
Expand Down
16 changes: 8 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.ipbhalle.metfrag</groupId>
<artifactId>MetFrag</artifactId>
<version>2.5.0</version>
<version>2.5.1</version>
<packaging>pom</packaging>
<name>MetFrag</name>
<modules>
Expand All @@ -24,7 +24,7 @@
<dependency>
<groupId>de.ipbhalle.metfraglib</groupId>
<artifactId>MetFragLib</artifactId>
<version>2.5.0</version>
<version>2.5.1</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down Expand Up @@ -108,18 +108,18 @@
<dependency>
<groupId>org.omnifaces</groupId>
<artifactId>omnifaces</artifactId>
<version>4.0</version>
<version>3.13</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-email</artifactId>
<version>1.5</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>commons-fileupload</groupId>-->
<!-- <artifactId>commons-fileupload</artifactId>-->
<!-- <version>1.4</version>-->
<!-- </dependency>-->
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.5</version>
</dependency>
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
Expand Down

0 comments on commit 88a42ab

Please sign in to comment.