public class PrimaveraSchedulerComparator extends Object
Constructor and Description |
---|
PrimaveraSchedulerComparator() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] argv)
Main entry point when run as a command line tool.
|
boolean |
process(File file)
Compare a single file.
|
boolean |
process(File directory,
String suffix)
Compare all the files in a directory with a matching suffix.
|
boolean |
process(ProjectFile baselineFile,
ProjectFile workingFile,
boolean analyseWbs,
boolean analyseResourceAssignments)
Compare two ProjectFile instances.
|
void |
setDebug(boolean value)
Enable or disable debug output.
|
void |
setExcluded(Set<String> value)
Tell the comparator to ignore files which MicrosoftScheduler doesn't
currently process to match Microsoft Project.
|
void |
setNoResourceAssignmentTest(Set<String> value)
Tell the comparator not to test resource assignments in these files.
|
void |
setNoWbsTest(Set<String> value)
Tell the comparator not to test the WBS in these files.
|
void |
setUnreadableFiles(Set<String> value)
Tell the comparator to ignore files which Microsoft Project can't read.
|
void |
setUseScheduled(Set<String> value)
Tell the comparator to ignore files which have had new copied created
following "Calculate Project" and "Save As".
|
public static void main(String[] argv) throws Exception
argv
- command line argumentsException
public void setDebug(boolean value)
value
- pass true to enable debug outputpublic void setUnreadableFiles(Set<String> value)
value
- set of unreadable filespublic void setUseScheduled(Set<String> value)
value
- set of scheduled filespublic void setExcluded(Set<String> value)
value
- set of excluded filespublic void setNoWbsTest(Set<String> value)
value
- set of excluded filespublic void setNoResourceAssignmentTest(Set<String> value)
value
- set of excluded filespublic boolean process(File directory, String suffix) throws Exception
directory
- directorysuffix
- file suffixException
public boolean process(File file) throws Exception
file
- file to compareException
public boolean process(ProjectFile baselineFile, ProjectFile workingFile, boolean analyseWbs, boolean analyseResourceAssignments) throws Exception
baselineFile
- baseline projectworkingFile
- working projectanalyseWbs
- true if the WBS should be analysedanalyseResourceAssignments
- true if resource assignments should be analysedException
Copyright © 2000–2025 MPXJ. All rights reserved.