Skip to content

Commit

Permalink
Modified build.xml to automatically zip run scripts and add version t…
Browse files Browse the repository at this point in the history
…o zip file name. New --sequential option.
  • Loading branch information
chhh committed May 25, 2017
1 parent ef3cd0c commit 1ad7348
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 8 deletions.
7 changes: 7 additions & 0 deletions MSFragger-GUI/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@
<property name="store.dir" value="dist"/>
<property name="temp.dir" value="temp"/>
<property name="store.jar" value="${store.dir}/${store.jar.name}.jar"/>
<property file="src/umich/msfragger/gui/Bundle.properties"/>
<property name="store.zip" value="${store.dir}/${store.jar.name}_v${msfragger.gui.version}.zip"/>

<echo message="Packaging ${application.title} into a single JAR at ${store.jar}"/>

Expand All @@ -104,6 +106,11 @@

<delete dir="${temp.dir}"/>

<zip destfile="${store.zip}">
<fileset dir="${store.dir}" includes="*.jar"/>
<fileset dir="start-scripts"/>
</zip>

</target>

</project>
17 changes: 14 additions & 3 deletions MSFragger-GUI/src/umich/msfragger/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,26 @@
*/
package umich.msfragger;

import javax.swing.JOptionPane;

/**
*
* @author Dmitry Avtonomov
*/
public class Version {
public static final String version = "v2.2";

public static final String PROP_VER = "msfragger.gui.version";
public static final String VERSION = "2.3";

public static String getVersion() {
return version;
java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("umich/msfragger/gui/Bundle"); // NOI18N
String val = bundle.getString(PROP_VER);
if (!VERSION.equals(val)) {
JOptionPane.showMessageDialog(null, String.format(
"Version in the bundle (%s) doesn't match hardcoded value (%s).\n"
+ "Have you modified MSFragger-GUI.jar/umich/msfragger/gui/Bundle.properties?", val, VERSION),
"Version mismatch", JOptionPane.WARNING_MESSAGE);
}
return VERSION;
}


Expand Down
6 changes: 3 additions & 3 deletions MSFragger-GUI/src/umich/msfragger/gui/Bundle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# To change this license header, choose License Headers in Project Properties.
# To change this template file, choose Tools | Templates
# and open the template in the editor.

msfragger.gui.version=2.3
default.msfragger.jar=MSFragger.jar
default.msconvert.win=msconvert.exe
default.msconvert.nix=msconvert
Expand All @@ -12,6 +12,6 @@ proteinprophet.cmd.line.opts.closed=
proteinprophet.cmd.line.opts.open=--maxppmdiff 20.0
peptideprophet.cmd.line.opts.closed=--nonparam --expectscore --accmass --decoy rev --decoyprobs
peptideprophet.cmd.line.opts.open=--nonparam --expectscore --decoy rev --decoyprobs --masswidth 500.0
report.filter.closed=
report.filter.open=--mapmods
report.filter.closed=--sequential
report.filter.open=--mapmods --sequential
default.prot.xml.filename=interact.prot.xml
4 changes: 2 additions & 2 deletions MSFragger-GUI/src/umich/msfragger/gui/MsfraggerGuiFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public MsfraggerGuiFrame() {

private void initMore() {

setTitle("MSFragger GUI (" + Version.getVersion() + ")");
setTitle("MSFragger GUI (v" + Version.getVersion() + ")");

console = new TextConsole();
consoleScrollPane.setViewportView(console);
Expand Down Expand Up @@ -1181,7 +1181,7 @@ private void btnAboutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRS

JEditorPane ep = new JEditorPane("text/html", "<html><body style=\"" + style + "\">"
+ "MSFragger - Ultrafast Proteomics Search Engine<br/>"
+ "GUI Wrapper (" + Version.getVersion() + ")<br/>"
+ "GUI Wrapper (v" + Version.getVersion() + ")<br/>"
+ "Dmitry Avtonomov<br/>"
+ "University of Michigan, 2017<br/>"
+ "<a href=\"http://nesvilab.org/\">Alexey Nesvizhskii lab</a><br/>&nbsp;<br/>&nbsp;"
Expand Down

0 comments on commit 1ad7348

Please sign in to comment.