examples/stx_libjava_examples.st
branchdevelopment
changeset 2711 a00302fe5083
parent 2543 5711edfa361d
child 2731 13f5be2bf83b
--- a/examples/stx_libjava_examples.st	Thu Sep 05 22:08:59 2013 +0100
+++ b/examples/stx_libjava_examples.st	Fri Sep 06 00:16:38 2013 +0100
@@ -18,17 +18,40 @@
     )
 !
 
-preRequisites
-    "list all required packages.
+mandatoryPreRequisites
+    "list all required mandatory packages.
+     Packages are mandatory, if they contain superclasses of the package's classes
+     or classes which are extended by this package.
      This list can be maintained manually or (better) generated and
-     updated by scanning the superclass hierarchies and looking for
-     global variable accesses. (the browser has a menu function for that)
-     Howevery, often too much is found, and you may want to explicitely
-     exclude individual packages in the #excludedFromPrerequisites method."
+     updated by scanning the superclass hierarchies
+     (the browser has a menu function for that)"
 
     ^ #(
-        #'stx:libbasic'    "Object - superclass of HelloWorldExampleS "
-        #'stx:libjava'    "JavaLookup - referenced by JavaExamples::CDDatabaseHandler class>>initialize "
+        #'stx:libbasic'    "LibraryDefinition - superclass of stx_libjava_examples "
+    )
+!
+
+referencedPreRequisites
+    "list all packages containing classes referenced by the packages's members.
+     This list can be maintained manually or (better) generated and
+     updated by looking for global variable accesses
+     (the browser has a menu function for that)
+     However, often too much is found, and you may want to explicitely
+     exclude individual packages in the #excludedFromPreRequisites method."
+
+    ^ #(
+        #'stx:libjava'    "JavaCodeBundle - referenced by stx_libjava_examples class>>javaBundle "
+    )
+!
+
+subProjects
+    "list packages which are known as subprojects.
+     The generated makefile will enter those and make there as well.
+     However: they are not forced to be loaded when a package is loaded;
+     for those, redefine requiredPrerequisites"
+
+    ^ #(
+        #'stx:libjava/examples/tomcat6'
     )
 ! !
 
@@ -178,7 +201,7 @@
 !stx_libjava_examples class methodsFor:'documentation'!
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libjava/examples/stx_libjava_examples.st,v 1.2 2013-02-25 11:15:32 vrany Exp $'
+    ^ '$Header$'
 !
 
 version_HG