This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 29968

Summary: Make it easy to generate XXXLanguage.xml
Product: editor Reporter: Jaroslav Tulach <jtulach>
Component: LexerAssignee: issues@editor <issues>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P2    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Unzip, change the path to lexer and type ant to see

Description Jaroslav Tulach 2003-01-12 09:23:00 UTC
Create an ant task/target that will setup the
correct classpath and execute the correct class to
generate the language if it is missing.

I will attach zipped state of my application where
the missing language.xml cause misterous
compilation error.
Comment 1 Jaroslav Tulach 2003-01-12 09:25:40 UTC
Created attachment 8539 [details]
Unzip, change the path to lexer and type ant to see
Comment 2 Miloslav Metelka 2003-05-19 18:26:11 UTC
As of the last update the xxxLanguage.xml is no longer mandatory. In
the current setup (i.e. with copied build.xml from one of demo
example) the compile will also fail but with the following error:

compile:
    [javac] Compiling 1 source file to /tmp/diff/src
    [javac]
/tmp/diff/src/org/netbeans/modules/diff/lexer/DiffLanguage.java:58:
cannot resolve symbol
    [javac] symbol  : class DiffLexer
    [javac] location: class org.netbeans.modules.diff.lexer.DiffLanguage
    [javac]         return new DiffLexer();
    [javac]                    ^
    [javac] 1 error


I hope that from the usability point of view this should be OK and the
developer should understand that she needs to provide a DiffLexer
class that will act as a lexer for the given language.

Closing the issue please reopen if necessary.