Open apjanke opened 4 years ago
me too... I tried build (like with netbeans) but got a message 'Cannot find NetBeans build harness.'
Clone the Repository:
antlrworks2
repository from GitHub to your local machine:
git clone https://github.com/tunnelvisionlabs/antlrworks2.git
cd antlrworks2
Set Up NetBeans Environment:
Prepare the Build Environment:
antlrworks2
directory, create or edit the build.properties
file. This file will store key-value pairs required for the build process. Here’s a template for build.properties
:
# Paths to NetBeans harness and platform
nbplatform.harness.dir=/path/to/netbeans/harness
nbplatform.netbeans.dest.dir=/path/to/netbeans/platform
Include Required Dependencies:
antlrworks2
project in NetBeans.org.antlr.v4.runtime
and org.antlr.v4.tool
, to your project’s classpath. Download these JAR files from the ANTLR website if necessary.Build the Project using Ant:
ant clean build
.nbm
files in the dist
directory, which are essential for the plugin installation.Set Up Keystore for Signing the Plugin:
build.properties
file:
keystore.alias=myKeyAlias
keystore.password=myKeyPassword
key.alias=myKey
key.password=myKeyPassword
keystore.dname=CN=your_email@example.com, OU=YourDepartment, O=YourOrganization, L=YourCity, ST=YourState, C=YourCountry
keystore.keyalg=RSA
Generate and Sign the Plugin NBM Files:
.nbm
files by running:
ant init-keystore nbms
.nbm
files for secure distribution.Install the Plugin in NetBeans:
Tools
> Plugins
.Downloaded
tab and click Add Plugins...
..nbm
files from the dist
directory and click Open
.Verify the Installation:
build.properties
file are accurate and point to the correct directories of your NetBeans installation.keytool
command:
keytool -genkey -alias myKeyAlias -keyalg RSA -keystore /path/to/keystore
Replace the placeholders with your specific details.
By following these steps, you can successfully build, sign, and install the ANTLRWorks2 plugin in NetBeans, making it ready for ANTLR grammar development.
How does one get the antlrworks2 project to build? I'm afraid I don't see any documentation in the repo for it.
I've cloned the repo and opened the
antlrworks2
project in Apache NetBeans 11, and it's showing a bunch of errors about the classes for theorg.antlr.v4.runtime
andorg.antlr.v4.tool
packages not being found. Do I need to supply this as an external dependency somehow?I'm afraid I'm a lot more familiar with Maven and IntelliJ than NetBeans at this point; sorry if this is a newbie question.