Build support files updated for stx:libjava/examples development
authorJan Vrany <jan.vrany@fit.cvut.cz>
Thu, 18 Apr 2013 23:25:04 +0200
branchdevelopment
changeset 2525 9e83c7ee780e
parent 2524 9f1b8058849f
child 2526 ef415ed11871
Build support files updated for stx:libjava/examples
examples/CodingExamples_GUI__JavaAppletDemo1.st
examples/CodingExamples_GUI__JavaAppletDemo2.st
examples/CodingExamples_GUI__JavaAppletDemo3.st
examples/Make.proto
examples/Make.spec
examples/bc.mak
examples/examples.rc
examples/libInit.cc
examples/mingwmake.bat
examples/stx_libjava_examples.st
examples/vcmake.bat
--- a/examples/CodingExamples_GUI__JavaAppletDemo1.st	Thu Apr 18 18:36:19 2013 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,104 +0,0 @@
-"{ NameSpace: CodingExamples_GUI }"
-
-ApplicationModel subclass:#JavaAppletDemo1
-	instanceVariableNames:''
-	classVariableNames:''
-	poolDictionaries:''
-	category:'examples-Java-Applets'
-!
-
-!JavaAppletDemo1 class methodsFor:'documentation'!
-
-documentation
-"
-    Simple app using a java applet
-
-    [author:]
-        Claus Gittinger (cg@betti)
-"
-!
-
-examples
-"
-    examples to be added.
-                                                                [exBegin]
-    JavaAppletDemo1 open 
-                                                                [exEnd]
-"
-! !
-
-!JavaAppletDemo1 class methodsFor:'interface specs'!
-
-windowSpec
-    "this window spec was automatically generated by the ST/X UIPainter"
-
-    "do not manually edit this - the painter/builder may not be able to
-     handle the specification if its corrupted."
-
-    "
-     UIPainter new openOnClass:CodingExamples_GUI::JavaAppletDemo1 andSelector:#windowSpec
-     CodingExamples_GUI::JavaAppletDemo1 new openInterface:#windowSpec
-    "
-    "CodingExamples_GUI::JavaAppletDemo1 open"
-
-    <resource: #canvas>
-
-    ^
-     
-       #(#FullSpec
-          #'window:' 
-           #(#WindowSpec
-              #'name:' 'standardSystemView'
-              #'layout:' #(#LayoutFrame 216 0 173 0 572 0 657 0)
-              #'label:' 'unnamed canvas'
-              #'min:' #(#Point 10 10)
-              #'max:' #(#Point 1280 1024)
-              #'bounds:' #(#Rectangle 216 173 573 658)
-              #'usePreferredExtent:' false
-          )
-          #'component:' 
-           #(#SpecCollection
-              #'collection:' 
-               #(
-                 #(#LabelSpec
-                    #'name:' 'label1'
-                    #'layout:' #(#LayoutFrame 0 0.0 7 0 0 1.0 48 0)
-                    #'label:' 'Java applet example'
-                    #'style:' #(#FontDescription #times #bold #roman 18)
-                )
-                 #(#ActionButtonSpec
-                    #'name:' 'actionButton1'
-                    #'layout:' #(#AlignmentOrigin 179 0 -14 1 0.5 1)
-                    #'label:' 'dismiss'
-                    #'model:' #closeRequest
-                )
-                 #(#ViewSpec
-                    #'name:' 'view1'
-                    #'layout:' #(#LayoutFrame 4 0.0 60 0.0 -4 1.0 -60 1.0)
-                    #'component:' 
-                     #(#SpecCollection
-                        #'collection:' 
-                         #(
-                           #(#JavaAppletComponentSpec
-                              #'name:' 'javaAppletComponent2'
-                              #'layout:' #(#LayoutFrame 1 0.0 1 0.0 -1 1.0 -1 1.0)
-                              #'codeURL:' 'ArcTest.class'
-                              #'codeBaseURL:' 'file:examples/ArcTest'
-                              #'level:' -1
-                          )
-                        )
-                    )
-                    #'level:' -1
-                )
-              )
-          )
-      )
-
-    "Modified: / 30.1.1998 / 05:03:29 / cg"
-! !
-
-!JavaAppletDemo1 class methodsFor:'documentation'!
-
-version
-    ^ '$Id: CodingExamples_GUI__JavaAppletDemo1.st,v 1.1 2013-02-25 11:15:32 vrany Exp $'
-! !
\ No newline at end of file
--- a/examples/CodingExamples_GUI__JavaAppletDemo2.st	Thu Apr 18 18:36:19 2013 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,127 +0,0 @@
-"{ NameSpace: CodingExamples_GUI }"
-
-ApplicationModel subclass:#JavaAppletDemo2
-	instanceVariableNames:''
-	classVariableNames:''
-	poolDictionaries:''
-	category:'examples-Java-Applets'
-!
-
-!JavaAppletDemo2 class methodsFor:'documentation'!
-
-documentation
-"
-    Simple app using a java applet
-
-    [author:]
-        Claus Gittinger (cg@betti)
-"
-!
-
-examples
-"
-    examples to be added.
-                                                                [exBegin]
-    JavaAppletDemo2 open
-                                                                [exEnd]
-"
-! !
-
-!JavaAppletDemo2 class methodsFor:'interface specs'!
-
-windowSpec
-    "this window spec was automatically generated by the ST/X UIPainter"
-
-    "do not manually edit this - the painter/builder may not be able to
-     handle the specification if its corrupted."
-
-    "
-     UIPainter new openOnClass:CodingExamples_GUI::JavaAppletDemo2 andSelector:#windowSpec
-     CodingExamples_GUI::JavaAppletDemo2 new openInterface:#windowSpec
-    "
-    "CodingExamples_GUI::JavaAppletDemo2 open"
-
-    <resource: #canvas>
-
-    ^
-     
-       #(#FullSpec
-          #'window:' 
-           #(#WindowSpec
-              #'name:' 'standardSystemView'
-              #'layout:' #(#LayoutFrame 61 0 177 0 369 0 661 0)
-              #'label:' 'unnamed canvas'
-              #'min:' #(#Point 10 10)
-              #'max:' #(#Point 1280 1024)
-              #'bounds:' #(#Rectangle 61 177 370 662)
-              #'usePreferredExtent:' false
-          )
-          #'component:' 
-           #(#SpecCollection
-              #'collection:' 
-               #(
-                 #(#LabelSpec
-                    #'name:' 'label1'
-                    #'layout:' #(#LayoutFrame 0 0.0 7 0 0 1.0 48 0)
-                    #'label:' 'Java applet example 2'
-                    #'style:' #(#FontDescription #times #bold #roman 18)
-                )
-                 #(#ActionButtonSpec
-                    #'name:' 'actionButton1'
-                    #'layout:' #(#AlignmentOrigin 179 0 -14 1 0.5 1)
-                    #'label:' 'dismiss'
-                    #'model:' #closeRequest
-                )
-                 #(#ViewSpec
-                    #'name:' 'view1'
-                    #'layout:' #(#LayoutFrame 0 0.0 60 0.0 0 1.0 -60 1.0)
-                    #'component:' 
-                     #(#SpecCollection
-                        #'collection:' 
-                         #(
-                           #(#JavaAppletComponentSpec
-                              #'name:' 'javaAppletComponent2'
-                              #'layout:' #(#LayoutFrame 0 0.0 1 0.0 0 1.0 -1 1.0)
-                              #'codeURL:' 'Chart.class'
-                              #'codeBaseURL:' 'file:examples/BarChart'
-                              #'parameterDictionary:' 
-                               #(#Dictionary
-                                  'c4_color' 'red'
-                                  'orientation' 'vertical'
-                                  'c2_style' 'solid'
-                                  'columns' '4'
-                                  'title' 'Performance'
-                                  'c3_label' 'Q3'
-                                  'c4' '30'
-                                  'scale value' '5'
-                                  'c1_style' 'striped'
-                                  'c4_style' 'solid'
-                                  'c3_color' 'magenta'
-                                  'c3' '5'
-                                  'c2_label' 'Q2'
-                                  'c2_color ' 'green'
-                                  'c2' '20'
-                                  'c1_color' 'blue'
-                                  'c3_style' 'striped'
-                                  'c1_label' 'Q1'
-                                  'c1' '10'
-                                  'c4_label' 'Q4'
-                              )
-                              #'level:' -1
-                          )
-                        )
-                    )
-                    #'level:' -1
-                )
-              )
-          )
-      )
-
-    "Modified: / 30.1.1998 / 11:38:09 / cg"
-! !
-
-!JavaAppletDemo2 class methodsFor:'documentation'!
-
-version
-    ^ '$Id: CodingExamples_GUI__JavaAppletDemo2.st,v 1.1 2013-02-25 11:15:32 vrany Exp $'
-! !
\ No newline at end of file
--- a/examples/CodingExamples_GUI__JavaAppletDemo3.st	Thu Apr 18 18:36:19 2013 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,82 +0,0 @@
-"{ NameSpace: CodingExamples_GUI }"
-
-ApplicationModel subclass:#JavaAppletDemo3
-	instanceVariableNames:''
-	classVariableNames:''
-	poolDictionaries:''
-	category:'examples-Java-Applets'
-!
-
-!JavaAppletDemo3 class methodsFor:'documentation'!
-
-documentation
-"
-    Java Reversi app
-    This wrapps a Java Reversi Game application into a smalltalk view.
-
-    [author:]
-        Claus Gittinger (cg@betti)
-"
-!
-
-examples
-"
-    examples to be added.
-                                                                [exBegin]
-    JavaAppletDemo3 open
-                                                                [exEnd]
-"
-! !
-
-!JavaAppletDemo3 class methodsFor:'interface specs'!
-
-windowSpec
-    "this window spec was automatically generated by the ST/X UIPainter"
-
-    "do not manually edit this - the painter/builder may not be able to
-     handle the specification if its corrupted."
-
-    "
-     UIPainter new openOnClass:CodingExamples_GUI::JavaAppletDemo3 andSelector:#windowSpec
-     CodingExamples_GUI::JavaAppletDemo3 new openInterface:#windowSpec
-    "
-    "CodingExamples_GUI::JavaAppletDemo3 open"
-
-    <resource: #canvas>
-
-    ^
-     
-       #(#FullSpec
-          #'window:' 
-           #(#WindowSpec
-              #'name:' 'Canvas'
-              #'layout:' #(#LayoutFrame 216 0 173 0 533 0 563 0)
-              #'label:' 'Java Reversi'
-              #'min:' #(#Point 10 10)
-              #'max:' #(#Point 1280 1024)
-              #'bounds:' #(#Rectangle 216 173 534 564)
-              #'usePreferredExtent:' false
-          )
-          #'component:' 
-           #(#SpecCollection
-              #'collection:' 
-               #(
-                 #(#JavaAppletComponentSpec
-                    #'name:' 'javaAppletComponent1'
-                    #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
-                    #'codeURL:' 'KReversi.class'
-                    #'codeBaseURL:' 'file:examples/KReversi'
-                    #'level:' -1
-                )
-              )
-          )
-      )
-
-    "Modified: / 1.2.1998 / 17:48:26 / cg"
-! !
-
-!JavaAppletDemo3 class methodsFor:'documentation'!
-
-version
-    ^ '$Id: CodingExamples_GUI__JavaAppletDemo3.st,v 1.1 2013-02-25 11:15:32 vrany Exp $'
-! !
\ No newline at end of file
--- a/examples/Make.proto	Thu Apr 18 18:36:19 2013 +0200
+++ b/examples/Make.proto	Thu Apr 18 23:25:04 2013 +0200
@@ -1,4 +1,4 @@
-# $Header: /cvs/stx/stx/libjava/examples/Make.proto,v 1.4 2013-02-25 11:15:32 vrany Exp $
+# $Header$
 #
 # DO NOT EDIT
 # automagically generated from the projectDefinition: stx_libjava_examples.
