File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
tmc-plugin/src/fi/helsinki/cs/tmc/model Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 35
35
import java .util .List ;
36
36
import java .util .Map ;
37
37
import java .util .zip .GZIPOutputStream ;
38
- import org .openide .modules .Modules ;
39
38
40
39
/**
41
40
* A frontend for the server.
41
+ *
42
+ * @deprecated Users are suggested to rely on the tmc-core instead of this implementation.
42
43
*/
44
+ @ Deprecated
43
45
public class ServerAccess {
44
46
public static final int API_VERSION = 7 ;
45
-
47
+
46
48
private NbTmcSettings settings ;
47
49
private CourseListParser courseListParser ;
48
50
private CourseInfoParser courseInfoParser ;
49
51
private ReviewListParser reviewListParser ;
50
52
private String clientVersion ;
51
53
private TmcCore tmcCore ;
52
-
54
+
53
55
public ServerAccess () {
54
56
this (NbTmcSettings .getDefault ());
55
57
}
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ public TmcProjectFile getTmcProjectFile() {
59
59
}
60
60
61
61
//TODO: a more robust/elegant/extensible project type recognition system
62
+ @ Deprecated
62
63
public TmcProjectType getProjectType () {
63
64
String pd = getProjectDirAbsPath ();
64
65
if (new File (pd + File .separatorChar + "pom.xml" ).exists ()) {
@@ -70,6 +71,7 @@ public TmcProjectType getProjectType() {
70
71
}
71
72
}
72
73
74
+ @ Deprecated
73
75
public RecursiveZipper .ZippingDecider getZippingDecider () {
74
76
if (getProjectType () == TmcProjectType .JAVA_MAVEN ) {
75
77
return new MavenZippingDecider (this );
@@ -92,6 +94,7 @@ public int hashCode() {
92
94
return project .hashCode ();
93
95
}
94
96
97
+ @ Deprecated
95
98
private abstract static class AbstractZippingDecider implements RecursiveZipper .ZippingDecider {
96
99
97
100
protected TmcProjectInfo projectInfo ;
@@ -137,6 +140,7 @@ public boolean shouldZip(String zipPath) {
137
140
}
138
141
}
139
142
143
+ @ Deprecated
140
144
private static class DefaultZippingDecider extends AbstractZippingDecider {
141
145
142
146
public DefaultZippingDecider (TmcProjectInfo projectInfo ) {
@@ -149,6 +153,7 @@ protected boolean isProbablySourceFile(String zipPath) {
149
153
}
150
154
}
151
155
156
+ @ Deprecated
152
157
private static class MavenZippingDecider extends AbstractZippingDecider {
153
158
154
159
private static final Pattern rejectPattern = Pattern .compile ("^[^/]+/(target|lib/testrunner)/.*" );
You can’t perform that action at this time.
0 commit comments