| 376 |
<h3><a name="pde-build"/>PDE-Build</h3> |
<h3><a name="pde-build"/>PDE-Build</h3> |
| 377 |
<h4>Plugin with "." on the classpath</h4> |
<h4>Plugin with "." on the classpath</h4> |
| 378 |
<ul> |
<ul> |
| 379 |
<li> Using the "new plugin wizard" create a plugin named Dot1 with "." as a jar name. </li> |
<li> Using the "new plugin wizard" create a plugin named Dot1 with "." as a |
| 380 |
<li> Export it as a zip. Verify that the classes are not into a jar. </li> |
jar name. </li> |
| 381 |
<li> Export it as folder. Verify that the classes are at the root of the folder.</li> |
<li> Export "deployable plug-in" as a zip. Verify that the classes |
| 382 |
|
are not into a jar. </li> |
| 383 |
|
<li> Export "deployable plug-in" as folder. Verify that the classes |
| 384 |
|
are at the root of the folder.</li> |
| 385 |
</ul> |
</ul> |
| 386 |
|
|
| 387 |
|
|
| 390 |
<li> Create a plugin named Normal</li> |
<li> Create a plugin named Normal</li> |
| 391 |
<li> add a dependency to Dot1 in the plugin.xml</li> |
<li> add a dependency to Dot1 in the plugin.xml</li> |
| 392 |
<li> add a code dependency from a class in Normal to a class in Dot1</li> |
<li> add a code dependency from a class in Normal to a class in Dot1</li> |
| 393 |
<li> try to export Normal</li> |
<li> try to export Normal as "deployable plug-in" </li> |
| 394 |
<li> try to export Normal and Dot1</li> |
<li> try to export Normal and Dot1as "deployable plug-in" </li> |
| 395 |
<li> confirm that no compile errors occured (if there were you would get an error dialog at the end of the export)</li> |
<li> confirm that no compile errors occured (if there were you would get an |
| 396 |
|
error dialog at the end of the export)</li> |
| 397 |
</ul> |
</ul> |
| 398 |
|
|
| 399 |
|
|
| 400 |
<h4>Plugin with a folder on the classpath</h4> |
<h4>Plugin with a folder on the classpath</h4> |
| 401 |
<ul> |
<ul> |
| 402 |
<li> Create a plugin named Folder1 with "myFolder" as a jar name</li> |
<li> Create a plugin named Folder1 with "myFolder" as a jar name</li> |
| 403 |
<li> edit the build.properties and add a slash after myFolder in bin.includes property</li> |
<li> edit the build.properties and add a slash after myFolder in bin.includes |
| 404 |
<li> Export as folder, verify that the class files are rooted in a folder called myFolder</li> |
property</li> |
| 405 |
|
<li> Export "deployable plug-in" as folder, verify that the class |
| 406 |
|
files are rooted in a folder called myFolder</li> |
| 407 |
</ul> |
</ul> |
| 408 |
|
|
| 409 |
|
|
| 410 |
<h4>Testing the build order</h4> |
<h4>Testing the build order</h4> |
| 411 |
<ul> |
<ul> |
| 412 |
<li> in the plugin Folder1, add the following things in the runtime section of the plugin.xml</li> |
<li> in the plugin Folder1, add the following things in the runtime section of the plugin.xml</li> |
| 413 |
|
|
| 414 |
<pre> |
<pre> |
| 415 |
<library name="yourFolder"> |
<library name="yourFolder"> |
| 416 |
<export name="*"/> |
<export name="*"/> |
| 417 |
</library> |
</library> |
| 418 |
<library name="library.jar"> |
<library name="library.jar"> |
| 419 |
export name="*"/> |
<export name="*"/> |
| 420 |
</library> |
</library> |
| 421 |
</pre> |
</pre> |
| 422 |
<li> replace the content of the build.properties by </li> |
<li> replace the content of the build.properties by </li> |
| 432 |
yourFolder/ |
yourFolder/ |
| 433 |
jars.compile.order = yourFolder, library.jar, myFolder |
jars.compile.order = yourFolder, library.jar, myFolder |
| 434 |
</pre> |
</pre> |
| 435 |
<li> generate manually the build.xml and verify that the build.jars target successively and in this order list yourFolder, library.jar and myFolder</li> |
|
| 436 |
|
<li> generate manually the build.xml (select plugin.xml, context menu, PDE Tools |
| 437 |
|
-> Create Ant Build file) and verify that the build.jars target successively |
| 438 |
|
and in this order list yourFolder, library.jar and myFolder</li> |
| 439 |
</ul> |
</ul> |
| 440 |
|
|
| 441 |
<h4>Reuse the plugin Normal</h4> |
<h4>Reuse the plugin Normal</h4> |
| 442 |
<ul> |
<ul> |
| 443 |
<li> add a dependency to Folder1</li> |
<li> add a dependency to Folder1</li> |
| 444 |
<li> add a code dependency from a class in Normal to a class in Folder1</li> |
<li> add a code dependency from a class in Normal to a class in Folder1</li> |
| 445 |
<li> Export Normal</li> |
<li> Export Normal as "deployable plug-in" </li> |
| 446 |
<li> Export Normal and Folder1</li> |
<li> Export Normal and Folder1 as "deployable plug-in" </li> |
| 447 |
</ul> |
</ul> |
| 448 |
|
|
| 449 |
|
|
| 451 |
<ul> |
<ul> |
| 452 |
<li> Create a plugin Qualified where the version number ends is 1.0.0.qualifier.</li> |
<li> Create a plugin Qualified where the version number ends is 1.0.0.qualifier.</li> |
| 453 |
<li> open the build.properties and add |
<li> open the build.properties and add |
| 454 |
<pre>qualifier = context</pre></li> |
<pre>qualifier = context</pre> |
| 455 |
<li> Export the plugin as zip and verify that the name of the zip has 1.0.0.<date Of The Day></li> |
</li> |
| 456 |
<li> Export the plugin as folder and verify that the folder as the name 1.0.0.<date of the day></li> |
<li> Export "deployable plug-in" as zip and verify that the name of |
| 457 |
<li> Verify that the version number of the feature in the feature.xml has been updated</li> |
the zip has 1.0.0.<date Of The Day></li> |
| 458 |
|
<li> Export "deployable plug-in" as folder and verify that the folder |
| 459 |
|
as the name 1.0.0.<date of the day></li> |
| 460 |
|
<li> Verify that the version number of the feature in the feature.xml has been |
| 461 |
|
updated</li> |
| 462 |
<li> change the build.properties to |
<li> change the build.properties to |
| 463 |
<pre>qualifier = NONE</pre></li> |
<pre>qualifier = NONE</pre> |
| 464 |
<li> Export the plugin as zip and verify that the name of the zip is 1.0.0</li> |
</li> |
| 465 |
<li> Export the plugin as folder and verify that the name of the directory is 1.0.0</li> |
<li> Export "deployable plug-in" as zip and verify that the name of |
| 466 |
|
the zip is 1.0.0</li> |
| 467 |
|
<li> Export "deployable plug-in" as folder and verify that the name |
| 468 |
|
of the directory is 1.0.0</li> |
| 469 |
<li> change the build.properties to |
<li> change the build.properties to |
| 470 |
<pre>qualifier = myValue</pre> |
<pre>qualifier = myValue</pre> |
| 471 |
</li> |
</li> |
| 472 |
<li> Export the plugin as zip and verify that the name of the zip is 1.0.0.myValue</li> |
<li> Export "deployable plug-in" as zip and verify that the name of |
| 473 |
<li> Export the plugin as folder and verify that the name of the directory is 1.0.0.myValue</li> |
the zip is 1.0.0.myValue</li> |
| 474 |
|
<li> Export "deployable plug-in" as folder and verify that the name |
| 475 |
|
of the directory is 1.0.0.myValue</li> |
| 476 |
</ul> |
</ul> |
| 477 |
|
|
| 478 |
|
|
| 487 |
<ul> |
<ul> |
| 488 |
<li> Take the feature previously created</li> |
<li> Take the feature previously created</li> |
| 489 |
<li> add the plugin "Qualified" in the feature</li> |
<li> add the plugin "Qualified" in the feature</li> |
| 490 |
<li> Export the feature and verify that the feature.xml content has been updated (the reference to Qualified has the number from the "Qualified" plugin)</li> |
|
| 491 |
|
<li> Export "as deployable feature" and verify that the feature.xml |
| 492 |
|
content has been updated (the reference to Qualified has the number from the |
| 493 |
|
"Qualified" plugin)</li> |
| 494 |
<li> Verify that the version number of the feature in the feature.xml has been updated</li> |
<li> Verify that the version number of the feature in the feature.xml has been updated</li> |
| 495 |
</ul> |
</ul> |
| 496 |
|
|