You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by "Mark A. Claassen" <MC...@ocie.net> on 2019/11/27 13:58:10 UTC

Problems compiling layer.xml for custom module

I wrote a plugin for a VCS system that we use called AccuRev.  I wrote this for Netbeans version 7.  Because I used some internal APIs and was not a "friend" of some modules, I needed to recompile it for every version.  However, to Netbeans credit, I have always been able to do that without changing my code!

I currently have a version that works with Apache Netbeans 11.1.  I downloaded 11.2 this morning and I could not get the compile to work.  I am getting an error when it is examining my layer.xml file.  Hopefully this is just something I can fix in the XML header.

Any guidance would be appreciated.  Thanks.

Here is a sample of the errors I am getting:
    ...\src\org\netbeans\modules\accurev\layer.xml:3:13: Element type "filesystem" must be declared.
    ...\src\org\netbeans\modules\accurev\layer.xml:4:25: Element type "folder" must be declared.
    ...\src\org\netbeans\modules\accurev\layer.xml:5:26: Element type "folder" must be declared.
    ...\src\org\netbeans\modules\accurev\layer.xml:6:74: Element type "file" must be declared.
    ...\src\org\netbeans\modules\accurev\layer.xml:7:95: Element type "attr" must be declared.

Here is part of my layer.xml file

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN"     "http://www.netbeans.org/dtds/filesystem-1_2.dtd">
    <filesystem>
        <folder name="Actions">
            <folder name="Accurev">
                <file name="org-netbeans-modules-accurev-actions-StatAction.instance">
                    <attr name="instanceClass" stringvalue="org.netbeans.modules.accurev.actions.StatAction"/>
                </file>


Mark Claassen
Senior Software Engineer

Donnell Systems, Inc.
130 South Main Street
Leighton Plaza Suite 375
South Bend, IN  46601
E-mail: mailto:mclaassen@ocie.net
Voice: (574)232-3784
Fax: (574)232-4014

Disclaimer:
The opinions provided herein do not necessarily state or reflect 
those of Donnell Systems, Inc.(DSI). DSI makes no warranty for and 
assumes no legal liability or responsibility for the posting. 


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

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




RE: Problems compiling layer.xml for custom module

Posted by "Mark A. Claassen" <MC...@ocie.net>.
Awesome!  Worked like a champ after the update using that update center link you provided.

Thanks!

Mark Claassen
Senior Software Engineer

Donnell Systems, Inc.
130 South Main Street
Leighton Plaza Suite 375
South Bend, IN  46601
E-mail: mailto:mclaassen@ocie.net
Voice: (574)232-3784
Fax: (574)232-4014

Disclaimer:
The opinions provided herein do not necessarily state or reflect 
those of Donnell Systems, Inc.(DSI). DSI makes no warranty for and 
assumes no legal liability or responsibility for the posting. 


-----Original Message-----
From: Neil C Smith <ne...@apache.org> 
Sent: Wednesday, November 27, 2019 11:12 AM
To: dev <de...@netbeans.apache.org>
Subject: Re: Problems compiling layer.xml for custom module

On Wed, 27 Nov 2019 at 16:06, Mark A. Claassen <MC...@ocie.net> wrote:
> Wow.  The Netbeans community is pretty great!  I will wait for the updated daily builds to refresh and give it a try.

The daily builds should have been fixed a few days ago, but you could also try adding the temporary update centre in the vote thread to 11.2 under Tools / Plugins / Settings.  Feedback on whether applying the update there fixes this issue in all cases would be welcomed.

https://netbeans.apache.org/nb/updates/11.2/updates.xml.u1

Thanks,

Neil

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

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




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

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




Re: Problems compiling layer.xml for custom module

Posted by Neil C Smith <ne...@apache.org>.
On Wed, 27 Nov 2019 at 16:06, Mark A. Claassen <MC...@ocie.net> wrote:
> Wow.  The Netbeans community is pretty great!  I will wait for the updated daily builds to refresh and give it a try.

The daily builds should have been fixed a few days ago, but you could
also try adding the temporary update centre in the vote thread to 11.2
under Tools / Plugins / Settings.  Feedback on whether applying the
update there fixes this issue in all cases would be welcomed.

https://netbeans.apache.org/nb/updates/11.2/updates.xml.u1

Thanks,

Neil

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

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




RE: Problems compiling layer.xml for custom module

