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 - Make it easy to generate XXXLanguage.xml
Summary: Make it easy to generate XXXLanguage.xml
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Lexer (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-12 09:23 UTC by Jaroslav Tulach
Modified: 2003-05-19 18:26 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Unzip, change the path to lexer and type ant to see (1.51 KB, application/octet-stream)
2003-01-12 09:25 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
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.