@@ -34,7 +34,7 @@
 # add the path(es) here:,
 # ********** OPTIONAL: MODIFY the next lines ***
 # LOCALINCLUDES=-Ifoo -Ibar
-LOCALINCLUDES= -I$(INCLUDE_TOP)/stx/libbasic -I$(INCLUDE_TOP)/stx/libjava
+LOCALINCLUDES= -I$(INCLUDE_TOP)/stx/libbasic
 
 
 # if you need any additional defines for embedded C code,
@@ -63,8 +63,18 @@
 
 all:: preMake classLibRule postMake
 
-pre_objs::  
+pre_objs::  antIfPossible 
+
+
+java: ant
 
+ant:
+	ant -f java/build.xml dependencies build
+
+antIfPossible:
+	-ant -f java/build.xml dependencies build
+
+#full::  ant
 
 
 
@@ -121,27 +131,29 @@
 # add more postMake actions here
 postMake:: cleanjunk
 
-prereq: $(REQUIRED_SUPPORT_DIRS)
+# build all mandatory prerequisite packages (containing superclasses) for this package
+prereq:
 	cd ../../libbasic && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
+	cd ../../goodies/refactoryBrowser/parser && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
+	cd ../../libbasic2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
+	cd ../../libbasic3 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
 	cd ../../libcomp && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
