Svatopluk Dedic created NETBEANS-6308:
-----------------------------------------
Summary: Spurious exceptions logged in the ide log file
Key: NETBEANS-6308
URL: https://issues.apache.org/jira/browse/NETBEANS-6308
Project: NetBeans
Issue Type: Bug
Components: projects - Gradle
Affects Versions: 12.6
Reporter: Svatopluk Dedic
Assignee: Laszlo Kishalmi
When the IDE is configured to prefer gradle wrapper, it checks whether the
wrapper configuration is present; if not, it logs the following into the log
file:
{code:java}
INFO [org.netbeans.modules.gradle.execute.GradleDistributionProviderImpl]:
Cannot evaulate Gradle Wrapper
java.io.FileNotFoundException: Gradle Wrapper properties not found at:
/space/src/vscode/netbeans/extide/gradle/build/test/unit/work/o.n.m.g.l.D/testInitialLoadProject/projectA/gradle/wrapper/gradle-wrapper.properties
at
org.netbeans.modules.gradle.api.execute.GradleDistributionManager.getWrapperDistributionURI(GradleDistributionManager.java:257)
at
org.netbeans.modules.gradle.api.execute.GradleDistributionManager.distributionFromWrapper(GradleDistributionManager.java:215)
[catch] at
org.netbeans.modules.gradle.execute.GradleDistributionProviderImpl.getGradleDistribution(GradleDistributionProviderImpl.java:106)
at
org.netbeans.modules.gradle.GradleProjectConnection.getConnection(GradleProjectConnection.java:125)
at
org.netbeans.modules.gradle.GradleProjectConnection.action(GradleProjectConnection.java:89)
at
org.netbeans.modules.gradle.loaders.LegacyProjectLoader.createInfoAction(LegacyProjectLoader.java:202)
at
org.netbeans.modules.gradle.loaders.LegacyProjectLoader.retrieveProjectInfo(LegacyProjectLoader.java:250)
at
org.netbeans.modules.gradle.loaders.LegacyProjectLoader.loadGradleProject(LegacyProjectLoader.java:145)
at
org.netbeans.modules.gradle.loaders.LegacyProjectLoader.access$100(LegacyProjectLoader.java:68)
at
org.netbeans.modules.gradle.loaders.LegacyProjectLoader$ProjectLoaderTask.call(LegacyProjectLoader.java:294)
at
org.netbeans.modules.gradle.loaders.LegacyProjectLoader$ProjectLoaderTask.call(LegacyProjectLoader.java:263)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
INFO [org.netbeans.modules.gradle.execute.GradleDistributionProviderImpl]:
Gradle Distribution for Gradle: projectA[FALLBACK] is
GradleDistribution{gradleUserHome=/home/sdedic/.gradle,
distributionDir=/home/sdedic/.gradle/wrapper/dists/gradle-7.3-bin/ddwl0k7mt9g6ak16i1m905vyv/gradle-7.3,
distributionURI=https://services.gradle.org/distributions/gradle-7.3-bin.zip,
version=Gradle 7.3}692331943
{code}
The message should not be probably logged at the INFO level, as it is quite
normal situation and project configuration style (not using wrapper at all).
If the user should be informed (as using wrapper is more reliable, after all),
then a status message or a bubble would be more appropriate.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists