Skip to content

A custom Github action that downloads (and caches) a NetBeans ZIP distribution for building Ant-based NetBeans modules.

License

Notifications You must be signed in to change notification settings

cjmach/setup-netbeans-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

setup-netbeans-action

A custom Github action that downloads, extracts and caches a NetBeans ZIP distribution for building Ant-based NetBeans modules.

Inputs

version

Required The version of the NetBeans distribution to download (e.g. '18', '19').

Outputs

No outputs.

Example usage

steps:
  - uses: actions/checkout@v4
    name: Checkout project

  - uses: actions/setup-java@v4
    name: Set up JDK 11
    with:
      java-version: '11'
      distribution: 'temurin'

  # Setup netbeans distribution directory on github workspace.
  - uses: cjmach/setup-netbeans-action@v2.1
    name: Setup NetBeans distribution
    with:
      version: '18'  

  # Run the ant command, with the required NetBeans properties set.
  - name: Run the Ant build target
    run: >-
      ant -noinput -buildfile build.xml
      -Dnbplatform.default.netbeans.dest.dir=${{ github.workspace }}/netbeans
      -Dnbplatform.default.harness.dir=${{ github.workspace }}/netbeans/harness
      build

The term "default" in the NetBeans properties on the ant command line represents the name of the NetBeans platform and must match the value of the property nbplatform.active set in the file nbproject/platform.properties of your module (suite).