Skip to content

Commit 02507fe

Browse files
committed
1.0.81 - misc
1 parent 46a58bb commit 02507fe

9 files changed

Lines changed: 5279 additions & 34 deletions

File tree

extras/adm/bootstrap.fan

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// 18 Dec 09 Brian Frank Creation
88
//
99

10+
using concurrent
1011
using util
1112

1213
**
@@ -240,6 +241,9 @@ class Bootstrap : AbstractMain
240241
buf := Buf()
241242
p := Process(cmd) { out = buf.out }
242243
r := p.run.join
244+
// note: i have observed on ubuntu that we need this sleep to
245+
// give time for the output to flush to the buf
246+
Actor.sleep(500ms)
243247
return r != 0 ? "" : buf.flip.readAllLines.first
244248
}
245249

fantom/bin/fant

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@
44
# fant: unit tester
55
#
66

7-
. "${0%/*}/fanlaunch"
8-
fanlaunch Fant "$@"
7+
# To run original Java version:
8+
# fanlaunch Fant "$@"
9+
10+
. "${0%/*}/fanlaunch"
11+
fanlaunch Fan "util::TestRunner" "$@"
12+

fantom/bin/fant.bat

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ REM Copyright (c) 2015, Brian Frank and Andy Frank
44
REM Licensed under the Academic Free License version 3.0
55
REM
66
REM History:
7-
REM 27 Jul 2015 Matthew Giannini Creation
7+
REM 27 Jul 2015 Matthew Giannini Creation
88
REM
99
REM fant: unit tester
1010
REM
1111

12-
call "%~fs0\..\fanlaunch.bat" Fant %*
12+
call "%~fs0\..\fanlaunch.bat" Fan "util::TestRunner" %*
13+

fantom/dockerfile

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818

1919
ARG JDK_VERSION=17
2020

21-
FROM eclipse-temurin:$JDK_VERSION as bootstrap
21+
FROM eclipse-temurin:$JDK_VERSION AS bootstrap
2222

2323
ARG SWT_DL_URL=https://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/R-4.27-202303020300/swt-4.27-gtk-linux-x86_64.zip&mirror_id=1
2424

2525
# These define the `rel` Fantom version.
26-
ARG REL_VERSION=fantom-1.0.79
27-
ARG REL_TAG=v1.0.79
26+
ARG REL_VERSION=fantom-1.0.80
27+
ARG REL_TAG=v1.0.80
2828

2929
WORKDIR /work
3030

@@ -47,20 +47,13 @@ RUN set -e; \
4747

4848
COPY . ./fan/
4949

50-
# Copy SWT into installations
51-
#RUN mkdir rel/lib/java/ext/linux-x86_64 \
52-
# && cp swt.jar rel/lib/java/ext/linux-x86_64/ \
53-
# && mkdir fan/lib/java/ext/linux-x86_64 \
54-
# && cp swt.jar fan/lib/java/ext/linux-x86_64/ \
55-
# && rm swt.jar
56-
57-
# Populate config.props with jdkHome (to use jdk, not jre) and devHome
58-
RUN echo -e "\n\njdkHome=$JAVA_HOME/\ndevHome=/work/fan/\n" >> rel/etc/build/config.props \
59-
&& echo -e "\n\njdkHome=$JAVA_HOME/" >> fan/etc/build/config.props
60-
61-
RUN rel/bin/fan fan/src/buildall.fan superclean \
62-
&& rel/bin/fan fan/src/buildboot.fan compile \
63-
&& fan/bin/fan fan/src/buildpods.fan compile
50+
RUN <<EOF
51+
echo "\n\njdkHome=${JAVA_HOME}/\ndevHome=/work/fan/\n" >> rel/etc/build/config.props
52+
echo "\n\njdkHome=${JAVA_HOME}/" >> fan/etc/build/config.props
53+
rel/bin/fan fan/src/buildall.fan superclean
54+
rel/bin/fan fan/src/buildboot.fan compile
55+
fan/bin/fan fan/src/buildpods.fan compile
56+
EOF
6457

6558
# The /work/fan directory now contains a compiled version of the local Fantom
6659

@@ -69,11 +62,11 @@ RUN rel/bin/fan fan/src/buildall.fan superclean \
6962
# ================================
7063
# This simply copies the new Fantom into a fresh container and sets up the path.
7164

72-
FROM eclipse-temurin:$JDK_VERSION as run
65+
FROM eclipse-temurin:$JDK_VERSION AS run
7366

7467
COPY --from=bootstrap /work/fan/ /opt/fan/
7568

76-
ENV PATH $PATH:/opt/fan/bin
69+
ENV PATH=$PATH:/opt/fan/bin
7770

7871
# Return Fantom's version
7972
CMD ["fan","-version"]

fantom/etc/build/config.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//
1212

1313
// default version used by build scripts
14-
buildVersion=1.0.80
14+
buildVersion=1.0.81
1515

1616
// Must be configured boot build in substitute/release installation
1717
//devHome=/work/fan/

0 commit comments

Comments
 (0)