Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

Commit 6c0ff39

Browse files
committed
Version 0.9.3
* Add a Windows installer * Update checkstyle * Update dependencies' versions * Update readme * Fix bugs
1 parent 94cc4ff commit 6c0ff39

File tree

6 files changed

+162
-75
lines changed

6 files changed

+162
-75
lines changed

README.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ TMC-CLI is the command-line client for University of Helsinki's TestMyCode -fram
1717

1818
* Java Runtime Environment 8
1919
* Linux, Mac OS X or Microsoft Windows
20-
* Currently only limited support for Windows
2120
* Other Unix-like systems may work, but are not tested
2221
* If you want autocompletion, Bash or a Bash-compatible shell is required
2322

@@ -33,6 +32,14 @@ curl -0 https://raw.githubusercontent.com/testmycode/tmc-cli/master/scripts/inst
3332

3433
TMC-CLI should now be installed. You can try running it with `tmc` in a new terminal.
3534

35+
### Using the Windows installer
36+
37+
Download this [installer](https://github.com/testmycode/tmc-cli/blob/master/installers/TMC-cli_0.9.3_installer.exe)
38+
39+
Run the installation wizard.
40+
41+
TMC-CLI should now be installed. You can try running it with `tmc` in PowerShell/Command Prompt/other terminal software.
42+
3643
### Manual installation
3744

3845
Download the latest [release](https://github.com/testmycode/tmc-cli/releases/latest). If you use Linux or OS X, choose "tmc". If you use Windows, choose "tmc-cli-[VERSION].jar".
@@ -62,6 +69,10 @@ Now that you've installed tmc-cli, you can view all available commands by runnin
6269

6370
Delete tmc from the directory where you downloaded it, .tmc-autocomplete.sh from your home directory and remove 'source $HOME/.tmc-autocomplete' from your shell rc file.
6471

72+
### On Windows
73+
74+
If you installed TMC-cli with the installer-exe found in this repository's installers-folder, you can just navigate to where you installed TMC-cli (probably C:\Program Files\TMC-cli), and run the uninstaller `unins000.exe` there.
75+
6576
## Manual
6677

6778
The Unix man page for tmc-cli is located in docs/tmc.1 in this repository. To view it, open it with `man -l tmc.1`.

pom.xml

+13-17
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>fi.helsinki.cs.tmc.cli</groupId>
55
<artifactId>tmc-cli</artifactId>
6-
<version>0.9.2</version>
6+
<version>0.9.3</version>
77
<packaging>jar</packaging>
88
<properties>
99
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -14,16 +14,12 @@
1414

1515
<repositories>
1616
<repository>
17-
<id>tmc</id>
18-
<name>TMC repo</name>
19-
<url>http://maven.testmycode.net/nexus/content/groups/public</url>
20-
<releases>
21-
<enabled>true</enabled>
22-
</releases>
23-
<snapshots>
24-
<enabled>true</enabled>
25-
<updatePolicy>always</updatePolicy>
26-
</snapshots>
17+
<id>maven.mooc.fi.releases</id>
18+
<url>http://maven.mooc.fi/releases</url>
19+
</repository>
20+
<repository>
21+
<id>maven.mooc.fi.snapshots</id>
22+
<url>http://maven.mooc.fi/snapshots</url>
2723
</repository>
2824
</repositories>
2925

@@ -36,7 +32,7 @@
3632
<dependency>
3733
<groupId>fi.helsinki.cs.tmc</groupId>
3834
<artifactId>core</artifactId>
39-
<version>0.10.12-SNAPSHOT</version>
35+
<version>0.10.13-SNAPSHOT</version>
4036
</dependency>
4137
<dependency>
4238
<groupId>commons-cli</groupId>
@@ -46,7 +42,7 @@
4642
<dependency>
4743
<groupId>com.google.code.gson</groupId>
4844
<artifactId>gson</artifactId>
49-
<version>2.8.2</version>
45+
<version>2.8.6</version>
5046
<scope>compile</scope>
5147
</dependency>
5248
<dependency>
@@ -57,7 +53,7 @@
5753
<dependency>
5854
<groupId>org.slf4j</groupId>
5955
<artifactId>slf4j-log4j12</artifactId>
60-
<version>1.7.25</version>
56+
<version>1.7.30</version>
6157
</dependency>
6258
<dependency>
6359
<groupId>org.mockito</groupId>
@@ -198,20 +194,20 @@
198194
<plugin>
199195
<groupId>org.apache.maven.plugins</groupId>
200196
<artifactId>maven-checkstyle-plugin</artifactId>
201-
<version>2.17</version>
197+
<version>3.1.0</version>
202198
<configuration>
203199
<configLocation>${basedir}/src/main/resources/google_checks.xml</configLocation>
204200
<includeTestSourceDirectory>true</includeTestSourceDirectory>
205201
<encoding>UTF-8</encoding>
206202
<linkXRef>false</linkXRef>
207203
<failOnViolation>true</failOnViolation>
208-
<sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
204+
<sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
209205
</configuration>
210206
<dependencies>
211207
<dependency>
212208
<groupId>com.puppycrawl.tools</groupId>
213209
<artifactId>checkstyle</artifactId>
214-
<version>8.2</version>
210+
<version>8.28</version>
215211
</dependency>
216212
</dependencies>
217213
<executions>

src/main/java/fi/helsinki/cs/tmc/cli/Application.java

+7-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@
3333
import org.slf4j.Logger;
3434
import org.slf4j.LoggerFactory;
3535

36-
import java.util.*;
36+
import java.util.ArrayList;
37+
import java.util.Arrays;
38+
import java.util.Date;
39+
import java.util.List;
40+
import java.util.Map;
41+
import java.util.Optional;
42+
import java.util.Set;
3743

3844
/**
3945
* The application class for the program.

src/main/java/fi/helsinki/cs/tmc/cli/command/hidden/DocumentCommand.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ private String loadFile(String filename) {
235235
}
236236

237237
try {
238-
return IOUtils.toString(stream, StandardCharsets.UTF_8);
238+
return IOUtils.toString(stream, StandardCharsets.UTF_8.toString());
239239
} catch (IOException e) {
240240
io.errorln("Encoding failure... REALLY???");
241241
return null;

0 commit comments

Comments
 (0)