-	cd ../../libbasic2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
-	cd ../../libdb && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
+	cd ../../libui && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
 	cd ../../libview && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
-	cd ../../libdb/libsqlite && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
-	cd ../../libdb/libodbc && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
-	cd ../../libboss && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
+	cd ../../goodies/petitparser && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
 	cd ../../libview2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
-	cd ../../libbasic3 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
-	cd ../../goodies/sunit && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
-	cd ../../libui && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
 	cd ../../libwidg && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
 	cd ../../libwidg2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
-	cd ../../libhtml && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
 	cd ../../libtool && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
 	cd ../ && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
 
 
 
+# build all packages containing referenced classes for this package
+# they are nor needed to compile the package
+references:
+
+
 cleanjunk::
 	-rm -f *.s *.s2
 
--- a/examples/Make.spec	Thu Apr 18 18:36:19 2013 +0200
+++ b/examples/Make.spec	Thu Apr 18 23:25:04 2013 +0200
@@ -1,4 +1,4 @@
-# $Header: /cvs/stx/stx/libjava/examples/Make.spec,v 1.4 2013-02-25 11:15:32 vrany Exp $
+# $Header$
 #
 # DO NOT EDIT
 # automagically generated from the projectDefinition: stx_libjava_examples.
