public class BuildArtifactMapper extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
BuildArtifactMapper.ArtifactsUpdated
Notify that the files in the output directory has been updated.
|
Constructor and Description |
---|
BuildArtifactMapper() |
Modifier and Type | Method and Description |
---|---|
static void |
addArtifactsUpdatedListener(URL sourceRoot,
BuildArtifactMapper.ArtifactsUpdated listener)
Add an
BuildArtifactMapper.ArtifactsUpdated listener. |
static boolean |
isCompileOnSaveSupported()
Checks if compile on save is supported in the current configuration.
|
static void |
removeArtifactsUpdatedListener(URL sourceRoot,
BuildArtifactMapper.ArtifactsUpdated listener)
Remove an
BuildArtifactMapper.ArtifactsUpdated listener. |
public static void addArtifactsUpdatedListener(@NonNull URL sourceRoot, @NonNull BuildArtifactMapper.ArtifactsUpdated listener)
BuildArtifactMapper.ArtifactsUpdated
listener. The method BuildArtifactMapper.ArtifactsUpdated.artifactsUpdated(java.lang.Iterable)
will be called each time the files inside the output folder are updated.
The output folder computed for the source root using the BinaryForSourceQuery
.
The files in the output folder are updated only if file .netbeans_automatic_build
exists inside the output folder.sourceRoot
- the listener will be assigned to this source rootlistener
- listener to addpublic static void removeArtifactsUpdatedListener(@NonNull URL sourceRoot, @NonNull BuildArtifactMapper.ArtifactsUpdated listener)
BuildArtifactMapper.ArtifactsUpdated
listener.sourceRoot
- the listener will be assigned to this source rootlistener
- listener to addpublic static boolean isCompileOnSaveSupported()