libs/stx_libjava_libs.st
branchdirectory_structure_refactoring
changeset 1821 965b022f6032
child 1823 41b161f7ec69
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libs/stx_libjava_libs.st	Thu Nov 15 23:54:30 2012 +0000
@@ -0,0 +1,190 @@
+"{ Package: 'stx:libjava/libs' }"
+
+LibraryDefinition subclass:#stx_libjava_libs
+	instanceVariableNames:''
+	classVariableNames:''
+	poolDictionaries:''
+	category:'* Projects & Packages *'
+!
+
+
+!stx_libjava_libs class methodsFor:'description'!
+
+excludedFromPreRequisites
+    "list all packages which should be ignored in the automatic
+     preRequisites scan. See #preRequisites for more."
+
+    ^ #(
+    )
+!
+
+preRequisites
+    "list all required packages.
+     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."
+
+    ^ #(
+        #'stx:libbasic'    "Object - superclass of stx_libjava_libs "
+    )
+! !
+
+!stx_libjava_libs class methodsFor:'description - compilation'!
+
+additionalRules_bc_dot_mak
+    ^ '
+java:
+        pushd java
+        mvn package
+        popd
+
+
+'
+
+    "Modified: / 15-11-2012 / 23:55:47 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
+additionalRules_make_dot_proto
+    ^ '
+java:
+        (cd java && mvn package)
+
+'
+
+    "Modified: / 15-11-2012 / 23:56:02 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
+additionalTargets_bc_dot_mak
+
+    ^ 'java'
+
+    "Modified: / 15-11-2012 / 23:56:07 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
+additionalTargets_make_dot_proto
+
+    ^ 'java'
+
+    "Created: / 05-09-2006 / 16:05:12 / cg"
+    "Modified: / 15-11-2012 / 23:56:12 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+! !
+
+!stx_libjava_libs class methodsFor:'description - contents'!
+
+classNamesAndAttributes
+    "lists the classes which are to be included in the project.
+     Each entry in the list may be: a single class-name (symbol),
+     or an array-literal consisting of class name and attributes.
+     Attributes are: #autoload or #<os> where os is one of win32, unix,..."
+
+    ^ #(
+        "<className> or (<className> attributes...) in load order"
+        #'stx_libjava_libs'
+    )
+!
+
+extensionMethodNames
+    "lists the extension methods which are to be included in the project.
+     Entries are 2-element array literals, consisting of class-name and selector."
+
+    ^ #(
+    )
+! !
+
+!stx_libjava_libs class methodsFor:'description - java'!
+
+javaClassPath
+
+    <javaclasspath>
+
+    ^{ 
+        self packageDirectory / 'java' / 'bin' .
+        self packageDirectory / 'java' / 'libs' / '*.jar' 
+    }
+
+    "Created: / 17-11-2011 / 23:00:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
+javaSourcePath
+
+    <javasourcepath>
+
+    ^{ 
+        self packageDirectory / 'java' / 'src' .
+        self packageDirectory / 'java' / 'libs-src' / '*.jar' .            
+    }
+
+    "Created: / 17-11-2011 / 23:01:02 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+! !
+
+!stx_libjava_libs class methodsFor:'description - project information'!
+
+applicationIconFileName
+    "Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file"
+
+    ^ nil
+    "/ ^ self applicationName
+!
+
+companyName
+    "Return a companyname which will appear in <lib>.rc"
+
+    ^ 'eXept Software AG & SWING Research Group'
+
+    "Modified: / 15-11-2012 / 23:51:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
+description
+    "Description string which will appear in vc.def / bc.def"
+
+    ^ 'Java support for Smalltalk/X - external java libraries'
+
+    "Modified: / 15-11-2012 / 23:52:46 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
+legalCopyright
+    "Copyright string which will appear in <lib>.rc"
+
+    ^ 'Copyright Claus Gittinger 1988-2011\nCopyright eXept Software AG 1998-2011\nCopyright Jan Vrany, Jan Kurs and Marcel Hlopko\n          SWING Research Group, Czech Technical University In Prague'
+
+    "Modified: / 15-11-2012 / 23:51:35 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
+productInstallDirBaseName
+    "Returns a default installDir which will appear in <app>.nsi.
+     This is usually not the one you want to keep"
+
+    ^ (self package asCollectionOfSubstringsSeparatedByAny:':/') last
+!
+
+productName
+    "Return a product name which will appear in <lib>.rc"
+
+    ^ 'Smalltalk/X'
+! !
+
+!stx_libjava_libs class methodsFor:'description - svn'!
+
+svnRepositoryUrlString
+    "Return a SVN repository URL of myself.
+     (Generated since 2011-04-08)
+     Do not make the string shorter!!!!!! We have to use fixed-length keyword!!!!!!
+    "        
+
+    ^ '$URL::                                                                                                                        $'
+!
+
+svnRevisionNr
+    "Return a SVN revision number of myself.
+     This number is updated after a commit"
+
+    ^ "$SVN-Revision:"'nil             '"$"
+! !
+
+!stx_libjava_libs class methodsFor:'documentation'!
+
+version_SVN
+    ^ '$Id::                                                                                                                        $'
+! !