Skip to content

Commit 2cf0d6a

Browse files
committed
Updated to Aspose.Tasks for Java 24.12. Added new examples. Cleaned the code.
1 parent c7490bc commit 2cf0d6a

File tree

141 files changed

+689
-615
lines changed

Some content is hidden

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

141 files changed

+689
-615
lines changed

.gitignore

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
1-
# Eclipse project files
2-
.classpath
3-
.project
4-
.settings/
5-
test-output/
6-
7-
# IntelliJ project files
8-
#.idea/
9-
*.iws
10-
#*.iml
11-
*.ipr
12-
13-
# Mac
14-
.DS_Store
15-
16-
# Others
17-
Temp/
18-
obj/
19-
classes/
20-
generated/
21-
bin/
22-
* Out*
23-
* out*
24-
*.ldb
25-
_ReSharper*/
26-
*.eml
27-
out/
28-
*.user
29-
*.resx
30-
nbproject/
31-
target/
32-
build/
33-
build.xml
34-
Thumbs.db
35-
manifest.mf
36-
Out/
37-
Out*/
38-
*.lic
39-
Data/*Out*
1+
# Eclipse project files
2+
.classpath
3+
.project
4+
.settings/
5+
test-output/
6+
7+
# IntelliJ project files
8+
.idea/
9+
*.iws
10+
*.iml
11+
*.ipr
12+
13+
# Mac
14+
.DS_Store
15+
16+
# Others
17+
Temp/
18+
obj/
19+
classes/
20+
generated/
21+
bin/
22+
* Out*
23+
* out*
24+
*.ldb
25+
_ReSharper*/
26+
*.eml
27+
out/
28+
*.user
29+
*.resx
30+
nbproject/
31+
target/
32+
build/
33+
build.xml
34+
Thumbs.db
35+
manifest.mf
36+
Out/
37+
Out*/
38+
*.lic
39+
Data/*Out*

Examples/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<dependency>
1414
<groupId>com.aspose</groupId>
1515
<artifactId>aspose-tasks</artifactId>
16-
<version>24.9</version>
16+
<version>24.12</version>
1717
<classifier>jdk18</classifier>
1818
</dependency>
1919
<dependency>

Examples/result.pdf

-42.3 KB
Binary file not shown.

Examples/result_days.pdf

-57.1 KB
Binary file not shown.

Examples/result_months.pdf

-56.8 KB
Binary file not shown.

Examples/result_thirdsOfMonths.pdf

-54.3 KB
Binary file not shown.

Examples/saved.mpp

Whitespace-only changes.

Examples/src/main/java/com/aspose/tasks/examples/CalendarExceptions/AddRemoveCalendarExceptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
public class AddRemoveCalendarExceptions {
1515
public static void main(String[] args) {
16-
// The path to the documents directory.
17-
String dataDir = Utils.getDataDir(AddRemoveCalendarExceptions.class);
16+
// The path to the document directory.
17+
String dataDir = Utils.getDataDir(java.lang.invoke.MethodHandles.lookup().lookupClass());
1818

1919
Project project = new Project(dataDir + "input.mpp");
2020

Examples/src/main/java/com/aspose/tasks/examples/CalendarExceptions/DefineWeekdaysForExceptions.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515

1616
public class DefineWeekdaysForExceptions {
1717
public static void main(String[] args) {
18-
// ExStart: DefineWeekDaysForExceptions
19-
// The path to the documents directory.
20-
String dataDir = Utils.getDataDir(DefineWeekdaysForExceptions.class);
18+
// The path to the output directory.
19+
String outDir = Utils.getOutDir(java.lang.invoke.MethodHandles.lookup().lookupClass());
2120

2221
// Create a project instance
2322
Project project = new Project();
@@ -35,8 +34,7 @@ public static void main(String[] args) {
3534
cal.getExceptions().add(except);
3635

3736
// Save the Project
38-
project.save(dataDir + "project.xml", SaveFileFormat.Xml);
39-
// ExEnd: DefineWeekDaysForExceptions
37+
project.save(outDir + "project_out.xml", SaveFileFormat.Xml);
4038
}
4139
}
4240

Examples/src/main/java/com/aspose/tasks/examples/CalendarExceptions/HandleOccurrences.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@
1212

1313
public class HandleOccurrences {
1414
public static void main(String[] args) {
15-
// ExStart: HandleOccurrences
1615
CalendarException except = new CalendarException();
1716
except.setEnteredByOccurrences(true);
1817
except.setOccurrences(5);
1918
except.setType(CalendarExceptionType.YearlyByDay);
20-
// ExEnd: HandleOccurrences
2119
}
2220
}
2321

0 commit comments

Comments
 (0)