--- a/examples/bc.mak	Thu Apr 18 18:36:19 2013 +0200
+++ b/examples/bc.mak	Thu Apr 18 23:25:04 2013 +0200
@@ -1,4 +1,4 @@
-# $Header: /cvs/stx/stx/libjava/examples/bc.mak,v 1.2 2013-02-25 11:15:32 vrany Exp $
+# $Header$
 #
 # DO NOT EDIT
 # automagically generated from the projectDefinition: stx_libjava_examples.
@@ -30,11 +30,11 @@
 !INCLUDE Make.spec
 
 LIBNAME=libstx_libjava_examples
-RESFILES=examples.res
+RESFILES=examples.$(RES)
 
 
 
-LOCALINCLUDES= -I$(INCLUDE_TOP)\stx\libbasic -I$(INCLUDE_TOP)\stx\libjava
+LOCALINCLUDES= -I$(INCLUDE_TOP)\stx\libbasic
 LOCALDEFINES=
 
 STCLOCALOPT=-package=$(PACKAGE) -I. $(LOCALINCLUDES) -headerDir=. $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES)  -varPrefix=$(LIBNAME)
@@ -42,40 +42,51 @@
 
 OBJS= $(COMMON_OBJS) $(WIN32_OBJS)
 
-ALL::  classLibRule
+ALL::  antIfPossible classLibRule
 
 classLibRule: $(OUTDIR) $(OUTDIR)$(LIBNAME).dll
 
 !INCLUDE $(TOP)\rules\stdRules_bc
 
-# build all prerequisite packages for this package
+# build all mandatory prerequisite packages (containing superclasses) for this package
 prereq:
 	pushd ..\..\libbasic & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
-	pushd ..\..\libcomp & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
+	pushd ..\..\goodies\refactoryBrowser\parser & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
 	pushd ..\..\libbasic2 & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
-	pushd ..\..\libdb & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
+	pushd ..\..\libbasic3 & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
+	pushd ..\..\libcomp & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
+	pushd ..\..\libui & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
 	pushd ..\..\libview & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
-	pushd ..\..\libdb\libsqlite & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
-	pushd ..\..\libdb\libodbc & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
-	pushd ..\..\libboss & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
+	pushd ..\..\goodies\petitparser & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
 	pushd ..\..\libview2 & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
-	pushd ..\..\libbasic3 & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
-	pushd ..\..\goodies\sunit & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
-	pushd ..\..\libui & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
 	pushd ..\..\libwidg & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
 	pushd ..\..\libwidg2 & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
-	pushd ..\..\libhtml & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
 	pushd ..\..\libtool & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
 	pushd .. & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
 
 
 
 
+java: ant
+
+ant:
+	ant -f java\build.xml dependencies build
+
+antIfPossible:
+	-ant -f java\build.xml dependencies build
+
+full::  ant
+
+
 
 
 test: $(TOP)\goodies\builder\reports\NUL
 	pushd $(TOP)\goodies\builder\reports & $(MAKE_BAT)
 	$(TOP)\goodies\builder\reports\report-runner.bat -D . -r Builder::TestReport -p $(PACKAGE)
