Re: Module build fails in IDE but works on command line

2019-10-13 Thread Jaroslav Tulach
st 9. 10. 2019 v 20:15 odesílatel Siddhesh Rane 
napsal:

> October 9, 2019 10:21 AM, "Jaroslav Tulach" 
> wrote:
>
> > Looks like the deprecated
> >
> >> Class org.netbeans.modules.openfile.PackagePanel
> >> "E1.2 - API type removed" : method public java.awt.peer.ComponentPeer
> >
> > java.awt.Component.getPeer()
> >> anno 0 java.lang.Deprecated()
> >
> > method got removed. If that is true, we will have to update the
> `.sigfile`
> > (or files) and remove the line requesting the method.
> > -tj
>
> So basically this method is removed in JDK 11 but not in JDK 8.
> If I set the project Properties > Library > Java Platform to JDK 8, it
> should compile in the IDE as well.
> However this does not happen. This seems to be a bug. Ant only compiles
> with the jdk it is run with, which
> is JDK 11 inside the IDE and JDK 8 on command line, ignoring the project
> setting.
>

Right. It is possible that sigtest ignores "nbjdk.home" property and runs
on JDK the Ant is running at. That would be a bug. The file that needs to
be fixed in such case is at nbbuild/antsrc/org/netbeans/nbbuild/Sigtest.java
-jt


Re: Module build fails in IDE but works on command line

2019-10-10 Thread Christian Oyarzun
Setting locations of the JDK to JDK8 in the netbeans.conf file should allow
it to work in the IDE.

netbeans_jdkhome="/path/to/jdk8"

On Thu, Oct 10, 2019 at 4:09 AM Jens Hofschröer  wrote:

> Am 09.10.2019 um 20:08 schrieb Siddhesh Rane:
> > October 9, 2019 10:21 AM, "Jaroslav Tulach" 
> wrote:
> >
> >> Looks like the deprecated
> >>
> >>> Class org.netbeans.modules.openfile.PackagePanel
> >>> "E1.2 - API type removed" : method public java.awt.peer.ComponentPeer
> >>
> >> java.awt.Component.getPeer()
> >>> anno 0 java.lang.Deprecated()
> >>
> >> method got removed. If that is true, we will have to update the
> `.sigfile`
> >> (or files) and remove the line requesting the method.
> >> -tj
> >
> > So basically this method is removed in JDK 11 but not in JDK 8.
> > If I set the project Properties > Library > Java Platform to JDK 8, it
> should compile in the IDE as well.
> > However this does not happen. This seems to be a bug. Ant only compiles
> with the jdk it is run with, which
> > is JDK 11 inside the IDE and JDK 8 on command line, ignoring the project
> setting.
> No. Ant is running inside the same JVM as the IDE. So Ant itself is
> using JDK11 and compiles against JDK8. There is (currently) no way to
> run Ant in a separate task other that run the command line.
>
> Jens
>
> --
> http://blog.nigjo.de/netbeans
> threema://add?id=3Y279Z3U
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: dev-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>


Re: Module build fails in IDE but works on command line

2019-10-10 Thread Jens Hofschröer

Am 09.10.2019 um 20:08 schrieb Siddhesh Rane:

October 9, 2019 10:21 AM, "Jaroslav Tulach"  wrote:


Looks like the deprecated


Class org.netbeans.modules.openfile.PackagePanel
"E1.2 - API type removed" : method public java.awt.peer.ComponentPeer


java.awt.Component.getPeer()

anno 0 java.lang.Deprecated()


method got removed. If that is true, we will have to update the `.sigfile`
(or files) and remove the line requesting the method.
-tj


So basically this method is removed in JDK 11 but not in JDK 8.
If I set the project Properties > Library > Java Platform to JDK 8, it should 
compile in the IDE as well.
However this does not happen. This seems to be a bug. Ant only compiles with 
the jdk it is run with, which
is JDK 11 inside the IDE and JDK 8 on command line, ignoring the project 
setting.
No. Ant is running inside the same JVM as the IDE. So Ant itself is 
using JDK11 and compiles against JDK8. There is (currently) no way to 
run Ant in a separate task other that run the command line.


Jens

--
http://blog.nigjo.de/netbeans
threema://add?id=3Y279Z3U

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

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





Re: Module build fails in IDE but works on command line

2019-10-09 Thread Siddhesh Rane
October 9, 2019 10:21 AM, "Jaroslav Tulach"  wrote:

> Looks like the deprecated
> 
>> Class org.netbeans.modules.openfile.PackagePanel
>> "E1.2 - API type removed" : method public java.awt.peer.ComponentPeer
> 
> java.awt.Component.getPeer()
>> anno 0 java.lang.Deprecated()
> 
> method got removed. If that is true, we will have to update the `.sigfile`
> (or files) and remove the line requesting the method.
> -tj

So basically this method is removed in JDK 11 but not in JDK 8.
If I set the project Properties > Library > Java Platform to JDK 8, it should 
compile in the IDE as well.
However this does not happen. This seems to be a bug. Ant only compiles with 
the jdk it is run with, which 
is JDK 11 inside the IDE and JDK 8 on command line, ignoring the project 
setting.

