Licensing and Subscription

Evaluate Aspose.Tasks

A free evaluation version of Aspose.Tasks for Java can be downloaded from download section of Aspose.Tasks for Java.

If you want to test Aspose.Tasks without evaluation version limitations, you can also request a 30 Day Temporary License. Please refer to How to get a Temporary License?

PDF Creator Information

Please note that you cannot set values against the Application and Producer fields, because Aspose Ltd. and Aspose.Tasks for Java x.x.x will be displayed against these fields.

Limitations

The evaluation version provides all the features except the following:

DateTime Limitation

The date year will be converted to 2000 in the projects that will be written through Aspose.Tasks for Java as explained in the following code example. This example tries to create a project with two tasks through Aspose.Tasks for Java without using a license file.

The project file created from the code looks like the one below in Microsoft Project. Note that the Start and Finish dates for Task1 have been converted from 06-Apr-2010 to 06-Apr-2000. Similarly, the Start and Finish dates for Task2 have been converted from 10-Apr-2010 to 10-Apr-2000. These dates are written with the same original year if the project is created using a licensed version of Aspose.Tasks for Java.

Date changes in the evaluation version of Aspose.Tasks

changed dates in evaluated version of Aspose.Tasks for Java

 1java.util.Calendar calendar = java.util.Calendar.getInstance(TimeZone.getTimeZone("GMT"));
 2calendar.set(2010, java.util.Calendar.APRIL, 6, 0, 0, 0);
 3Date startDate = calendar.getTime();
 4Project prj = new Project();
 5Task rootTsk = new Task();
 6Task tsk1 = new Task("Task1");
 7tsk1.setActualStart(startDate);
 8calendar.set(2010, java.util.Calendar.APRIL,10,0,0,0);
 9startDate = calendar.getTime();
10Task tsk2 = new Task("Task2");
11tsk2.setActualStart(startDate);
12//Add tsk1 and tsk2 to the rootTsk
13rootTsk.getChildren().add(tsk1);
14rootTsk.getChildren().add(tsk2);
15//Set rootTsk as root task of the project
16prj.setRootTask(rootTsk);
17//Perform recalculations
18prj.calcTaskIds();
19prj.calcTaskUids();
20//Save the Project as XML
21prj.save("ResultingProject.xml", SaveFileFormat.XML);

MPP Write Support

Aspose.Tasks for Java supports reading MPP files, updating the project summary information and then writing updated project files in original the MPP format. That is, if original MPP format belongs to Microsoft Project 2003 version, the MPP file updated through Aspose.Tasks for Java will also be in Microsoft Project 2003 MPP format. The same is valid for Microsoft Project 2007, 2010 and 2013 MPP formats. However, this support is only available in licensed versions of Aspose.Tasks for Java.

Applying the License

You can download an evaluation version of Aspose.Tasks for Java from its download page. The evaluation version provides absolutely the same capabilities as the licensed version of the product. Furthermore, evaluation version simply becomes licensed when you purchase a license and add a couple of lines of code to apply the license.

Once you are happy with your evaluation of Aspose.Tasks for Java, you can purchase a license at the Aspose website. Make yourself familiar with the different subscription types offered. If you have any questions, do not hesitate to contact the Aspose sales team.

Every Aspose license carries a one-year subscription for free upgrades to any new versions or fixes that come out during this time. Technical support is free and unlimited and provided both to licensed and evaluation users.

If you want to test Aspose.Tasks without evaluation version limitations, request a 30-day temporary license. Please refer to How to get a Temporary License? for more information.

Setting a License

The license is a plain text XML file that contains details such as the product name, number of developers it is licensed to, subscription expiry date and so on. The file is digitally signed, so do not modify the file; even the inadvertent addition of an extra line break into the file will invalidate it.

You need to set a license before utilizing Aspose.Tasks if you want to avoid its evaluation limitations. You are only required to set a license once per application or process.

The license can be loaded from a stream or file in the following locations:

  1. Explicit path.
  2. The folder that contains the Aspose.Tasks.jar.

Use the License.setLicense method to license the component. Often the easiest way to set a license is to put the license file in the same folder as Aspose.Tasks.jar and specify just the file name without path as shown in the following example:

Example 1

In this example Aspose.Tasks will attempt to find the license file in the folder that contain the JARs of your application.

1com.aspose.tasks.License license = new com.aspose.tasks.License();
2license.setLicense("Aspose.Tasks.Java.lic");

Example 2

Initializes a license from a stream.

1com.aspose.tasks.License license = new com.aspose.tasks.License();
2license.setLicense(new java.io.FileInputStream("Aspose.Tasks.Java.lic"));

Applying a Metered (pay-per-use) license

A Metered license is a licensing mechanism that allows customers to be billed based on the usage of the API features. For more details, please refer to Metered Licensing FAQ section. To activate the Metered license you need public and private keys.

Applying a Metered license is as simple as those two lines of code:

1Metered metered = new Metered();
2metered.setMeteredKey("PublicKey", "PrivateKey");
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.