[netbeans] branch master updated: Avoid spurious errors when loading projects.

2022-03-22 Thread lkishalmi
This is an automated email from the ASF dual-hosted git repository.

lkishalmi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
 new 7af2fb9  Avoid spurious errors when loading projects.
7af2fb9 is described below

commit 7af2fb9cd31a252f940002cec32fdb68c36fd421
Author: Svata Dedic 
AuthorDate: Mon Mar 21 19:48:34 2022 +0100

Avoid spurious errors when loading projects.
---
 .../gradle/tooling/NbProjectInfoBuilder.java| 21 +++--
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git 
a/extide/gradle/netbeans-gradle-tooling/src/main/java/org/netbeans/modules/gradle/tooling/NbProjectInfoBuilder.java
 
b/extide/gradle/netbeans-gradle-tooling/src/main/java/org/netbeans/modules/gradle/tooling/NbProjectInfoBuilder.java
index 467f1c2..46dc3b7 100644
--- 
a/extide/gradle/netbeans-gradle-tooling/src/main/java/org/netbeans/modules/gradle/tooling/NbProjectInfoBuilder.java
+++ 
b/extide/gradle/netbeans-gradle-tooling/src/main/java/org/netbeans/modules/gradle/tooling/NbProjectInfoBuilder.java
@@ -292,7 +292,7 @@ class NbProjectInfoBuilder {
 try {
 compilerArgs = (List) 
getProperty(compileTask, "options", "compilerArgs");
 } catch (Throwable ex2) {
-compilerArgs = (List) 
getProperty(compileTask, "kotlinOptions", "getFreeCompilerArgs");
+compilerArgs = (List) 
getProperty(compileTask, "kotlinOptions", "freeCompilerArgs");
 }
 }
 model.getInfo().put(propBase + lang + 
"_compiler_args", new ArrayList<>(compilerArgs));
@@ -400,6 +400,12 @@ class NbProjectInfoBuilder {
 Map unresolvedProblems = new HashMap();
 Map> resolvedJvmArtifacts = new HashMap();
 Set visibleConfigurations = configurationsToSave();
+
+// NETBEANS-5846: if this project uses javaPlatform plugin with 
dependencies enabled, 
+// do not report unresolved problems
+boolean ignoreUnresolvable = 
(project.getPlugins().hasPlugin(JavaPlatformPlugin.class) && 
+Boolean.TRUE.equals(getProperty(project, "javaPlatform", 
"allowDependencies")));
+
 visibleConfigurations.forEach(it -> {
 String propBase = "configuration_" + it.getName() + "_";
 model.getInfo().put(propBase + "non_resolving", !resolvable(it));
@@ -438,10 +444,11 @@ class NbProjectInfoBuilder {
 if(componentIds.contains(id)) {
 unresolvedIds.add(id);
 }
-if(! 
project.getPlugins().hasPlugin("java-platform")) {
+if(!ignoreUnresolvable && (it.isVisible() || 
it.isCanBeConsumed())) {
+// hidden configurations like 
'testCodeCoverageReportExecutionData' might contain unresolvable artifacts.
+// do not report problems here
 unresolvedProblems.put(id, 
((UnresolvedDependencyResult) it2).getFailure().getMessage());
 }
-unresolvedProblems.put(id, 
udr.getFailure().getMessage());
 }
 });
 } catch (ResolveException ex) {
@@ -557,13 +564,7 @@ class NbProjectInfoBuilder {
 model.getExt().put("resolved_sources_artifacts", 
resolvedSourcesArtifacts);
 model.getExt().put("resolved_javadoc_artifacts", 
resolvedJavadocArtifacts);
 model.getInfo().put("project_dependencies", projects);
-// NETBEANS-5846: if this project uses javaPlatform plugin with 
dependencies enabled, 
-// do not report unresolved problems
-if (!(project.getPlugins().hasPlugin(JavaPlatformPlugin.class) && 
-Boolean.TRUE.equals(getProperty(project, "javaPlatform", 
"allowDependencies" {
-
-model.getInfo().put("unresolved_problems", unresolvedProblems);
-}
+model.getInfo().put("unresolved_problems", unresolvedProblems);
 model.registerPerf("dependencies", System.currentTimeMillis() - time);
 }
 

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[netbeans-jenkins-lib] branch master updated (1588a0e -> 58d12f3)

2022-03-22 Thread johnmcdonnell
This is an automated email from the ASF dual-hosted git repository.

johnmcdonnell pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans-jenkins-lib.git.


from 1588a0e  add qa-functional and use cluster in place of module
 new 827fb12  Adding an argument for supporting an Apple Developer ID 
Application Certificate
 new 307883f  Adding argument to support Developer Cert to sign .app
 new 58d12f3  Merge pull request #56 from 
mcdonnell-john/feature/fixing-mac-installer

The 292 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 resources/org/apache/netbeans/installermac.sh | 17 +
 1 file changed, 9 insertions(+), 8 deletions(-)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[netbeans] branch master updated: [3697] Removed invalid cpp package reference and introduces support for sign… (#3699)

2022-03-22 Thread johnmcdonnell
This is an automated email from the ASF dual-hosted git repository.

johnmcdonnell pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
 new 47d1973  [3697] Removed invalid cpp package reference and introduces 
support for sign… (#3699)
47d1973 is described below

commit 47d19733d85a17d739c12ef84732a42b1f928367
Author: John McDonnell 
AuthorDate: Tue Mar 22 20:52:27 2022 +

[3697] Removed invalid cpp package reference and introduces support for 
sign… (#3699)

Updated the macOS installer logic to:
* Remove the reference to the invalid cpp package
* Sign each pkg (and sign the offending native binaries, which the Apple 
notarization process reported)
---
 nbbuild/installer/mac/newbuild/build.sh| 27 +
 nbbuild/installer/mac/newbuild/build.xml   | 21 +--
 .../mac/newbuild/commonfiles/signNativeBinaries.sh | 66 ++
 .../mac/newbuild/dmg/distribution-nbide.dist   |  2 +-
 .../installer/mac/newbuild/dmg/distribution.dist   |  2 +-
 .../mac/newbuild/netBeans/nbide/build.xml  | 21 +--
 nbbuild/installer/readme.txt   |  9 ++-
 nbbuild/newbuild/build-nbi.sh  |  8 +--
 8 files changed, 125 insertions(+), 31 deletions(-)

diff --git a/nbbuild/installer/mac/newbuild/build.sh 
b/nbbuild/installer/mac/newbuild/build.sh
index 70f6109..82225c3 100755
--- a/nbbuild/installer/mac/newbuild/build.sh
+++ b/nbbuild/installer/mac/newbuild/build.sh
@@ -23,16 +23,14 @@ set -x -e
 echo Given parameters: $1 $2 $3 $4 $5 $6
 
 if [ -z "$1" ] || [ -z "$2" ]|| [ -z "$3" ] || [ -z "$4" ] || [ -z "$5" ] || [ 
-z "$6" ] || [ -z "$7" ]; then
-echo "usage: $0 zipdir prefix buildnumber build_jdk7 build_jdk8 
build_jdk11 binaryname mac_sign_idname version_number [nb_locales]"
+echo "usage: $0 zipdir prefix buildnumber binaryname installer_sign_idname 
application_sign_idname version_number [nb_locales]"
 echo ""
 echo "zipdir is the dir which contains the zip/modulclusters"
 echo "prefix is the distro filename prefix, e.g. netbeans-hudson-trunk in 
netbeans-hudson-trunk-2464"
 echo "buildnumber is the distro buildnumber, e.g. 2464 in 
netbeans-hudson-trunk-2464"
-echo "build_jdk7 is 1 if bundle jdk7 are required and 0 if not"
-echo "build_jdk8 is 1 if bundle jdk8 are required and 0 if not"
-echo "build_jdk11 is 1 if bundle jdk11 are required and 0 if not"
 echo "binaryname is the basename of the zip file"
-echo "mac_sign_idname are required if the packages are to be signed, 0 if 
not"
+echo "installer_sign_idname are required if the packages are to be signed, 
0 if not"
+echo "application_sign_idname are required if the packages are to be 
signed, 0 if not"
 echo "version_number the netbeans version number"
 echo "[nb_locales] is the string with the list of locales"
 exit 1
@@ -41,14 +39,15 @@ fi
 work_dir=$1
 prefix=$2
 buildnumber=$3
-build_jdk7=$4
-build_jdk8=$5
-build_jdk11=$6
-binaryname=$7
-mac_sign_idname=$8
-version_number=$9
-if [ -n "${10}" ] ; then
-  nb_locales=",${10}"
+build_jdk7=0
+build_jdk8=0
+build_jdk11=0
+binaryname=$4
+installer_sign_idname=$5
+application_sign_idname=$6
+version_number=$7
+if [ -n "${8}" ] ; then
+  nb_locales=",${8}"
 fi
 
 basename=`dirname "$0"`
@@ -76,5 +75,5 @@ fi
 
 rm -rf "$basename"/dist_en
 
-ant -f $basename/build.xml $target -Dlocales=$nb_locales 
-Dcommon.name=$commonname -Dnb.binary.name=$binaryname 
-Dmac.sign.idname="$mac_sign_idname" -Dprefix=$prefix 
-Dbuildnumber=$buildnumber -Dversionnumber=$version_number 
-Dbuild.jdk7=$build_jdk7 -Dbuild.jdk8=$build_jdk8 -Dbuild.jdk11=$build_jdk11 
-Dgf_builds_host=$GLASSFISH_BUILDS_HOST -Djre_builds_host=$JRE_BUILDS_HOST 
-Djdk_builds_host=$JDK_BUILDS_HOST -Djre_builds_path=$JRE_BUILDS_PATH 
-Djdk7_builds_path=$JDK7_BUILDS_PATH -Djdk8_b [...]
+ant -f $basename/build.xml $target -Dlocales=$nb_locales 
-Dcommon.name=$commonname -Dnb.binary.name=$binaryname 
-Dinstaller.sign.idname="$installer_sign_idname" 
-Dapplication.sign.idname="$application_sign_idname" -Dprefix=$prefix 
-Dbuildnumber=$buildnumber -Dversionnumber=$version_number 
-Dbuild.jdk7=$build_jdk7 -Dbuild.jdk8=$build_jdk8 -Dbuild.jdk11=$build_jdk11 
-Dgf_builds_host=$GLASSFISH_BUILDS_HOST -Djre_builds_host=$JRE_BUILDS_HOST 
-Djdk_builds_host=$JDK_BUILDS_HOST -Djre_builds_pa [...]
 mv -f "$basename"/dist "$basename"/dist_en
diff --git a/nbbuild/installer/mac/newbuild/build.xml 
b/nbbuild/installer/mac/newbuild/build.xml
index c6a37c5..5700cab 100644
--- a/nbbuild/installer/mac/newbuild/build.xml
+++ b/nbbuild/installer/mac/newbuild/build.xml
@@ -25,7 +25,7 @@
 
 
 
-
+
 
 
 
@@ -108,7 +108,7 @@
 
 
 
-
+
 
 
 
@@ -139,7 +139,20 @@
 
 

svn commit: r53294 - in /release/netbeans/netbeans-installers/13: Apache-NetBeans-13-bin-macosx.dmg Apache-NetBeans-13-bin-macosx.dmg.asc Apache-NetBeans-13-bin-macosx.dmg.sha512

2022-03-22 Thread johnmcdonnell
Author: johnmcdonnell
Date: Tue Mar 22 20:35:28 2022
New Revision: 53294

Log:
Releasing Apache NetBeans 13 macOS Installer

Added:
release/netbeans/netbeans-installers/13/Apache-NetBeans-13-bin-macosx.dmg
  - copied unchanged from r53291, 
dev/netbeans/netbeans-installers/13/Apache-NetBeans-13-bin-macosx.dmg

release/netbeans/netbeans-installers/13/Apache-NetBeans-13-bin-macosx.dmg.asc
  - copied unchanged from r53291, 
dev/netbeans/netbeans-installers/13/Apache-NetBeans-13-bin-macosx.dmg.asc

release/netbeans/netbeans-installers/13/Apache-NetBeans-13-bin-macosx.dmg.sha512
  - copied unchanged from r53291, 
dev/netbeans/netbeans-installers/13/Apache-NetBeans-13-bin-macosx.dmg.sha512


-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[netbeans-html4j] branch master updated: Automatic handling of Interrupted executions with PhaseExecutor

2022-03-22 Thread jtulach
This is an automated email from the ASF dual-hosted git repository.

jtulach pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans-html4j.git


The following commit(s) were added to refs/heads/master by this push:
 new 1e398f8  Automatic handling of Interrupted executions with 
PhaseExecutor
1e398f8 is described below

commit 1e398f86e740ba4aebef9457e0bea2dadf651b56
Author: Jaroslav Tulach 
AuthorDate: Tue Mar 22 18:35:46 2022 +0100

Automatic handling of Interrupted executions with PhaseExecutor
---
 .../net/java/html/json/tests/GCKnockoutTest.java   |  59 +-
 .../java/net/java/html/json/tests/JSONTest.java| 438 ++---
 .../net/java/html/json/tests/KnockoutTest.java | 694 +++--
 .../java/html/json/tests/ObtainAndComputeTest.java |  77 ++-
 .../net/java/html/json/tests/PhaseExecutor.java| 111 
 .../main/java/net/java/html/json/tests/Utils.java  |   2 +-
 6 files changed, 780 insertions(+), 601 deletions(-)

diff --git 
a/json-tck/src/main/java/net/java/html/json/tests/GCKnockoutTest.java 
b/json-tck/src/main/java/net/java/html/json/tests/GCKnockoutTest.java
index 4024c57..527e4e9 100644
--- a/json-tck/src/main/java/net/java/html/json/tests/GCKnockoutTest.java
+++ b/json-tck/src/main/java/net/java/html/json/tests/GCKnockoutTest.java
@@ -31,6 +31,8 @@ import static net.java.html.json.tests.Utils.assertEquals;
 @Property(name = "all", type = Fullname.class, array = true)
 })
 public class GCKnockoutTest {
+private final PhaseExecutor[] phases = { null };
+
 @Model(className = "Fullname", properties = {
 @Property(name = "firstName", type = String.class),
 @Property(name = "lastName", type = String.class)
@@ -38,42 +40,55 @@ public class GCKnockoutTest {
 static class FullnameCntrl {
 }
 
-@KOTest public void noLongerNeededArrayElementsCanDisappear() throws 
Exception {
-BrwsrCtx ctx = Utils.newContext(GCKnockoutTest.class);
-Object exp = Utils.exposeHTML(GCKnockoutTest.class, """
-
-  
-
-""");
-try {
+class Data {
+GC m;
+BrwsrCtx ctx;
+Fullname removed;
+
+Data(GC m, BrwsrCtx ctx) {
+this.m = m;
+this.ctx = ctx;
+}
+}
+
+@KOTest
+public void noLongerNeededArrayElementsCanDisappear() throws Exception {
+PhaseExecutor.schedule(phases, () -> {
+BrwsrCtx ctx = Utils.newContext(GCKnockoutTest.class);
+Object exp = Utils.exposeHTML(GCKnockoutTest.class, """
+
+  
+
+""");
 GC m = Models.bind(new GC(), ctx);
 m.getAll().add(Models.bind(new Fullname("Jarda", "Tulach"), ctx));
 Models.applyBindings(m);
-
+return new Data(m, ctx);
+}).then((data) -> {
 int cnt = Utils.countChildren(GCKnockoutTest.class, "ul");
 assertEquals(cnt, 1, "One child, but was " + cnt);
 
-m.getAll().add(Models.bind(new Fullname("HTML", "Java"), ctx));
-
-cnt = Utils.countChildren(GCKnockoutTest.class, "ul");
+var m = data.m;
+m.getAll().add(Models.bind(new Fullname("HTML", "Java"), 
data.ctx));
+}).then((data) -> {
+int cnt = Utils.countChildren(GCKnockoutTest.class, "ul");
 assertEquals(cnt, 2, "Now two " + cnt);
 
-Fullname removed = m.getAll().remove(0);
-
-cnt = Utils.countChildren(GCKnockoutTest.class, "ul");
+data.removed = data.m.getAll().remove(0);
+}).then((data) -> {
+var cnt = Utils.countChildren(GCKnockoutTest.class, "ul");
 assertEquals(cnt, 1, "Again One " + cnt);
 
-Reference ref = new WeakReference(removed);
-removed = null;
+Reference ref = new WeakReference(data.removed);
+data.removed = null;
 assertGC(ref, "Can removed object disappear?");
 
-ref = new WeakReference(m);
-m = null;
+ref = new WeakReference(data.m);
+data.m = null;
 assertNotGC(ref, "Root model cannot GC");
-} finally {
+}).finalize((data) -> {
 Utils.exposeHTML(GCKnockoutTest.class, "");
-}
-
+}).start();
 }
 
 private void assertGC(Reference ref, String msg) throws Exception {
diff --git a/json-tck/src/main/java/net/java/html/json/tests/JSONTest.java 
b/json-tck/src/main/java/net/java/html/json/tests/JSONTest.java
index f88a201..5aaf4c8 100644
--- a/json-tck/src/main/java/net/java/html/json/tests/JSONTest.java
+++ b/json-tck/src/main/java/net/java/html/json/tests/JSONTest.java
@@ -21,8 +21,6 @@ package net.java.html.json.tes

[netbeans-jenkins-lib] branch master updated: add qa-functional and use cluster in place of module

2022-03-22 Thread skygo
This is an automated email from the ASF dual-hosted git repository.

skygo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans-jenkins-lib.git


The following commit(s) were added to refs/heads/master by this push:
 new 1588a0e  add qa-functional and use cluster in place of module
1588a0e is described below

commit 1588a0e11807b18b64c7831f47d5d73c6fc5e236
Author: Eric Barboni 
AuthorDate: Tue Mar 22 17:38:06 2022 +0100

add qa-functional and use cluster in place of module
---
 jobs/Jenkinsmatrixfile.groovy | 21 -
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/jobs/Jenkinsmatrixfile.groovy b/jobs/Jenkinsmatrixfile.groovy
index be5db0a..0228f21 100644
--- a/jobs/Jenkinsmatrixfile.groovy
+++ b/jobs/Jenkinsmatrixfile.groovy
@@ -46,7 +46,7 @@ pipeline {
 
 }
 }
-stage ("EffectiveMatrix")
+stage ("EffectiveMatrixClustersUNITQA")
 {
 matrix {
 agent { node { label 'ubuntu' } }
@@ -57,7 +57,7 @@ pipeline {
 values 'jdk_1.8_latest', 'jdk_11_latest', 
'jdk_17_latest'
 }
 axis {
-name 'MODULE'
+name 'CLUSTER'
 values 'platform', 'ide'
 }
 }
@@ -72,19 +72,20 @@ pipeline {
 unstash 'idebuildzip'
 unzip  zipFile: 'nbbuild/build/testdist.zip', 
dir:'testdir'
 unzip  zipFile: 'zip/NetBeansIDE.zip', 
dir:'netbeans'
-sh "mkdir -p 
${WORKSPACE}/result/unit/${env.JDK}/${env.MODULE} "
+sh "mkdir -p 
${WORKSPACE}/result/unit/${env.JDK}/${env.CLUSTER} "
 sh 'java -version'
 //sh 'ant -version'
 // this is not finished
 wrap([$class: 'Xvfb', additionalOptions: '', 
assignedLabels: '', displayNameOffset: 0, autoDisplayName:true, 
installationName: 'Xvfb', parallelBuild: true, screen: '']) {
 // echo to return 0 and go further
-sh "ant -f ${WORKSPACE}/testdir/build.xml 
-Dtest-sys-prop.ignore.random.failures=true 
-Dtest.results.dir=${WORKSPACE}/result/unit/${env.JDK}/${env.MODULE} 
-Dtest.clusters=${env.MODULE} -Dtest.types=unit 
-Dnetbeans.dest.dir=${WORKSPACE}/netbeans/netbeans || echo Failed "
+// do unit ant put in result folder
+sh "ant -f ${WORKSPACE}/testdir/build.xml 
-Dtest-sys-prop.ignore.random.failures=true 
-Dtest.results.dir=${WORKSPACE}/result/unit/${env.JDK}/${env.CLUSTER} 
-Dtest.types=unit -Dtest.clusters=${env.CLUSTER} 
-Dnetbeans.dest.dir=${WORKSPACE}/netbeans/netbeans || echo Failed "
+// do qa-functional and put in result 
folder
+sh "ant -f ${WORKSPACE}/testdir/build.xml 
-Dtest-sys-prop.ignore.random.failures=true 
-Dtest.results.dir=${WORKSPACE}/result/qa-functional/${env.JDK}/${env.CLUSTER} 
-Dtest.types=qa-functional -Dtest.clusters=${env.CLUSTER} 
-Dnetbeans.dest.dir=${WORKSPACE}/netbeans/netbeans || echo Failed "
+
 }
-// do not use TESTS- as it's redundant with 
TEST- (inverted to check report readability)
-junit 
"result/unit/${env.JDK}/${env.MODULE}/**/TESTS-*.xml"
-//sh "ant -f ${WORKSPACE}/testdir/build.xml 
-Dtest.clusters=${env.MODULE} -Dtest.types=qa-functional 
-Dnetbeans.dest.dir=${WORKSPACE}/netbeans/netbeans"
-// html can be done but unusable from jenkins
-//archiveArtifacts artifacts: 
"result/unit/${env.JDK}/${env.MODULE}/**/*"
+archiveArtifacts artifacts: 
"result/unit/${env.JDK}/${env.CLUSTER}/**/*"
+archiveArtifacts artifacts: 
"result/qa-functional/${env.JDK}/${env.CLUSTER}/**/*"
 }
 }
 
@@ -93,6 +94,8 @@ pipeline {
 
 }
 }
+
+  /* */
 }
 post {
 cleanup {

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[netbeans-jenkins-lib] branch master updated: weekly run for matrix

2022-03-22 Thread skygo
This is an automated email from the ASF dual-hosted git repository.

skygo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans-jenkins-lib.git


The following commit(s) were added to refs/heads/master by this push:
 new d7a501f  weekly run for matrix
d7a501f is described below

commit d7a501ffb63434e41693ac45173fd0fd60851930
Author: Eric Barboni 
AuthorDate: Tue Mar 22 17:34:36 2022 +0100

weekly run for matrix
---
 jobs/netbeanstestmatrix.groovy | 11 ++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/jobs/netbeanstestmatrix.groovy b/jobs/netbeanstestmatrix.groovy
index 1a7dd53..36fc4c0 100644
--- a/jobs/netbeanstestmatrix.groovy
+++ b/jobs/netbeanstestmatrix.groovy
@@ -26,7 +26,16 @@ pipelineJob('NetBeans/netbeans-matrix') {
 script(readFileFromWorkspace('jobs/Jenkinsmatrixfile.groovy'))
 sandbox()
 }
-}
+}
+properties {
+pipelineTriggers {
+triggers {
+cron { 
+spec ('@weekly')
+}
+}
+}
+}
 }
 
 

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Closed] (NETBEANS-4826) Groovy completion tests fail when JavaIndexer reference in Groovy layer is fixed.

2022-03-22 Thread Petr Pisl (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Petr Pisl closed NETBEANS-4826.
---
Fix Version/s: 12.0.2
   Resolution: Fixed

Fixed together with this this PR: 
[https://github.com/apache/netbeans/pull/3802/]

The PR contains also other fixes of these problems:
 * static fields and methods are offered as fields and methods in import 
statements code completion - they were previously offered as classes in code 
completion.
 * correcting types of constructors that are strored in Groovy Index
 * JavaElementHandles now are created with the fully qualifed names, there were 
created only with simple names.
 * adding [@trusted|https://github.com/trusted] annotation for 
ForwardingJavaFileObject implementations

> Groovy completion tests fail when JavaIndexer reference in Groovy layer is 
> fixed.
> -
>
> Key: NETBEANS-4826
> URL: https://issues.apache.org/jira/browse/NETBEANS-4826
> Project: NetBeans
>  Issue Type: Bug
>  Components: groovy - Editor
>Reporter: Svatopluk Dedic
>Assignee: Petr Pisl
>Priority: Major
>  Labels: pull-request-available
> Fix For: 12.0.2
>
>  Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> For reference see [PR-2359|https://github.com/apache/netbeans/pull/2359]. The 
> JavaIndexer .shadow file is broken (fails commit-validation task), but when 
> fixed, tests in Groovy editor fail. Possibly the tests need to be updated 
> appropriately.
> I've removed (commented out) the indexer, as it was ineffective for years, 
> but the change should be reviewed / fixed by someone knowledgeable in Groovy 
> code.
> Setting as major, as having / not having Java indexer may have quite an 
> impact on the project's symbols.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[netbeans] branch master updated (4781968 -> 0f6c41e)

2022-03-22 Thread ppisl
This is an automated email from the ASF dual-hosted git repository.

ppisl pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git.


from 4781968  Fix Gradle --warning-mode all action to work with any Gradle 
release
 new b9983a7  [NETBEANS-4826] Groovy completion tests fail when JavaIndexer 
reference in Groovy layer is fixed.
 new 1d89b26  Improving the code.
 new 0f6c41e  Merge pull request #3802 from ppisl/NETBEANS-4826

The 6770 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../modules/groovy/editor/api/GroovyIndexer.java   |  9 
 .../editor/api/completion/CaretLocation.java   |  1 +
 .../editor/api/completion/CompletionItem.java  | 11 +-
 .../api/completion/util/CompletionContext.java | 11 +-
 .../groovy/editor/completion/TypesCompletion.java  | 21 +--
 .../modules/groovy/editor/resources/layer.xml  |  6 ++
 .../test/unit/data/testfiles/Hello.groovy.indexed  |  4 ++--
 ...on.groovy.testStaticImportCompletion.completion |  4 ++--
 groovy.testSingleton3_withoutPrefix.completion |  2 +-
 .../modules/java/source/JavaSourceUtilImpl.java|  2 ++
 .../parsing/ForwardingInferableJavaFileObject.java |  2 ++
 .../ForwardingPrefetchableJavaFileObject.java  |  2 ++
 .../source/parsing/MultiReleaseJarFileObject.java  |  2 ++
 .../source/usages/VirtualSourceProviderQuery.java  | 24 +++---
 .../java/source/parsing/FileObjectsTest.java   |  2 ++
 15 files changed, 75 insertions(+), 28 deletions(-)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[netbeans] branch master updated: Fix Gradle --warning-mode all action to work with any Gradle release

2022-03-22 Thread lkishalmi
This is an automated email from the ASF dual-hosted git repository.

lkishalmi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
 new 4781968  Fix Gradle --warning-mode all action to work with any Gradle 
release
4781968 is described below

commit 47819684b4147ecb0fc89793f9270740c4bfc1d0
Author: Laszlo Kishalmi 
AuthorDate: Mon Mar 21 12:31:31 2022 -0700

Fix Gradle --warning-mode all action to work with any Gradle release
---
 .../src/org/netbeans/modules/gradle/output/GradleProcessorFactory.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/extide/gradle/src/org/netbeans/modules/gradle/output/GradleProcessorFactory.java
 
b/extide/gradle/src/org/netbeans/modules/gradle/output/GradleProcessorFactory.java
index e608a8c..5743362 100644
--- 
a/extide/gradle/src/org/netbeans/modules/gradle/output/GradleProcessorFactory.java
+++ 
b/extide/gradle/src/org/netbeans/modules/gradle/output/GradleProcessorFactory.java
@@ -189,7 +189,7 @@ public class GradleProcessorFactory implements 
OutputProcessorFactory {
 
 static class WarningModeAllProcessor implements OutputProcessor {
 
-private static Pattern WARNING_MODE_ALL = Pattern.compile("(You can 
use ')(\\-\\-warning\\-mode all)('.+)");
+private static Pattern WARNING_MODE_ALL = Pattern.compile("(.+ 
')(\\-\\-warning\\-mode all)('.+)");
 final RunConfig cfg;
 
 public WarningModeAllProcessor(RunConfig cfg) {

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[netbeans] branch master updated: Cleanup a lot of warnings that deal with LinkedList raw types. (#3819)

2022-03-22 Thread bwalker
This is an automated email from the ASF dual-hosted git repository.

bwalker pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
 new e8691d5  Cleanup a lot of warnings that deal with LinkedList raw 
types. (#3819)
e8691d5 is described below

commit e8691d5f6fec35b99f3388ebd9b9cca5cb16ee63
Author: Brad Walker 
AuthorDate: Tue Mar 22 06:26:13 2022 -0400

Cleanup a lot of warnings that deal with LinkedList raw types. (#3819)

[repeat] 
/home/bwalker/src/netbeans/java/dbschema/src/org/netbeans/modules/dbschema/jdbcimpl/SchemaElementImpl.java:316:
 warning: [rawtypes] found raw type: LinkedList
   [repeat] LinkedList result = new LinkedList<>();
   [repeat] ^
   [repeat]   missing type arguments for generic class LinkedList
   [repeat]   where E is a type-variable:

There are a few remaining ones that I did not touch. These are related to 
the methods being public and requiring changes or instances where
I would have to do major code work.
---
 .../glassfish/tooling/server/FetchLogPiped.java|  4 +--
 .../j2ee/ddloaders/multiview/CmpFieldsNode.java|  2 +-
 .../multiview/EntityAndSessionHelper.java  |  2 +-
 .../j2ee/ddloaders/multiview/EntityHelper.java |  6 ++--
 .../payara/tooling/admin/ProcessIOParser.java  |  2 +-
 .../websvc/manager/ui/TestWebServiceMethodDlg.java |  2 +-
 .../modules/xml/dtd/grammar/DTDGrammar.java|  8 ++---
 .../modules/xml/multiview/SectionNode.java |  2 +-
 .../netbeans/modules/ant/debugger/AntDebugger.java |  2 +-
 .../netbeans/modules/ant/debugger/IOManager.java   |  2 +-
 .../dbschema/jdbcimpl/IndexElementImpl.java|  2 +-
 .../modules/dbschema/jdbcimpl/MetaDataUtil.java|  5 ++-
 .../dbschema/jdbcimpl/SchemaElementImpl.java   | 41 +++---
 .../dbschema/jdbcimpl/TableElementImpl.java|  4 +--
 .../modules/dbschema/jdbcimpl/ViewDependency.java  |  4 +--
 .../entity/generator/EntitiesFromDBGenerator.java  |  2 +-
 .../persistence/editor/completion/db/Schema.java   |  4 +--
 .../refactoring/InspectAndRefactorPanel.java   |  4 +--
 .../nbproject/project.properties   |  2 +-
 .../org/openide/execution/NbClassPathCompat.java   |  2 +-
 .../html/knockout/KOJsEmbeddingProviderPlugin.java |  2 +-
 21 files changed, 51 insertions(+), 53 deletions(-)

diff --git 
a/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/server/FetchLogPiped.java
 
b/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/server/FetchLogPiped.java
index e06d5ac..4242c45 100644
--- 
a/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/server/FetchLogPiped.java
+++ 
b/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/server/FetchLogPiped.java
@@ -176,7 +176,7 @@ public abstract class FetchLogPiped
 FetchLogPiped(final GlassFishServer server, boolean skip) {
 super(server, skip);
 final String METHOD = "init";
-this.eventListeners = new LinkedList();
+this.eventListeners = new LinkedList<>();
 try {
 out = new PipedOutputStream((PipedInputStream)this.in);
 } catch (IOException ioe) {
@@ -218,7 +218,7 @@ public abstract class FetchLogPiped
 boolean skip) {
 super(server, skip);
 final String METHOD = "init";
-this.eventListeners = new LinkedList();
+this.eventListeners = new LinkedList<>();
 try {
 out = new PipedOutputStream((PipedInputStream)this.in);
 } catch (IOException ioe) {
diff --git 
a/enterprise/j2ee.ddloaders/src/org/netbeans/modules/j2ee/ddloaders/multiview/CmpFieldsNode.java
 
b/enterprise/j2ee.ddloaders/src/org/netbeans/modules/j2ee/ddloaders/multiview/CmpFieldsNode.java
index 134ddd1..b0dad63 100644
--- 
a/enterprise/j2ee.ddloaders/src/org/netbeans/modules/j2ee/ddloaders/multiview/CmpFieldsNode.java
+++ 
b/enterprise/j2ee.ddloaders/src/org/netbeans/modules/j2ee/ddloaders/multiview/CmpFieldsNode.java
@@ -89,7 +89,7 @@ public class CmpFieldsNode extends EjbSectionNode {
 }
 } else if (element instanceof CmpField[]) {
 final List list1 = Arrays.asList(cmpFields.getCmpFields());
-final List list2 = new LinkedList(Arrays.asList((CmpField[]) 
element));
+final List list2 = new LinkedList<>(Arrays.asList((CmpField[]) 
element));
 if (list1.size() == list2.size()) {
 list2.removeAll(list1);
 if (list2.size() == 0) {
diff --git 
a/enterprise/j2ee.ddloaders/src/org/netbeans/modules/j2ee/ddloaders/multiview/EntityAndSessionHelper.java
 
b/enterprise/j2ee.ddloaders/src/org/netbeans/modules/j2ee/ddloaders/multiview/EntityAndSessionHelper.java
index c0ea76a..03e4664 100644
--- 
a/enterprise/j2ee.ddloaders/src/org/netbeans/modules/j2ee/ddload