Releases: joniles/mpxj
Releases · joniles/mpxj
Version 10.15.0
- Avoid wrtiting invalid characters to PMXML, MSPDI and Planner XML files.
- Improve handling of slack values for schedules which only contain a value for total slack.
- Add support for reading constraint type and constraint date from Phoenix schedule (based on a contribution by Rohit Sinha).
- Improve timephased data calculation when assignment has zero units.
- Improve handling of very large duration values when reading and writing MSPDI files.
- Ensure the Task attributes Active, Constraint Type, Task Mode, and Type always have a value.
- Ensure the Resource attributes Type, Calculate Costs from Units, and Role always have a value.
- Ensure the Resource Assignment attributes Calculate Costs from Units, Rate Index, and Rate Source always have a value.
- Add version number constant to the Java source, accessible as
MPXJ.VERSION
. - Ensure that UDF values are read for WBS entries in PMXML files.
- Avoid writing duplicate resource assignments to MPX files.
Version 10.14.1
- Fix CVE-2022-41954: Temporary File Information Disclosure Vulnerability (Contributed by Jonathan Leitschuh)
Version 10.14.0
- Handle missing default calendar when reading a PMXML file.
- When reading an MPP file using a file name or
File
instance, ensure a more memory-efficient approach is used. - Improve reading certain FastTrack FTS files.
- Improve generation of timephased data where working time ends at midnight.
- Improve generation of timephased data for tasks with a calendar assigned.
Version 10.13.0
- Add support for reading a resource assignment's cost account from P6 schedules.
- Add support for writing a resource assignment's cost account to PMXML files.
- Read resource assignment custom field definitions present in MPP14 files.
- Improve identification of deleted resources when reading MPP9 files.
- Ensure tasks with task calendars in MPP files are handled correctly when generating timephased data.
- Improve generation of timephased data for material resource assignments.
- Improve accuracy of timephased data when reading certain MPP files.
Version 10.12.0
- Added the Resource Assignment attribute Calculate Costs From Units, and added read and write support for Primavera schedules.
- Added the Resource attribute Calculate Costs From Units, and added read and write support for Primavera schedules.
- Added the Resource and Role attribute Sequence Number, and added read and write support for Primavera schedules.
- Added the WBS attribute Sequence Number, and added read and write support for Primavera schedules.
- Ensure activity type is read from Phoenix schedules. (Contributed by Christopher John)
- Deprecate the
CostAccount
methodgetSequence
and replace withgetSequenceNumber
to improve naming consistency. - Deprecate the
ExpenseCategory
methodgetSequence
and replace withgetSequenceNumber
to improve naming consistency. - Avoid possible ArrayIndexOutOfBoundsException when reading GUID values from MPP files (Contributed by Rohit Sinha).
Version 10.11.0
- Deprecated the
Resource
methodsgetParentID
andsetParentID
. Replaced withgetParentResourceUniqueID
andsetParentResourceUniqueID
for clarity and consistency. - Added the
Resource
methodssetParent
andgetParent
. - Added the
ChildResourceContainer
interface andResourceContainer.updateStructure
method to ensure that resources can be accessed hierarchically when reading a schedule. - Added the
ResourceAssignment
methodsgetFieldByAlias
andsetFieldByAlias
to simplify working with custom fields, and mkae the API consistent with existing methods onTask
andResource
. - Added the
TaskContainer
methodsgetCustomFields
andgetFieldTypeByAlias
to simplify access to task custom fields. - Added the
ResourceContainer
methodsgetCustomFields
andgetFieldTypeByAlias
to simplify access to resource custom fields. - Added the
ResourceAssignmentContainer
methodsgetCustomFields
andgetFieldTypeByAlias
to simplify access to resource assignment custom fields. - Added the
getCustomFieldsByFieldTypeClass
method toCustomFieldContainer
to allow retrieval of custom field details by parent class. - Deprecated the
CustomFieldContainer
methodgetFieldByAlias
to be replaced bygetFieldTypeByAlias
to provide a more consistent method name. - Don't attempt to write unknown extended attributes to MSPDI files.
- Don't populate graphical indicator data if the graphical indicator is not enabled.
- Don't set custom field aliases to empty strings.
- Added the
CustomFieldContainer
methodadd
. - Deprecated the
CustomFieldContainer
methodgetCustomField
, which is replaced by theget
method (which returnsnull
if the field type is not configured) and thegetOrCreate
method (which will return an existing configuration or create a new one if the requested field does not yet have a configuration).
Version 10.10.0
- Add an option to import Phoenix schedules as a flat set of tasks with separate activity codes, rather than creating a hierarchy of tasks from the activity codes. Note the default is to disable this behavior so existing functionality is unchanged. (Contributed by Christopher Johns)
- Add a
setProperties
method to reader classes to allow configuration to be supplied via aProperties
instance rather than having to call setter methods. Properties passed to theUniversalProjectReader
version of this method will be forwarded to the reader classUniversalProjectReader
chooses to reader the supplied file. Properties for multiple reader classes can be included in theProperties
instance, each reader class will ignore irrelevant properties. - Added the
get
method toTask
,Resource
,ResourceAssignment
andProjectProperties
as a replacement for thegetCurrentValue
method. The newget
method is paired with the existingset
method to provide read and write access to attributes of these classes. This change is intended to improve the interfaces to these classes by making them more consistent, and thus easier to understand. - Deprecated the
getCurrentValue
method on theTask
,Resource
,ResourceAssignment
andProjectProperties
classes. Use the newget
method instead. - Add getter and setter methods for the Resource attributes Cost Center, Budget Cost, Budget Work, Baseline Budget Cost, Baseline Budget Work, Baseline Budget Cost 1-10, and Baseline Budget Work 1-10.
- Add getter and setter methods for the Task attributes Response Pending, Scheduled Start, Scheduled Finish, Scheduled Duration, Budget Cost, Budget Work, Baseline Budget Cost, Baseline Budget Work, Baseline Budget Cost 1-10, and Baseline Budget Work 1-10.
- Added support for the Resource Cost Centre attribute for MSPDI files.
- Move MPP file-specific functionality for determining baseline values from the Task class into the MPP reader class.
- Improve handling of the TaskMode attribute.
- Don't set a Task's Critical attribute unless we have valid slack values.
- Ensure
ResourceAssignment
calculated fields are returned correctly when using thegetCurrentValue
method. - Ensure
ProjectProperties
calculated fields are returned correctly when using thegetCurrentValue
method. - Updated to use jsoup 1.15.3
Version 10.9.1
- Ensure monthly and yearly recurrences are calculated correctly when the supplied start date is the same as the first recurrence date (Contributed by Rohit Sinha).
- Add support for reading task calenadrs from Phoenix files (Contributed by Rohit Sinha).
- Improve reliability of ProjectCleanUtility when using the replacement strategy.
Version 10.9.0
- Added the
ResourceAssignment.getEffectiveRate
method to allow the cost rate effective on a given date for a resource assignment to be calculated. For P6 schedules this will take account of the cost rate configuration included as part of the resource assignment. - For P6 schedules, the
ResourceAssignment.getCostRateTable
method now takes in account any cost rate configuration details from the resource assignment when determining which table to return. - A resource's Standard Rate, Overtime Rate and Cost per Use are now all derived from the resource's cost rate table, and not stored as attributes of the resource itself.
- The resource methods
setStandardRate
,setOvertimeRate
, andsetCostPerUse
have been deprecated. These attributes can now only be set or updated by modifying the resource's cost rate table. - When writing MPX files, only include attributes which have a non-empty, non-default value in at least one task or resource.
- When writing MPX files, ensure attributes which have calculated values are used.
- Add support for reading a resource assignment's rate type from P6 schedules. The rate type is accessed via the
ResourceAssignment.getRateIndex
method. The value returned by this method can be used to select the required rate using theCostRateTableEntry,getRate
method. - Add support for writing a resource assignment's rate type to PMXML files.
- Add support for reading a resource assignment's role from P6 schedules. The role is accessed via the
ResourceAssignment.getRole
andResourceAssignment.setRole
methods. - Add support for writing a resource assignment's role to PMXML files.
- Add support for reading a resource assignment's override rate (Price / Unit) from P6 schedules. The rate is accessed via the
ResourceAssignment.getOverrideRate
andResourceAssignment.setOverrideRate
methods. - Add support for writing a resource assignment's override rate (Price / Unit) to PMXML files.
- Add support for reading a resource assignment's rate source from P6 schedules. The rate source is accessed via the
ResourceAssignment.getRateSource
andResourceAssignment.setRateSource
methods. - Add support for writing a resource assignment's rate source to PMXML files.
Version 10.8.0
- When reading P6 schedules, all five cost rates for a resource are now available via the
CostRateTableEntry.getRate
method. - All five rates from each cost rate table entry can now be written to PMXML files.
- When reading files written by Microsoft Project, resource rate values now use the same units as seen by the end user rather than defaulting to hours as was the case previously. (For example, if the user sees $8/day in the source application, you will receive a Rate instance of $8/day rather than $1/hr).
- The values for a resource's standard rate, overtime rate, and cost per use attributes are now derived from the cost rate table. The values stored on the resource itself are only used if a cost rate table for the resource is not present.
- The Resource methods
getStandardRateUnits
andgetOvertimeRateUnits
are deprecated. Use thegetStandardRate
andgetOvertimeRate
methods to retrieve aRate
instance which will include the units for these rates. - The Resource methods
setStandardRateUnits
andsetOvertimeRateUnits
are deprecated. SupplyRate
instances to thesetStandardRate
andsetOvertimeRate
methods with the required units instead. - The CostRateTableEntry methods
getStandardRateUnits
andgetOvertimeRateUnits
are deprecated. Use thegetStandardRate
andgetOvertimeRate
methods to retrieve aRate
instance which will include the units for these rates. - Ensure rates are formatted "per hour" when writing MSPDI and PMXML files.
- Include cost rate tables in JSON output.