Posted by "Mark A. Claassen" <MC...@ocie.net>.
Wow.  The Netbeans community is pretty great!  I will wait for the updated daily builds to refresh and give it a try.

Mark Claassen
Senior Software Engineer

Donnell Systems, Inc.
130 South Main Street
Leighton Plaza Suite 375
South Bend, IN  46601
E-mail: mailto:mclaassen@ocie.net
Voice: (574)232-3784
Fax: (574)232-4014

Disclaimer:
The opinions provided herein do not necessarily state or reflect 
those of Donnell Systems, Inc.(DSI). DSI makes no warranty for and 
assumes no legal liability or responsibility for the posting. 


-----Original Message-----
From: Neil C Smith <ne...@apache.org> 
Sent: Wednesday, November 27, 2019 9:05 AM
To: dev <de...@netbeans.apache.org>
Subject: Re: Problems compiling layer.xml for custom module

On Wed, 27 Nov 2019 at 14:01, joe foe <jf...@gmail.com> wrote:
>
> This is known problem with 11.2 .  See NETBEANS-3290 in netbeans JiRA.
>
> Alternative is to use 11.1 .

I am literally as I type pushing the update that should fix this for
11.2 via SVN for update vote.  Once that is done, your feedback during the vote on whether this solves that issue will be welcomed!

Best wishes,

Neil

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

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




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

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




Re: Problems compiling layer.xml for custom module

Posted by Neil C Smith <ne...@apache.org>.
On Wed, 27 Nov 2019 at 14:01, joe foe <jf...@gmail.com> wrote:
>
> This is known problem with 11.2 .  See NETBEANS-3290 in netbeans JiRA.
>
> Alternative is to use 11.1 .

I am literally as I type pushing the update that should fix this for
11.2 via SVN for update vote.  Once that is done, your feedback during
the vote on whether this solves that issue will be welcomed!

Best wishes,

Neil

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

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




Re: Problems compiling layer.xml for custom module

Posted by joe foe <jf...@gmail.com>.
This is known problem with 11.2 .  See NETBEANS-3290 in netbeans JiRA.

Alternative is to use 11.1 .


On Wed, 27 Nov 2019, 14:58 Mark A. Claassen, <MC...@ocie.net> wrote:

> I wrote a plugin for a VCS system that we use called AccuRev.  I wrote
> this for Netbeans version 7.  Because I used some internal APIs and was not
> a "friend" of some modules, I needed to recompile it for every version.
> However, to Netbeans credit, I have always been able to do that without
> changing my code!
>
> I currently have a version that works with Apache Netbeans 11.1.  I
> downloaded 11.2 this morning and I could not get the compile to work.  I am
> getting an error when it is examining my layer.xml file.  Hopefully this is
> just something I can fix in the XML header.
>
> Any guidance would be appreciated.  Thanks.
>
> Here is a sample of the errors I am getting:
>     ...\src\org\netbeans\modules\accurev\layer.xml:3:13: Element type
> "filesystem" must be declared.
>     ...\src\org\netbeans\modules\accurev\layer.xml:4:25: Element type
> "folder" must be declared.
>     ...\src\org\netbeans\modules\accurev\layer.xml:5:26: Element type
> "folder" must be declared.
>     ...\src\org\netbeans\modules\accurev\layer.xml:6:74: Element type
> "file" must be declared.
>     ...\src\org\netbeans\modules\accurev\layer.xml:7:95: Element type
> "attr" must be declared.
>
> Here is part of my layer.xml file
>
>     <?xml version="1.0" encoding="UTF-8"?>
>     <!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN"     "
> http://www.netbeans.org/dtds/filesystem-1_2.dtd">
>     <filesystem>
>         <folder name="Actions">
>             <folder name="Accurev">
>                 <file
> name="org-netbeans-modules-accurev-actions-StatAction.instance">
>                     <attr name="instanceClass"
> stringvalue="org.netbeans.modules.accurev.actions.StatAction"/>
>                 </file>
>
>
> Mark Claassen
> Senior Software Engineer
>
> Donnell Systems, Inc.
> 130 South Main Street
> Leighton Plaza Suite 375
> South Bend, IN  46601
> E-mail: mailto:mclaassen@ocie.net
> Voice: (574)232-3784
> Fax: (574)232-4014
>
> Disclaimer:
> The opinions provided herein do not necessarily state or reflect
> those of Donnell Systems, Inc.(DSI). DSI makes no warranty for and
> assumes no legal liability or responsibility for the posting.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>