org.netbeans.api.java.source
Class BuildArtifactMapper
java.lang.Object
org.netbeans.api.java.source.BuildArtifactMapper
public class BuildArtifactMapper
- extends Object
- Since:
- 0.37
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BuildArtifactMapper
public BuildArtifactMapper()
addArtifactsUpdatedListener
public static void addArtifactsUpdatedListener(@NonNull
URL sourceRoot,
@NonNull
BuildArtifactMapper.ArtifactsUpdated listener)
- Add an
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.
- Parameters:
sourceRoot
- the listener will be assigned to this source rootlistener
- listener to add- Since:
- 0.37
removeArtifactsUpdatedListener
public static void removeArtifactsUpdatedListener(@NonNull
URL sourceRoot,
@NonNull
BuildArtifactMapper.ArtifactsUpdated listener)
- Remove an
BuildArtifactMapper.ArtifactsUpdated
listener.
- Parameters:
sourceRoot
- the listener will be assigned to this source rootlistener
- listener to add- Since:
- 0.37