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