CompanionCompanion
Companion for Delivery
Companion for Business
Companion for Integration
Contact us
Log out
Companion for Delivery
Companion for Business
Companion for Integration
Contact us
  • Companion for Delivery

    • Introduction
    • Installation
    • Project
  • Developer

    • Compiler
    • Decompiler
    • Diff
    • Incremental Build
    • Twirl
    • Companion Twirl Templates
    • Sheet to Xml
    • Tests
    • JSDoc
    • STEP API Autocomplete
    • Integrated Development Environment (IDE)
  • Devops

    • Continuous Integration (CI)
    • SonarQube
    • Maven configuration
  • STEPdoc
  • Example
  • FAQ

    • How to
    • Troubleshooting
  • Changelog

    • Changelog Companion for Delivery
    • Changelog Companion Twirl Templates
    • Changelog Companion Test Helpers

Incremental Build

Incremental build is a feature that packages and/or deploys only files that have changed since the last commit, or relative to a given Git reference (branch, tag, or commit).

Requirements

This functionality is designed to work only inside a Git repository.

Description

C4D Generates a Diff between the current state and the commit / branch / tag you want to compare to.
The result of the Diff is used to generate a single STEPXML file by including only STEP elements that have changed.

Usage

  • changes : This option packages local files that have been changed since the last commit
mvn c4d:compile c4d:package -Dchanges #package local file changes from last commit
  • changesFrom : This option allows packaging files that have changed relative to a specific branch, tag or commit ID.
mvn c4d:compile c4d:package -DchangesFrom=master #package file changes from last master commit
mvn c4d:compile c4d:package -DchangesFrom=1d902506123d218a8b9a1dedc552941c12f39da4 #package file changes from the commit ID
mvn c4d:compile c4d:deploy -DchangesFrom=4.8.3 #deploy file changes from the 4.8.3 tag
Last Updated: 6/23/25, 10:36 AM
Prev
Diff
Next
Twirl