> st 2. 10. 2019 v 17:38 odesílatel Siddhesh Rane 
> napsal:
> 
>> I have been trying to compile the ide/utilities module from within
>> Netbeans 11.1 but it fails with an error related to api signature failing
>> (error pasted below).
>> The same module compiles fine if I call ant build on the command line in
>> the module directory.
>> In both the cases I have used the same ant binary that Netbeans uses and
>> my repo is currently at master (101c870) with no changes. I am running
>> Netbeans on JDK 11. On command line, ant runs on JDK 8
>> 
>> Regards
>> 
>> Siddhesh Rane
>> 
>> --- ERROR SNIPPET ---
>> Detected Java version: 11 in: /home/siddhesh/Applications/jdk-11.0.1
>> Detected OS: Linux
>> ...
>> -sigtest-init:
>> Skipping /home/siddhesh/NetBeansProjects/netbeans/ide/utilities/nbproject
>> because it already exists.
>> Property "spec.version.base" has not been set
>> Set property sigtest.class.path =
>> /home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-modules-quer
>> es.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/core/org-openide-filesyste
>> s.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/lib/org-openide-util.jar:/h
>> me/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/lib/org-openide-util-lookup.jar:/hom
>> /siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-modules-sendopts.
>> ar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/lib/boot.jar:/home/siddhesh/Ne
>> BeansProjects/netbeans/nbbuild/netbeans/platform/lib/org-openide-modules.jar:/home/siddhesh/NetBeans
>> rojects/netbeans/nbbuild/netbeans/platform/lib/org-openide-util-ui.jar:/home/siddhesh/NetBeansProjec
>> s/netbeans/nbbuild/netbeans/platform/modules/org-openide-actions.jar:/home/siddhesh/NetBeansProjects
>> netbeans/nbbuild/netbeans/platform/modules/org-openide-awt.jar:/home/siddhesh/NetBeansProjects/netbe
>> ns/nbbuild/netbeans/platform/modules/org-netbeans-api-annotations-common.jar:/home/siddhesh/NetBeans
>> rojects/netbeans/nbbuild/netbeans/platform/modules/org-openide-dialogs.jar:/home/siddhesh/NetBeansPr
>> jects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-api-progress.jar:/home/siddhesh/NetBea
>> sProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-api-progress-nb.jar:/home/siddhesh
>> NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-openide-explorer.jar:/home/siddhesh/
>> etBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-swing-outline.jar:/home/sidd
>> esh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-swing-tabcontrol.jar:/h
>> me/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-openide-windows.jar:/hom
>> /siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-openide-nodes.jar:/home/si
>> dhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-openide-text.jar:/home/siddhes
>> /NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-modules-editor-mimelookup.
>> ar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-openide-filesystem
>> -nb.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-openide-io.ja
>> :/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-api-intent.
>> ar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-api-io.ja
>> :/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-openide-loaders.jar:
>> home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-api-scripting
>> jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-api-temp
>> ates.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/ide/modules/org-netbeans-modules-
>> tilities.jar
>> Property "sigtest.skip.check" has not been set
>> Property "sigtest.gen.fail.on.error" has not been set
>> Found: nbproject/org-netbeans-modules-utilities.sig
>> Property "commit.mail" has not been set
>> Override ignored for property "sigtest.mail"
>> 

Re: Module build fails in IDE but works on command line

2019-10-08 Thread Jaroslav Tulach
Looks like the deprecated

> Class org.netbeans.modules.openfile.PackagePanel
>  "E1.2 - API type removed" : method public java.awt.peer.ComponentPeer
java.awt.Component.getPeer()
> anno 0 java.lang.Deprecated()

method got removed. If that is true, we will have to update the `.sigfile`
(or files) and remove the line requesting the method.
-tj


st 2. 10. 2019 v 17:38 odesílatel Siddhesh Rane 
napsal:

> I have been trying to compile the ide/utilities module from within
> Netbeans 11.1 but it fails with an error related to api signature failing
> (error pasted below).
> The same module compiles fine if I call ant build on the command line in
> the module directory.
> In both the cases I have used the same ant binary that Netbeans uses and
> my repo is currently at master (101c870) with no changes. I am running
> Netbeans on JDK 11. On command line, ant runs on JDK 8
>
> Regards
>
> Siddhesh Rane
>
> --- ERROR SNIPPET ---
> Detected Java version: 11 in: /home/siddhesh/Applications/jdk-11.0.1
> Detected OS: Linux
> ...
> -sigtest-init:
> Skipping /home/siddhesh/NetBeansProjects/netbeans/ide/utilities/nbproject
> because it already exists.
> Property "spec.version.base" has not been set
> Set property sigtest.class.path =
> /home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-modules-queries.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/core/org-openide-filesystems.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/lib/org-openide-util.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/lib/org-openide-util-lookup.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-modules-sendopts.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/lib/boot.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/lib/org-openide-modules.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/lib/org-openide-util-ui.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-openide-actions.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-openide-awt.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-api-annotations-common.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-openide-dialogs.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-api-progress.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-api-progress-nb.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-openide-explorer.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-swing-outline.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-swing-tabcontrol.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-openide-windows.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-openide-nodes.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-openide-text.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-modules-editor-mimelookup.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-openide-filesystems-nb.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-openide-io.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-api-intent.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-api-io.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-openide-loaders.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-api-scripting.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-api-templates.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/ide/modules/org-netbeans-modules-utilities.jar
> Property "sigtest.skip.check" has not been set
> Property "sigtest.gen.fail.on.error" has not been set
> Found: nbproject/org-netbeans-modules-utilities.sig
> Property "commit.mail" has not been set
> Override ignored for property "sigtest.mail"
> sigtest check: ide/utilities; cnb: org-netbeans-modules-utilities; email:
> api-chan...@netbeans.org; type: check
> check-sigtest:
> Skipping
> /home/siddhesh/NetBeansProjects/netbeans/ide/utilities/build/test/sigtest/results
> because it already exists.
>
> /home/siddhesh/NetBeansProjects/netbeans/ide/utilities/build/test/sigtest/results/org.netbeans.modules.utilities
> Packages: org.netbeans.modules.openfile.*, org.netbeans.modules.search.*
> email: api-chan...@netbeans.org
> SignatureTest report
> Base version: 1.66
> Tested version: 1.67
> Check mode: bin