You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Tim Boudreau (Jira)" <ji...@apache.org> on 2019/12/11 15:53:00 UTC

[jira] [Commented] (NETBEANS-3290) Cannot compile NB module with layer.xml

    [ https://issues.apache.org/jira/browse/NETBEANS-3290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16993651#comment-16993651 ] 

Tim Boudreau commented on NETBEANS-3290:
----------------------------------------

Also running into this.  And agree, there are plenty of reasons to still have a layer file - in my case it is a module which installs two editor themes and a look and feel, and there are no annotations to support doing everything it needs to do (such as setting the file attribute for the current theme so that on installation, the theme actually activates).

This makes any Ant module project with a layer unbuildable.

> Cannot compile NB module with layer.xml
> ---------------------------------------
>
>                 Key: NETBEANS-3290
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3290
>             Project: NetBeans
>          Issue Type: Bug
>          Components: apisupport - Project
>    Affects Versions: 11.2
>            Reporter: matteodg
>            Assignee: Eric Barboni
>            Priority: Critical
>              Labels: pull-request-available
>             Fix For: 11.3
>
>         Attachments: module1.zip
>
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> I created a simple NetBeans module (see attachment) then I added layer.xml and I got this error when compiling:
> {code:java}
> ant -f C:\\Users\\matteo\\Documents\\NetBeansProjects\\module1 -Dcontinue.after.failing.tests=true -Ddo.not.clean.module.config.xml=true clean build
> ...
> verify-class-linkage:
> C:\Users\matteo\Documents\NetBeansProjects\module1\src\module1\layer.xml:3:14: Element type "filesystem" must be declared.
> C:\Program Files\NetBeans 11.2-beta3\harness\common.xml:335: C:\Users\matteo\Documents\NetBeansProjects\module1\src\module1\layer.xml is not a valid XML document.
> BUILD FAILED (total time: 0 seconds){code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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