Skip to content

Commit 1a2b4cd

Browse files
Version 4.1.1
-> Version number is now a String to support patch -> Version number needs only to be change once in the pom files and once in Constants -> GithubVersionCheck now refers to my repository -> AboutDialog shows the repository instead of the user
1 parent b45f101 commit 1a2b4cd

9 files changed

Lines changed: 21 additions & 24 deletions

File tree

Core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>de.tor.dswb</groupId>
66
<artifactId>dsworkbench</artifactId>
7-
<version>4.1</version>
7+
<version>${revision}</version>
88
</parent>
99

1010
<modelVersion>4.0.0</modelVersion>

Core/src/main/java/de/tor/tribes/ui/windows/AboutDialog.form

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
6767
<Color blue="ff" green="33" red="0" type="rgb"/>
6868
</Property>
69-
<Property name="text" type="java.lang.String" value="https://github.com/extremeCrazyCoder"/>
69+
<Property name="text" type="java.lang.String" value="https://github.com/extremeCrazyCoder/dsworkbench"/>
7070
<Property name="toolTipText" type="java.lang.String" value=""/>
7171
</Properties>
7272
<Events>

Core/src/main/java/de/tor/tribes/ui/windows/AboutDialog.java

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private void initComponents() {
8989
getContentPane().add(jLabelWeb, gridBagConstraints);
9090

9191
jLabelWebLink.setForeground(new java.awt.Color(0, 51, 255));
92-
jLabelWebLink.setText("https://github.com/extremeCrazyCoder");
92+
jLabelWebLink.setText("https://github.com/extremeCrazyCoder/dsworkbench");
9393
jLabelWebLink.setToolTipText("");
9494
jLabelWebLink.addMouseListener(new java.awt.event.MouseAdapter() {
9595
public void mouseClicked(java.awt.event.MouseEvent evt) {
@@ -216,20 +216,16 @@ private void buildSystemInfo() {
216216
* @param args the command line arguments
217217
*/
218218
public static void main(String args[]) {
219-
java.awt.EventQueue.invokeLater(new Runnable() {
220-
221-
@Override
222-
public void run() {
223-
AboutDialog dialog = new AboutDialog(new javax.swing.JFrame(), true);
224-
dialog.addWindowListener(new java.awt.event.WindowAdapter() {
225-
226-
@Override
227-
public void windowClosing(java.awt.event.WindowEvent e) {
228-
System.exit(0);
229-
}
230-
});
231-
dialog.setVisible(true);
232-
}
219+
java.awt.EventQueue.invokeLater(() -> {
220+
AboutDialog dialog = new AboutDialog(new javax.swing.JFrame(), true);
221+
dialog.addWindowListener(new java.awt.event.WindowAdapter() {
222+
223+
@Override
224+
public void windowClosing(java.awt.event.WindowEvent e) {
225+
System.exit(0);
226+
}
227+
});
228+
dialog.setVisible(true);
233229
});
234230
}
235231
// Variables declaration - do not modify//GEN-BEGIN:variables

Core/src/main/java/de/tor/tribes/util/Constants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @author Torridity
2323
*/
2424
public class Constants {
25-
public final static double VERSION = 4.1;
25+
public final static String VERSION = "4.1.1";
2626
public final static String VERSION_ADDITION = "";
2727
public final static Color DS_BACK = new Color(225, 213, 190);
2828
public final static Color DS_BACK_LIGHT = new Color(239, 235, 223);

Core/src/main/java/de/tor/tribes/util/GithubVersionCheck.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
public final class GithubVersionCheck {
3535
private static final Logger LOGGER = LogManager.getLogger("GithubVersionCheck");
3636

37-
private static final String API_URL = "https://api.github.com/repos/torridity/dsworkbench/releases/latest";
37+
private static final String API_URL = "https://api.github.com/repos/extremeCrazyCoder/dsworkbench/releases/latest";
3838

3939
public static class UpdateInfo {
4040

@@ -105,7 +105,7 @@ public static UpdateInfo getUpdateInformation() {
105105
JSONObject latestRelease = new JSONObject(new String(result.toByteArray()));
106106
String latestTagName = (String) latestRelease.get("tag_name");
107107

108-
String ownVersion = Double.toString(Constants.VERSION) + Constants.VERSION_ADDITION;
108+
String ownVersion = Constants.VERSION + Constants.VERSION_ADDITION;
109109
if (ownVersion.equals(latestTagName)) {
110110
//no update available
111111
return UpdateInfo.factoryNoUpdateAvailableInfo();

Core/src/main/java/de/tor/tribes/util/html/AttackPlanHTMLExporter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ private static String replaceHeadFootVariables(String pBlock, String pPlanName,
411411
result = result.replace(SERVER, "-");
412412
}
413413
//replace version
414-
result = result.replace(VERSION, Double.toString(Constants.VERSION) + Constants.VERSION_ADDITION);
414+
result = result.replace(VERSION, Constants.VERSION + Constants.VERSION_ADDITION);
415415
//replace creation date
416416
SimpleDateFormat f = TimeManager.getSimpleDateFormat("dd.MM.yyyy 'um' HH:mm:ss 'Uhr'");
417417
result = result.replace(CREATION_DATE, f.format(new Date(System.currentTimeMillis())));

Core/src/main/java/de/tor/tribes/util/html/SelectionHTMLExporter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public static void doExport(File pHtmlFile, List<Village> pVillages) {
271271

272272
// <editor-fold defaultstate="collapsed" desc=" build footer">
273273
String foot = FOOTER;
274-
foot = foot.replace(VERSION, Double.toString(Constants.VERSION) + Constants.VERSION_ADDITION);
274+
foot = foot.replace(VERSION, Constants.VERSION + Constants.VERSION_ADDITION);
275275

276276
SimpleDateFormat f = TimeManager.getSimpleDateFormat("dd.MM.yyyy 'um' HH:mm:ss 'Uhr'");
277277

ParserPlugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>de.tor.dswb</groupId>
66
<artifactId>dsworkbench</artifactId>
7-
<version>4.1</version>
7+
<version>${revision}</version>
88
</parent>
99

1010
<modelVersion>4.0.0</modelVersion>

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<artifactId>dsworkbench</artifactId>
77
<name>DSWorkbench</name>
88
<packaging>pom</packaging>
9-
<version>4.1</version>
9+
<version>${revision}</version>
1010

1111
<description>
1212
Parent project for DS Workbench. The project contains two modules: core and plugins which are put together
@@ -17,6 +17,7 @@
1717
<properties>
1818
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1919
<release.version>${project.version}</release.version>
20+
<revision>4.1.1</revision>
2021
</properties>
2122

2223
<repositories>

0 commit comments

Comments
 (0)