| Modifier and Type | Field and Description |
|---|---|
| private static final String | DEFAULT_FILENAME
The default filename to use if no file specified. |
| private static final String | DEFAULT_PROPERTY_NAME
The name of the property in which the build number is stored. |
| private static final FileUtils | |
| private File | myFile
The File in which the build number is stored. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private int | Returns: the build number or if no number in properties objectthe properties to retrieve build number from properties)Utility method to retrieve build number from properties object. |
| private Properties | |
| public void | |
| private void |
| DEFAULT_FILENAME | back to summary |
|---|---|
| private static final String DEFAULT_FILENAME The default filename to use if no file specified. | |
| DEFAULT_PROPERTY_NAME | back to summary |
|---|---|
| private static final String DEFAULT_PROPERTY_NAME The name of the property in which the build number is stored. | |
| FILE_UTILS | back to summary |
|---|---|
| private static final FileUtils FILE_UTILS | |
| myFile | back to summary |
|---|---|
| private File myFile The File in which the build number is stored. | |
| BuildNumber | back to summary |
|---|---|
| public BuildNumber() | |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException Overrides org. Run task.
| |
| getBuildNumber | back to summary |
|---|---|
| private int getBuildNumber(final Properties properties) throws BuildException Utility method to retrieve build number from properties object.
| |
| loadProperties | back to summary |
|---|---|
| private Properties loadProperties() throws BuildException Utility method to load properties from file.
| |
| setFile | back to summary |
|---|---|
| public void setFile(final File file) The file in which the build number is stored. Defaults to "build.number" if not specified.
| |
| validate | back to summary |
|---|---|
| private void validate() throws BuildException Validate that the task parameters are valid.
| |