Skip to content

Commit

Permalink
Version 1.4.0
Browse files Browse the repository at this point in the history
* Switch to NetBeans 11.2
* Run maven in single thread since multithread throws a NullPointerException
  • Loading branch information
Redande committed Jan 9, 2020
1 parent fc4e558 commit 1aafd7a
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ SplashVersionTextFontType=Dialog
SplashVersionTextColor=0x000000
SplashVersionTextHorizontalAlignment=right

currentVersion=Netbeans with TMC 1.3.0
currentVersion=Netbeans with TMC 1.4.0
LBL_splash_window_title=Starting Netbeans with TMC

MSG_warning=NetBeans with TMC IDE - Warning
Expand Down
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<target name="-check-mavenmodules">
<uptodate property="mavenmodules.uptodate"
srcfile="maven-wrapper/target/nbm/maven-wrapper-1.31.nbm"
srcfile="maven-wrapper/target/nbm/maven-wrapper-1.32.nbm"
targetfile="mavenmodules"/>
</target>

Expand Down
2 changes: 1 addition & 1 deletion maven-wrapper/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>fi.helsinki.cs.tmc</groupId>
<artifactId>maven-wrapper</artifactId>
<version>1.31</version>
<version>1.32</version>
<packaging>nbm</packaging>

<name>TMC Maven Wrapper</name>
Expand Down
2 changes: 1 addition & 1 deletion nbproject/platform.properties
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ nbjdk.active=default
# org.openide.execution,\
# org.openide.options,\
# org.openide.util.enumerations
nbplatform.active=Apache_NetBeans_IDE_11.1
nbplatform.active=Apache_NetBeans_IDE_11.2
2 changes: 1 addition & 1 deletion tmc-plugin/manifest.mf
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ OpenIDE-Module-Requires:
org.openide.windows.IOProvider,
org.openide.windows.WindowManager
OpenIDE-Module-Install: fi/helsinki/cs/tmc/actions/TmcModuleInstall.class
OpenIDE-Module-Specification-Version: 1.3.0
OpenIDE-Module-Specification-Version: 1.4.0
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public FixUnoptimalSettings() {
public void run() {
fixMavenDependencyDownloadPolicy();
fixMavenIndexingPolicy();
fixMavenMultiThreadIssue();
}

private void fixMavenDependencyDownloadPolicy() {
Expand All @@ -39,6 +40,13 @@ private void fixMavenDependencyDownloadPolicy() {
}
}

private void fixMavenMultiThreadIssue() {
final String setting = mavenPrefrences.get("defaultOptions", "");
if (!setting.contains("-T=1 -q")) {
mavenPrefrences.put("defaultOptions", "-T=1 -q");
}
}

private void fixMavenIndexingPolicy() {
final String disableIndexingValue = indexingPreferences.get("createIndex", "");
if (!disableIndexingValue.equals("false")) {
Expand Down

0 comments on commit 1aafd7a

Please sign in to comment.