Prepare Neitzel FX Designer 0.1.1

This commit is contained in:
2026-11-26 16:02:39 +01:00
parent 6126967fdc
commit ad0c8f3609
35 changed files with 56 additions and 48 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ run([wrapper, "-B", "-ntp", "-pl", "designer-target-tools", "org.apache.maven.pl
for module in ("contracts", "model-processor", "preview-api", "core", "kit-ui", "standalone", "target-tools", "maven-plugin"):
name = "designer-" + module
expected = 69
with zipfile.ZipFile(ROOT / name / "target" / (name + "-0.1.1-SNAPSHOT.jar")) as jar:
with zipfile.ZipFile(ROOT / name / "target" / (name + "-0.1.1.jar")) as jar:
classes = [n for n in jar.namelist() if n.endswith(".class")]
assert classes, name
assert all(int.from_bytes(jar.read(n)[6:8], "big") == expected for n in classes), name
+1 -1
View File
@@ -48,7 +48,7 @@ with tempfile.TemporaryDirectory(prefix="designer-connected-") as temporary:
crashes.check()
local = fixture / ".neitzel-fx-designer"
(local / "runtimes.json").write_text(json.dumps({"schemaVersion":"1.0","runtimes":{"java25":{"build":args.target_java_home,"target":args.target_java_home}}}))
tools = [ROOT / ("designer-" + name) / "target" / ("designer-" + name + "-0.1.1-SNAPSHOT.jar") for name in ("target-tools","contracts","preview-api")]
tools = [ROOT / ("designer-" + name) / "target" / ("designer-" + name + "-0.1.1.jar") for name in ("target-tools","contracts","preview-api")]
(local / "host.properties").write_text("configuration=../neitzel-fx-designer.json\ncontext=fixture\nsettings=runtimes.json\nmaven="+str(ROOT/"mvnw")+"\ntools="+os.pathsep.join(map(str,tools))+"\n")
run("native-kit-" + mode, [Path(os.environ["JAVA_HOME"]) / "bin/java", "--enable-native-access=ALL-UNNAMED", "-cp", classpath,
"de.neitzel.fxdesigner.standalone.KitWorkflowSmoke", local / "host.properties",
+1 -1
View File
@@ -24,7 +24,7 @@ run([library / "mvnw", "-B", "-ntp", "-f", example / "pom.xml", "-Pdesigner-prev
"test-compile", "org.apache.maven.plugins:maven-dependency-plugin:3.6.1:build-classpath",
"-DincludeScope=test", "-Dmdep.outputFile=target/adapter-preview-runtime.txt"], 180, cwd=library)
target = example / "target"
tools = [ROOT / f"designer-{module}/target/designer-{module}-0.1.1-SNAPSHOT.jar"
tools = [ROOT / f"designer-{module}/target/designer-{module}-0.1.1.jar"
for module in ("target-tools", "contracts", "preview-api")]
classpath = os.pathsep.join([str(target / "test-classes"), str(target / "classes"),
*map(str, tools), (target / "adapter-preview-runtime.txt").read_text().strip()])
+1 -1
View File
@@ -15,7 +15,7 @@ parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--target-java-home", required=True)
parser.add_argument("--neitzellib-version", help="Use this preinstalled legacy FX version for the old fixtures")
parser.add_argument("--spring-di", action="store_true",
help="Also run Spring previews with the locally installed DI adapter snapshot")
help="Also run Spring previews with the separated FX release")
args = parser.parse_args()
java_home = Path(args.target_java_home).resolve()
env = dict(os.environ, JAVA_HOME=str(java_home))
+1 -1
View File
@@ -42,7 +42,7 @@ with tempfile.TemporaryDirectory(prefix="designer-spring-preview-") as temporary
if re.search(r"de\.neitzel\.lib:(?:fx-)?injection:|org\.reflections:reflections:", tree):
raise AssertionError(f"Unexpected DI dependency in {module}\n{tree}")
target = project / "preview/target"
tools = [ROOT / f"designer-{module}/target/designer-{module}-0.1.1-SNAPSHOT.jar"
tools = [ROOT / f"designer-{module}/target/designer-{module}-0.1.1.jar"
for module in ("target-tools", "contracts", "preview-api")]
resolved = [Path(path) for path in (target / "runtime.txt").read_text().strip().split(os.pathsep)]
entries = list(dict.fromkeys([target / "spring-di-preview-1.jar", *resolved, *tools[:2]]))
+1 -1
View File
@@ -30,7 +30,7 @@ assert 'Neitzel FX Designer' in subprocess.check_output([launcher,'--help'],env=
invalid=subprocess.run([launcher,'--unknown'],env=env,text=True,capture_output=True)
assert invalid.returncode==2 and 'Unknown' in invalid.stderr,invalid
jars=list((app/'Contents/app').glob('*.jar'))
checks=ROOT/'designer-kit-ui/target/designer-kit-ui-0.1.1-SNAPSHOT-tests.jar'
checks=ROOT/'designer-kit-ui/target/designer-kit-ui-0.1.1-tests.jar'
classes=evidence/'agent-classes';classes.mkdir()
subprocess.run([a.java_home/'bin/javac','-cp',os.pathsep.join(map(str,[*jars,checks])), '-d',classes,
ROOT/'integration-tests/standalone/PackageProbe.java'],check=True)
+1 -1
View File
@@ -24,7 +24,7 @@ if not all((java / "bin" / name).is_file() for name in ("java", "javac")):
parser.error("Supply a full application JDK installation")
if not maven.is_file() or not os.access(maven, os.X_OK):
parser.error("Supply an executable Maven wrapper or Maven installation")
tools = [ROOT / f"designer-{name}/target/designer-{name}-0.1.1-SNAPSHOT.jar"
tools = [ROOT / f"designer-{name}/target/designer-{name}-0.1.1.jar"
for name in ("target-tools", "contracts", "preview-api")]
if not all(file.is_file() for file in tools):
parser.error("Build/install the Designer Maven modules first")
+3 -3
View File
@@ -21,7 +21,7 @@ run([ROOT/'mvnw','-B','-ntp','-pl','designer-standalone','org.apache.maven.plugi
with tempfile.TemporaryDirectory(prefix='designer-package-') as tmp:
stage=Path(tmp)/'input'; stage.mkdir()
# Explicit manifest order: the verified Kit patch must precede upstream Kit.
paths=[ROOT/'designer-standalone/target/designer-standalone-0.1.1-SNAPSHOT.jar']
paths=[ROOT/'designer-standalone/target/designer-standalone-0.1.1.jar']
deps=[Path(s) for s in (ROOT/'designer-standalone/target/package-classpath.txt').read_text().strip().split(os.pathsep)]
paths += sorted(deps,key=lambda f:(0 if f.name.startswith('designer-kit-ui-') else 1,f.name))
for file in paths:
@@ -41,7 +41,7 @@ with tempfile.TemporaryDirectory(prefix='designer-package-') as tmp:
run([java/'bin/jar','cfm',stage/'launcher.jar',manifest,'-C',empty,'.'])
tools=Path(tmp)/'tools'; tools.mkdir()
for name in ('target-tools','contracts','preview-api'):
file=ROOT/f'designer-{name}/target/designer-{name}-0.1.1-SNAPSHOT.jar'
file=ROOT/f'designer-{name}/target/designer-{name}-0.1.1.jar'
shutil.copy2(file,tools/file.name)
shutil.copy2(ROOT/'THIRD-PARTY-NOTICES.md',stage)
runtime=Path(tmp)/'runtime'
@@ -58,7 +58,7 @@ with tempfile.TemporaryDirectory(prefix='designer-package-') as tmp:
assert '/tools/' not in cfg, 'Target tools leaked into the host launcher'
inventory={str(f.relative_to(app)):hashlib.sha256(f.read_bytes()).hexdigest() for f in sorted(app.rglob('*')) if f.is_file()}
(destination/'package-manifest.json').write_text(json.dumps({'platform':platform.platform(),'architecture':platform.machine(),
'applicationVersion':'0.1.1-SNAPSHOT','bundleVersion':'1.0',
'applicationVersion':'0.1.1','bundleVersion':'1.0',
'source':subprocess.check_output(['git','rev-parse','HEAD'],cwd=ROOT,text=True).strip(),
'workingTreeDirty':bool(subprocess.check_output(['git','status','--porcelain'],cwd=ROOT,text=True).strip()),
'javaRelease':(java/'release').read_text(),'files':inventory},indent=2)+'\n')
+1 -1
View File
@@ -16,7 +16,7 @@ shutil.copytree(ROOT / "integration-fixtures/preview" / args.mode, destination,
local = destination / ".neitzel-fx-designer"
local.mkdir()
(local / "runtimes.json").write_text(json.dumps({"schemaVersion":"1.0","runtimes":{"java25":{"build":str(args.target_java_home.resolve()),"target":str(args.target_java_home.resolve())}}}))
tools = [ROOT / ("designer-" + name) / "target" / ("designer-" + name + "-0.1.1-SNAPSHOT.jar")
tools = [ROOT / ("designer-" + name) / "target" / ("designer-" + name + "-0.1.1.jar")
for name in ("target-tools","contracts","preview-api")]
# Properties separators in values do not need escaping; double backslashes do.
def prop(value): return str(value).replace("\\", "\\\\")
+1 -1
View File
@@ -135,7 +135,7 @@ else:
classes.mkdir()
checks = base / "plugins/qualification/lib/projection-checks.jar"
checks.parent.mkdir(parents=True)
shutil.copyfile(ROOT / "designer-kit-ui/target/designer-kit-ui-0.1.1-SNAPSHOT-tests.jar", checks)
shutil.copyfile(ROOT / "designer-kit-ui/target/designer-kit-ui-0.1.1-tests.jar", checks)
jars = [*(args.idea_home / "lib").glob("*.jar"), *(base / "plugins").rglob("*.jar"), *(args.idea_home / "plugins/platform-problemView-plugin").rglob("*.jar")]
sources = ROOT / "integration-tests/idea"
suite = "Archive"