Skip to content

Commit

Permalink
v1.2.1 - Mavenized, built with maven from dependencies on Central, pr…
Browse files Browse the repository at this point in the history
…eparing to publish MSFTBX to Central as well
  • Loading branch information
chhh committed Mar 27, 2017
1 parent 0a9e510 commit 82dea9a
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/*
* Copyright 2016 Dmitry Avtonomov.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* Copyright 2016 Dmitry Avtonomov.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package umich.ms.fileio.filetypes;

import umich.ms.fileio.filetypes.mzml.MZMLFile;
Expand All @@ -33,7 +33,7 @@ public class LCMSDataSourceFactory {
* @param path
* @return null if the provided path was not recognized
*/
public LCMSDataSource<?> create(Path path) {
public static LCMSDataSource<?> create(Path path) {
path = path.toAbsolutePath();
String lowerCaseName = path.getFileName().toString().toLowerCase();
if (lowerCaseName.endsWith(".mzxml")) {
Expand Down
26 changes: 21 additions & 5 deletions MSFileToolbox/src/umich/ms/msfiletoolbox/MsftbxInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,34 @@

package umich.ms.msfiletoolbox;

import java.util.TreeMap;
import java.util.*;

/**
* @author Dmitry Avtonomov
*/
public class MsftbxInfo {
public static final String version = "1.2.0";
public static final String version = "1.2.1";

private static TreeMap<String, String> changelog = new TreeMap<>();
private static TreeMap<String, List<String>> changelog = new TreeMap<>();
private static Map<String, List<String>> changelogImmutable = Collections.unmodifiableMap(changelog);

static {
String v1_2_0 = "v1.2.0";
changelog.put(v1_2_0, "Added fragmentation energy and reaction time");
String v120 = "v1.2.0";
List<String> v120notes = new LinkedList<>();
v120notes.add("Added fragmentation energy and reaction time");
changelog.put(v120, v120notes);

String v121 = "v1.2.0";
List<String> v121notes = new LinkedList<>();
v120notes.add("Mavenized, published to Maven Central");
changelog.put(v121, v121notes);
}

public static String getVersion() {
return version;
}

public static Map<String, List<String>> getChangelog() {
return changelogImmutable;
}
}

0 comments on commit 82dea9a

Please sign in to comment.