Skip to content

Commit 350a442

Browse files
2 parents d3ae815 + 7296273 commit 350a442

File tree

48 files changed

+2320
-2326
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+2320
-2326
lines changed

content/english/java/project-management/_index.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,25 @@ url: /java/project-management/
99
---
1010

1111
## Project Management Tutorials
12-
### [Calculate Critical Path in Aspose.Tasks Projects](./critical-path/)
13-
### [Manage Default Project Properties in Aspose.Tasks](./default-properties/)
14-
### [Determine Project Version with Aspose.Tasks](./determine-version/)
12+
### [Calculate Critical MS Project Path in Aspose.Tasks](./critical-path/)
13+
Learn how to calculate the critical path in MS Project using Aspose.Tasks for Java. This provides step-by-step guidance for efficient project management.
14+
### [Efficiently Manage MS Project Properties in Aspose.Tasks](./default-properties/)
15+
Learn how to manage default MS Project properties using Aspose.Tasks for Java. Streamline your project management workflow effortlessly.
16+
### [Determine MS Project Version with Aspose.Tasks](./determine-version/)
17+
Learn how to determine the version of MS Project files programmatically using Aspose.Tasks for Java. Step-by-step guide with code examples.
1518
### [Handle Extended Attributes in Aspose.Tasks Projects](./extended-attributes/)
19+
Learn how to handle extended attributes in Aspose.Tasks projects using Java efficiently. Step-by-step guide for effective project management.
1620
### [Filter Data from MPP File in Aspose.Tasks](./filter-data/)
21+
Learn how to filter data from MPP files using Aspose.Tasks for Java. Enhance your project management workflow effortlessly.
1722
### [Manage Fiscal Year Properties in Aspose.Tasks](./fiscal-year-properties/)
23+
Learn how to manage fiscal year properties efficiently using Aspose.Tasks for Java. Step-by-step guide with examples provided.
1824
### [Get Number of Pages in Project with Aspose.Tasks](./number-of-pages/)
19-
### [Ignore Invalid Characters During Loading Project in Aspose.Tasks](./ignore-invalid-characters/)
20-
### [Import and Export Data to Primavera in Aspose.Tasks](./import-export-primavera/)
25+
Unlock the potential of Java development with Aspose.Tasks. Learn how to manipulate Microsoft Project files seamlessly and enhance your productivity.
2126
### [Update MPP File in Aspose.Tasks](./update-mpp/)
22-
### [Read Project from Primavera in Aspose.Tasks](./read-primavera/)
23-
### [Read Project from Primavera XML in Aspose.Tasks](./read-primavera-xml/)
27+
Learn how to update MPP files seamlessly using Aspose.Tasks for Java. Follow our step-by-step guide for efficient project file manipulation.
28+
### [Read MS Project from Primavera with Aspose.Tasks for Java](./read-primavera/)
29+
Learn how to read MS Project files from Primavera XML seamlessly using Aspose.Tasks for Java. Enhance your project management efficiency.
2430
### [Print Pages to Separate Image in Aspose.Tasks](./print-pages/)
25-
### [Handle Task Writing Exceptions during Printing in Aspose.Tasks](./print-task-exceptions/)
31+
Learn how to print pages to separate images in Aspose.Tasks for Java. Improve project visualization with this step-by-step guide.
32+
### [Handle Task Writing Exceptions during Printing in Aspose.Tasks](./print-task-exceptions/)
33+
Master exception handling in Aspose.Tasks for Java to ensure seamless project execution. Learn how to handle task writing exceptions during printing effortlessly.
Lines changed: 64 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,74 @@
11
---
2-
title: Calculate Critical Path in Aspose.Tasks Projects
2+
title: Calculate Critical MS Project Path in Aspose.Tasks
33
linktitle: Calculate Critical Path in Aspose.Tasks Projects
44
second_title: Aspose.Tasks Java API
5-
description:
5+
description: Learn how to calculate the critical path in MS Project using Aspose.Tasks for Java. This provides step-by-step guidance for efficient project management.
66
type: docs
77
weight: 10
88
url: /java/project-management/critical-path/
99
---
10-
11-
## Complete Source Code
12-
```java
13-
/*
14-
* Copyright 2001-2022 Aspose Pty Ltd. All Rights Reserved.
15-
*
16-
* This file is part of Aspose.Tasks. The source code in this file
17-
* is only intended as a supplement to the documentation, and is provided
18-
* "as is", without warranty of any kind, either expressed or implied.
19-
*/
20-
21-
22-
10+
## Introduction
11+
In this tutorial, we will guide you through the process of calculating the critical path in MS Project using Aspose.Tasks for Java. The critical path is essential for project management as it helps identify the sequence of tasks that must be completed on time to ensure the project's overall schedule is not delayed.
12+
## Prerequisites
13+
Before we begin, ensure you have the following prerequisites:
14+
1. Java Development Kit (JDK) installed on your system.
15+
2. Aspose.Tasks for Java library downloaded and added to your project. You can download it from [here](https://releases.aspose.com/tasks/java/).
16+
17+
## Import Packages
18+
To start, import the necessary packages in your Java class:
19+
```java
2320
import com.aspose.tasks.*;
24-
25-
26-
public class CriticalPath {
27-
public static void main(String[] args) {
28-
// The path to the documents directory.
29-
String dataDir = "Your Data Directory";
30-
31-
Project project = new Project(dataDir + "New project 2013.mpp");
32-
project.setCalculationMode(CalculationMode.Automatic);
33-
34-
Task subtask1 = project.getRootTask().getChildren().add("1");
35-
Task subtask2 = project.getRootTask().getChildren().add("2");
36-
Task subtask3 = project.getRootTask().getChildren().add("3");
37-
38-
project.getTaskLinks().add(subtask1, subtask2, TaskLinkType.FinishToStart);
39-
40-
//Display the critical path now
41-
for (Task task : project.getCriticalPath()) {
42-
System.out.println(task.get(Tsk.NAME));
43-
}
44-
45-
//Display result of conversion.
46-
System.out.println("Process completed Successfully");
47-
}
21+
```
22+
## Step 1: Set Up Data Directory
23+
Define the path to your data directory where your MS Project file is located.
24+
```java
25+
String dataDir = "Your Data Directory";
26+
```
27+
## Step 2: Load MS Project File
28+
Load the MS Project file using Aspose.Tasks library.
29+
```java
30+
Project project = new Project(dataDir + "New project 2013.mpp");
31+
```
32+
## Step 3: Set Calculation Mode
33+
Set the calculation mode to automatic to enable the calculation of the critical path.
34+
```java
35+
project.setCalculationMode(CalculationMode.Automatic);
36+
```
37+
## Step 4: Add Tasks
38+
Add tasks to your project. In this example, we add three subtasks.
39+
```java
40+
Task subtask1 = project.getRootTask().getChildren().add("1");
41+
Task subtask2 = project.getRootTask().getChildren().add("2");
42+
Task subtask3 = project.getRootTask().getChildren().add("3");
43+
```
44+
## Step 5: Create Task Links
45+
Create task links to define the dependencies between tasks.
46+
```java
47+
project.getTaskLinks().add(subtask1, subtask2, TaskLinkType.FinishToStart);
48+
```
49+
## Step 6: Display Critical Path
50+
Retrieve and display the critical path of the project.
51+
```java
52+
for (Task task : project.getCriticalPath()) {
53+
System.out.println(task.get(Tsk.NAME));
4854
}
49-
50-
51-
52-
53-
5455
```
56+
## Step 7: Display Result
57+
Display a message indicating the successful completion of the process.
58+
```java
59+
System.out.println("Process completed Successfully");
60+
```
61+
62+
## Conclusion
63+
Calculating the critical path in MS Project using Aspose.Tasks for Java is crucial for effective project management. By following the steps outlined in this tutorial, you can accurately identify the sequence of tasks critical to your project's timeline.
64+
## FAQ's
65+
### Q: Can I use Aspose.Tasks for Java with any version of MS Project files?
66+
A: Yes, Aspose.Tasks for Java supports various versions of MS Project files, including .mpp files from MS Project 2003 to MS Project 2019.
67+
### Q: Is there a free trial available for Aspose.Tasks for Java?
68+
A: Yes, you can download a free trial from [here](https://releases.aspose.com/).
69+
### Q: Where can I find support for Aspose.Tasks for Java?
70+
A: You can find support on the [Aspose.Tasks forum](https://forum.aspose.com/c/tasks/15).
71+
### Q: Can I purchase a temporary license for Aspose.Tasks for Java?
72+
A: Yes, you can purchase a temporary license from [here](https://purchase.aspose.com/temporary-license/).
73+
### Q: How can I buy Aspose.Tasks for Java?
74+
A: You can purchase Aspose.Tasks for Java from the website [here](https://purchase.aspose.com/buy).
Lines changed: 70 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,81 @@
11
---
2-
title: Manage Default Project Properties in Aspose.Tasks
2+
title: Efficiently Manage MS Project Properties in Aspose.Tasks
33
linktitle: Manage Default Project Properties in Aspose.Tasks
44
second_title: Aspose.Tasks Java API
5-
description:
5+
description: Learn how to manage default MS Project properties using Aspose.Tasks for Java. Streamline your project management workflow effortlessly.
66
type: docs
77
weight: 11
88
url: /java/project-management/default-properties/
99
---
10-
11-
## Complete Source Code
10+
## Introduction
11+
Are you looking to streamline your project management process with Aspose.Tasks for Java? Managing default properties in Microsoft Project files can significantly enhance efficiency. In this tutorial, we will walk through step-by-step instructions on how to manage default MS Project properties using Aspose.Tasks.
12+
## Prerequisites
13+
Before we delve into the tutorial, ensure you have the following prerequisites:
14+
### 1. Java Development Kit (JDK)
15+
- Make sure JDK is installed on your system.
16+
- You can download it from [here](https://www.oracle.com/java/technologies/javase-jdk11-downloads.html).
17+
### 2. Aspose.Tasks for Java Library
18+
- Download and include the Aspose.Tasks for Java library in your project.
19+
- You can download it from the [website](https://releases.aspose.com/tasks/java/).
20+
## Import Packages
21+
Firstly, import the necessary packages in your Java file:
1222
```java
13-
/*
14-
* Copyright 2001-2022 Aspose Pty Ltd. All Rights Reserved.
15-
*
16-
* This file is part of Aspose.Tasks. The source code in this file
17-
* is only intended as a supplement to the documentation, and is provided
18-
* "as is", without warranty of any kind, either expressed or implied.
19-
*/
20-
21-
22-
2323
import com.aspose.tasks.*;
24-
25-
2624
import java.util.Calendar;
27-
28-
public class DefaultProjectProperties {
29-
public static void main(String[] args) {
30-
// The path to the documents directory.
31-
String dataDir = "Your Data Directory";
32-
33-
Project project = new Project(dataDir + "project.mpp");
34-
35-
//Display default properties
36-
System.out.println("Project Version : " + project.get(Prj.SAVE_VERSION));
37-
System.out.println("New Task Default Start: " + project.get(Prj.DEFAULT_START_TIME));
38-
System.out.println("New Task Default Type: " + project.get(Prj.DEFAULT_TASK_TYPE));
39-
System.out.println("Resource Default Standard Rate: " + project.get(Prj.DEFAULT_STANDARD_RATE));
40-
System.out.println("Resource Default Overtime Rate: " + project.get(Prj.DEFAULT_OVERTIME_RATE));
41-
System.out.println("Default Task EV Method: " + project.get(Prj.DEFAULT_TASK_EV_METHOD));
42-
System.out.println("Default Cost Accrual: " + project.get(Prj.DEFAULT_FIXED_COST_ACCRUAL));
43-
44-
//Set default properties
45-
project.set(Prj.SCHEDULE_FROM_START, new NullableBool(true));
46-
47-
java.util.Calendar cal = java.util.Calendar.getInstance();
48-
cal.set(2014, Calendar.FEBRUARY, 15, 0, 0, 0);
49-
50-
project.set(Prj.START_DATE, cal.getTime());
51-
project.set(Prj.DEFAULT_START_TIME, project.get(Prj.START_DATE));
52-
project.set(Prj.DEFAULT_TASK_TYPE, TaskType.FixedDuration);
53-
project.set(Prj.DEFAULT_STANDARD_RATE, 15d);
54-
project.set(Prj.DEFAULT_OVERTIME_RATE, 12d);
55-
project.set(Prj.DEFAULT_TASK_EV_METHOD, EarnedValueMethodType.PercentComplete);
56-
project.set(Prj.DEFAULT_FIXED_COST_ACCRUAL, CostAccrualType.Prorated);
57-
58-
//Save the project to XML format
59-
project.save(dataDir + "project4.xml", SaveFileFormat.Xml);
60-
61-
//Display result of conversion.
62-
System.out.println("Process completed Successfully");
63-
}
64-
}
65-
66-
67-
68-
69-
7025
```
26+
Let's break down the process into manageable steps:
27+
## Step 1: Load Project File
28+
```java
29+
// The path to the documents directory.
30+
String dataDir = "Your Data Directory";
31+
Project project = new Project(dataDir + "project.mpp");
32+
```
33+
## Step 2: Display Default Properties
34+
```java
35+
// Display default properties
36+
System.out.println("Project Version : " + project.get(Prj.SAVE_VERSION));
37+
System.out.println("New Task Default Start: " + project.get(Prj.DEFAULT_START_TIME));
38+
System.out.println("New Task Default Type: " + project.get(Prj.DEFAULT_TASK_TYPE));
39+
System.out.println("Resource Default Standard Rate: " + project.get(Prj.DEFAULT_STANDARD_RATE));
40+
System.out.println("Resource Default Overtime Rate: " + project.get(Prj.DEFAULT_OVERTIME_RATE));
41+
System.out.println("Default Task EV Method: " + project.get(Prj.DEFAULT_TASK_EV_METHOD));
42+
System.out.println("Default Cost Accrual: " + project.get(Prj.DEFAULT_FIXED_COST_ACCRUAL));
43+
```
44+
## Step 3: Set Default Properties
45+
```java
46+
// Set default properties
47+
project.set(Prj.SCHEDULE_FROM_START, new NullableBool(true));
48+
java.util.Calendar cal = java.util.Calendar.getInstance();
49+
cal.set(2014, Calendar.FEBRUARY, 15, 0, 0, 0);
50+
project.set(Prj.START_DATE, cal.getTime());
51+
project.set(Prj.DEFAULT_START_TIME, project.get(Prj.START_DATE));
52+
project.set(Prj.DEFAULT_TASK_TYPE, TaskType.FixedDuration);
53+
project.set(Prj.DEFAULT_STANDARD_RATE, 15d);
54+
project.set(Prj.DEFAULT_OVERTIME_RATE, 12d);
55+
project.set(Prj.DEFAULT_TASK_EV_METHOD, EarnedValueMethodType.PercentComplete);
56+
project.set(Prj.DEFAULT_FIXED_COST_ACCRUAL, CostAccrualType.Prorated);
57+
```
58+
## Step 4: Save Project to XML Format
59+
```java
60+
// Save the project to XML format
61+
project.save(dataDir + "project4.xml", SaveFileFormat.Xml);
62+
```
63+
## Step 5: Display Result
64+
```java
65+
// Display result of conversion.
66+
System.out.println("Process completed Successfully");
67+
```
68+
By following these steps, you can efficiently manage default MS Project properties using Aspose.Tasks for Java.
69+
## Conclusion
70+
In this tutorial, we've learned how to manage default MS Project properties using Aspose.Tasks for Java. By utilizing these techniques, you can optimize your project management workflow, enhancing productivity and organization.
71+
## FAQ's
72+
### Q1: Can I use Aspose.Tasks with other programming languages?
73+
A1: Yes, Aspose.Tasks supports various programming languages such as .NET, Python, and Java.
74+
### Q2: Is Aspose.Tasks suitable for both personal and enterprise use?
75+
A2: Absolutely! Whether you're managing small personal projects or large-scale enterprise initiatives, Aspose.Tasks caters to all.
76+
### Q3: Does Aspose.Tasks offer customer support?
77+
A3: Yes, you can find assistance and community support on the [Aspose.Tasks forum](https://forum.aspose.com/c/tasks/15).
78+
### Q4: Can I try Aspose.Tasks before purchasing?
79+
A4: Of course! You can avail of a free trial from the [website](https://releases.aspose.com/).
80+
### Q5: How can I obtain a temporary license for Aspose.Tasks?
81+
A5: You can get a temporary license from the [purchase page](https://purchase.aspose.com/temporary-license/) for testing and evaluation purposes.
Lines changed: 51 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,62 @@
11
---
2-
title: Determine Project Version with Aspose.Tasks
2+
title: Determine MS Project Version with Aspose.Tasks
33
linktitle: Determine Project Version with Aspose.Tasks
44
second_title: Aspose.Tasks Java API
5-
description:
5+
description: Learn how to determine the version of MS Project files programmatically using Aspose.Tasks for Java. Step-by-step guide with code examples.
66
type: docs
77
weight: 12
88
url: /java/project-management/determine-version/
99
---
10-
11-
## Complete Source Code
10+
## Introduction
11+
This tutorial will guide you through using Aspose.Tasks for Java to determine the version of an MS Project file step by step. Aspose.Tasks is a powerful Java API that allows developers to manipulate Microsoft Project files without requiring Microsoft Project to be installed.
12+
## Prerequisites
13+
Before we begin, ensure you have the following:
14+
1. Java Development Kit (JDK): Make sure you have JDK installed on your system.
15+
2. Aspose.Tasks for Java JAR file: Download the Aspose.Tasks for Java library from the [website](https://releases.aspose.com/tasks/java/) and add it to your Java project.
16+
3. MS Project File: Prepare an MS Project file (XML format) for testing.
17+
18+
## Import Packages
19+
Before diving into the code, let's import the necessary packages:
1220
```java
13-
/*
14-
* Copyright 2001-2022 Aspose Pty Ltd. All Rights Reserved.
15-
*
16-
* This file is part of Aspose.Tasks. The source code in this file
17-
* is only intended as a supplement to the documentation, and is provided
18-
* "as is", without warranty of any kind, either expressed or implied.
19-
*/
20-
21-
22-
2321
import com.aspose.tasks.Prj;
2422
import com.aspose.tasks.Project;
25-
26-
27-
public class DetermineProjectVersion {
28-
public static void main(String[] args) {
29-
// The path to the documents directory.
30-
String dataDir = "Your Data Directory";
31-
32-
Project project = new Project(dataDir + "input.xml");
33-
34-
//Display project version property
35-
System.out.println("Project Version : " + project.get(Prj.SAVE_VERSION));
36-
System.out.println("Last Saved : " + project.get(Prj.LAST_SAVED));
37-
38-
//Display result of conversion.
39-
System.out.println("Process completed Successfully");
40-
}
41-
}
42-
43-
44-
45-
46-
4723
```
24+
## Step 1: Set Up the Project
25+
```java
26+
// The path to the documents directory.
27+
String dataDir = "Your Data Directory";
28+
```
29+
Replace `"Your Data Directory"` with the path to the directory containing your MS Project file.
30+
## Step 2: Load the Project
31+
```java
32+
Project project = new Project(dataDir + "input.xml");
33+
```
34+
Replace `"input.xml"` with the name of your MS Project file.
35+
## Step 3: Determine Project Version
36+
```java
37+
//Display project version property
38+
System.out.println("Project Version : " + project.get(Prj.SAVE_VERSION));
39+
System.out.println("Last Saved : " + project.get(Prj.LAST_SAVED));
40+
```
41+
This code snippet retrieves and prints the version and last saved date of the MS Project file.
42+
## Step 4: Display Result
43+
```java
44+
//Display result of conversion.
45+
System.out.println("Process completed Successfully");
46+
```
47+
This line indicates the completion of the process.
48+
49+
## Conclusion
50+
In this tutorial, you learned how to determine the version of an MS Project file using Aspose.Tasks for Java. By following the step-by-step guide, you can efficiently work with MS Project files in your Java applications without hassle.
51+
52+
## FAQ's
53+
### Q: Can I use Aspose.Tasks with other programming languages?
54+
A: Yes, Aspose.Tasks supports multiple programming languages including .NET, Java, and C++.
55+
### Q: Is Aspose.Tasks suitable for large-scale projects?
56+
A: Absolutely, Aspose.Tasks is designed to handle projects of any size with ease.
57+
### Q: Can I customize project data using Aspose.Tasks?
58+
A: Yes, you can manipulate project data, modify tasks, resources, and much more using Aspose.Tasks.
59+
### Q: Does Aspose.Tasks require Microsoft Project installation?
60+
A: No, Aspose.Tasks works independently and does not require Microsoft Project to be installed.
61+
### Q: Is technical support available for Aspose.Tasks?
62+
A: Yes, you can get technical support from the Aspose.Tasks forum at [here](https://forum.aspose.com/c/tasks/15).

0 commit comments

Comments
 (0)