+        
+clean::
+	del *.$(CSUFFIX)
+
 
 # BEGINMAKEDEPEND --- do not remove this line; make depend needs it
 $(OUTDIR)stx_libjava_examples.$(O) stx_libjava_examples.$(H): stx_libjava_examples.st $(INCLUDE_TOP)\stx\libbasic\LibraryDefinition.$(H) $(INCLUDE_TOP)\stx\libbasic\ProjectDefinition.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
--- a/examples/examples.rc	Thu Apr 18 18:36:19 2013 +0200
+++ b/examples/examples.rc	Thu Apr 18 23:25:04 2013 +0200
@@ -3,7 +3,7 @@
 // automagically generated from the projectDefinition: stx_libjava_examples.
 //
 VS_VERSION_INFO VERSIONINFO
-  FILEVERSION     6,2,564,564
+  FILEVERSION     6,2,32767,32767
   PRODUCTVERSION  6,2,3,0
 #if (__BORLANDC__)
   FILEFLAGSMASK   VS_FF_DEBUG | VS_FF_PRERELEASE
@@ -20,12 +20,12 @@
     BEGIN
       VALUE "CompanyName", "eXept Software AG\0"
       VALUE "FileDescription", "Smalltalk/X Class library (LIB)\0"
-      VALUE "FileVersion", "6.2.564.564\0"
+      VALUE "FileVersion", "6.2.32767.32767\0"
       VALUE "InternalName", "stx:libjava/examples\0"
       VALUE "LegalCopyright", "Copyright Claus Gittinger 1988-2012\nCopyright eXept Software AG 1998-2012\0"
       VALUE "ProductName", "Smalltalk/X\0"
       VALUE "ProductVersion", "6.2.3.0\0"
-      VALUE "ProductDate", "Thu, 14 Feb 2013 16:12:21 GMT\0"
+      VALUE "ProductDate", "Thu, 18 Apr 2013 21:23:34 GMT\0"
     END
 
   END
