Responsible for running the build file
Responsible for running the build file
Command line to call to build. The build is run in another process.
There is a special command line to run ant internally within this VM rather than an external process in a new VM.
internal-ant [build-file] [target1] [target2] [target3] ...
This may execute your ant scripts faster because a new process does not have to be created.
However, there are limitations:
build-file must be the absolute path to the build filebuild-file and target names cannot have spaces in them.
Watches a directory and if there is a change, the build is run.
Watches a directory and if there is a change, the build is run.
A new thread is created for watching and building.
// Start watching and building val builder = new Builder("internal-ant /my-project/build.xml build", "/my-project/src") ... // Stop builder.stop()
Command line to run when a watched file changes. For example
ant -f /home/username/dev/project/build.xml js
There is a special command line to run ant internally within this VM rather than an external process in a new VM.
internal-ant [build-file] [target1] [target2] [target3] ...
This may execute your ant scripts faster because a new process does not have to be created.
However, there are limitations:
build-file must be the absolute path to the build filebuild-file and target names cannot have spaces in them.Full path to the directory to watch
Indicates if we wish to watch files in sub-directories as well
Milliseconds to wait after an event for more events before a build is triggered.
If we do not wait, multiple builds may be kicked off when saving a single file. Defaults to 100.
Watches a directory for changes and triggers a build
Watches a directory for changes and triggers a build
Thanks to Chris Eberle. Also see java tutorial
Tool to watch for changes in the file system and trigger a build. We use this tool when developing javascript applications.
Quite often, we like to combine static javascript and/or html files. To do this, we use an Apache Ant build file. To manually run the build every time after a file is changed during the development process is tiresome.
The tools in this package helps watch for changes on the file system and will automatically trigger your build for you.