changed: #loadAllClassesAsAutoloaded:
authorStefan Vogel <sv@exept.de>
Tue, 05 Oct 2010 17:59:32 +0200
changeset 13087 57fd77bae775
parent 13086 96e4c9426645
child 13088 fd588a4030f2
changed: #loadAllClassesAsAutoloaded:
ProjectDefinition.st
--- a/ProjectDefinition.st	Tue Oct 05 17:41:24 2010 +0200
+++ b/ProjectDefinition.st	Tue Oct 05 17:59:32 2010 +0200
@@ -4685,10 +4685,16 @@
         loadedClasses := OrderedCollection new.
 
         self packageDirectory isNil ifTrue:[
-            self 
-                error:(self name,'[error] cannot install because packageDirectory is unknown: ', classNamesToLoad printString)
-                mayProceed:true.
-            ^ false.
+            classNamesToLoad notEmpty ifTrue:[
+                "required classes are missing.
+                 Autoloaded classes are considered as optional..."
+                self 
+                    error:(self name,'[error] cannot install because packageDirectory is unknown: ', classNamesToLoad printString)
+                    mayProceed:true.
+                ^ false.
+            ].
+            (self name,'[info] cannot install autoloaded classes because packageDirectory is unknown') infoPrintCR.
+            ^ true.
         ].
 
         "we need the abbreviations, since sometimes there is no 1-to-1 mapping
@@ -5422,11 +5428,11 @@
 !ProjectDefinition class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/ProjectDefinition.st,v 1.318 2010-10-05 15:41:24 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/ProjectDefinition.st,v 1.319 2010-10-05 15:59:32 stefan Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic/ProjectDefinition.st,v 1.318 2010-10-05 15:41:24 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/ProjectDefinition.st,v 1.319 2010-10-05 15:59:32 stefan Exp $'
 ! !
 
 ProjectDefinition initialize!