--- a/examples/libInit.cc	Thu Apr 18 18:36:19 2013 +0200
+++ b/examples/libInit.cc	Thu Apr 18 23:25:04 2013 +0200
@@ -1,5 +1,5 @@
 /*
- * $Header: /cvs/stx/stx/libjava/examples/libInit.cc,v 1.2 2013-02-25 11:15:32 vrany Exp $
+ * $Header$
  *
  * DO NOT EDIT
  * automagically generated from the projectDefinition: stx_libjava_examples.
@@ -13,16 +13,16 @@
 
 #if defined(INIT_TEXT_SECTION) || defined(DLL_EXPORT)
 DLL_EXPORT void _libstx_libjava_examples_Init() INIT_TEXT_SECTION;
-// DLL_EXPORT void _libstx_libjava_examples_InitDefinition() INIT_TEXT_SECTION;
+DLL_EXPORT void _libstx_libjava_examples_InitDefinition() INIT_TEXT_SECTION;
 #endif
 
-// void _libstx_libjava_examples_InitDefinition(pass, __pRT__, snd)
-// OBJ snd; struct __vmData__ *__pRT__; {
-// __BEGIN_PACKAGE2__("libstx_libjava_examples__DFN", _libstx_libjava_examples_InitDefinition, "stx:libjava/examples");
-// _stx_137libjava_137examples_Init(pass,__pRT__,snd);
+void _libstx_libjava_examples_InitDefinition(pass, __pRT__, snd)
+OBJ snd; struct __vmData__ *__pRT__; {
+__BEGIN_PACKAGE2__("libstx_libjava_examples__DFN", _libstx_libjava_examples_InitDefinition, "stx:libjava/examples");
+_stx_137libjava_137examples_Init(pass,__pRT__,snd);
 
-// __END_PACKAGE__();
-// }
+__END_PACKAGE__();
+}
 
 void _libstx_libjava_examples_Init(pass, __pRT__, snd)
 OBJ snd; struct __vmData__ *__pRT__; {
--- a/examples/mingwmake.bat	Thu Apr 18 18:36:19 2013 +0200
+++ b/examples/mingwmake.bat	Thu Apr 18 23:25:04 2013 +0200
@@ -8,7 +8,9 @@
 @FOR /F "tokens=*" %%i in ('hg root') do SET HGROOT=%%i
 @IF "%HGROOT%" NEQ "" SET DEFINES=%DEFINES% "-DHGROOT=%HGROOT%"
 
-@call ..\..\rules\find_mingw.bat
-make.exe -N -f bc.mak %USEMINGW_ARG% %*
+@pushd ..\..\rules
+@call find_mingw.bat
+@popd
+make.exe -N -f bc.mak %DEFINES% %USEMINGW_ARG% %*
 
 
--- a/examples/stx_libjava_examples.st	Thu Apr 18 18:36:19 2013 +0200
+++ b/examples/stx_libjava_examples.st	Thu Apr 18 23:25:04 2013 +0200
@@ -1,6 +1,6 @@
 "{ Package: 'stx:libjava/examples' }"
 
-LibraryDefinition subclass:#'stx_libjava_examples'
+LibraryDefinition subclass:#stx_libjava_examples
 	instanceVariableNames:''
 	classVariableNames:''
 	poolDictionaries:''
@@ -8,7 +8,6 @@
 !
 
 
-
 !stx_libjava_examples class methodsFor:'description'!
 
 excludedFromPreRequisites
@@ -33,6 +32,54 @@
     )
 ! !
 
+!stx_libjava_examples class methodsFor:'description - compilation'!
+
+additionalRules_bc_dot_mak
+    ^ '
+java: ant
+
+ant:
+        ant -f java\build.xml dependencies build
+
+antIfPossible:
+        -ant -f java\build.xml dependencies build
+
+full::  ant
+'
+
+    "Modified: / 17-04-2013 / 19:15:47 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
+additionalRules_make_dot_proto
+    ^ '
+java: ant
+
+ant:
+        ant -f java/build.xml dependencies build
+
+antIfPossible:
+        -ant -f java/build.xml dependencies build
+
+#full::  ant
+'
+
+    "Modified: / 17-04-2013 / 19:16:08 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
+additionalTargets_bc_dot_mak
+
+    ^ ' antIfPossible'
+
+    "Modified: / 17-04-2013 / 19:16:34 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
+additionalTargets_make_dot_proto
+
+    ^ ' antIfPossible'
+
+    "Created: / 05-09-2006 / 16:05:12 / cg"
+    "Modified: / 17-04-2013 / 19:16:31 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+! !
 
 !stx_libjava_examples class methodsFor:'description - contents'!
 
@@ -61,36 +108,15 @@
     )
 ! !
 
-
 !stx_libjava_examples class methodsFor:'description - java'!
 
-javaClassPath
-
-    <javaclasspath>
-
-
-    ^{ 
-        self packageDirectory / 'java' / 'bin' .
-        self packageDirectory / 'java' / 'libs' / '*.jar' 
-    }
+javaBundle
 
-    "Created: / 17-11-2011 / 23:00:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
-    "Modified (format): / 14-10-2012 / 22:16:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
-!
-
-javaSourcePath
-
-    <javasourcepath>
+    ^JavaCodeBundle standardPackageBundleFor: self package
 
-    ^{ 
-        self packageDirectory / 'java' / 'src' .
-        self packageDirectory / 'java' / 'libs-src' / '*.jar' .            
-    }
-
-    "Created: / 17-11-2011 / 23:01:02 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Created: / 15-01-2013 / 17:35:46 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
 
-
 !stx_libjava_examples class methodsFor:'description - project information'!
 
 applicationIconFileName
@@ -131,7 +157,6 @@
     ^ 'Smalltalk/X'
 ! !
 
-
 !stx_libjava_examples class methodsFor:'description - svn'!
 
 svnRepositoryUrlString
@@ -150,7 +175,6 @@
     ^ "$SVN-Revision:"'nil             '"$"
 ! !
 
-
 !stx_libjava_examples class methodsFor:'documentation'!
 
 version_CVS
--- a/examples/vcmake.bat	Thu Apr 18 18:36:19 2013 +0200
+++ b/examples/vcmake.bat	Thu Apr 18 23:25:04 2013 +0200
@@ -5,7 +5,9 @@
 @REM -------
 
 @if not defined VSINSTALLDIR (
-    call ..\..\rules\vcsetup.bat
+    pushd ..\..\rules
+    call vcsetup.bat
+    popd
 )
 @SET DEFINES=
 @REM Kludge got Mercurial, cannot be implemented in Borland make