Set Neitzel FX Designer version to 0.1.0

This commit is contained in:
2026-11-26 10:24:04 +01:00
parent 54c41cd654
commit 49682eaa21
33 changed files with 58 additions and 48 deletions
+2 -2
View File
@@ -23,11 +23,11 @@ def run(command):
wrapper = ROOT / ("mvnw.cmd" if os.name == "nt" else "mvnw")
run([sys.executable, ROOT / "scripts/check-neitzellib-artifact.py"])
run([wrapper, "-B", "-ntp", "clean", "install"])
run([wrapper, "-B", "-ntp", "-pl", "designer-target-tools", "org.apache.maven.plugins:maven-dependency-plugin:3.6.1:build-classpath", "-DincludeScope=runtime", "-Dmdep.outputFile=target/runtime-classpath.txt"])
run([wrapper, "-B", "-ntp", "-pl", "designer-target-tools", "org.apache.maven.plugins:maven-dependency-plugin:3.6.1:build-classpath", "-DincludeScope=test", "-Dmdep.outputFile=target/runtime-classpath.txt"])
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.0-SNAPSHOT.jar")) as jar:
with zipfile.ZipFile(ROOT / name / "target" / (name + "-0.1.0.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.0-SNAPSHOT.jar") for name in ("target-tools","contracts","preview-api")]
tools = [ROOT / ("designer-" + name) / "target" / ("designer-" + name + "-0.1.0.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
@@ -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.0-SNAPSHOT-tests.jar'
checks=ROOT/'designer-kit-ui/target/designer-kit-ui-0.1.0-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.0-SNAPSHOT.jar"
tools = [ROOT / f"designer-{name}/target/designer-{name}-0.1.0.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.0-SNAPSHOT.jar']
paths=[ROOT/'designer-standalone/target/designer-standalone-0.1.0.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.0-SNAPSHOT.jar'
file=ROOT/f'designer-{name}/target/designer-{name}-0.1.0.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.0-SNAPSHOT','bundleVersion':'1.0',
'applicationVersion':'0.1.0','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.0-SNAPSHOT.jar")
tools = [ROOT / ("designer-" + name) / "target" / ("designer-" + name + "-0.1.0.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
@@ -110,7 +110,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.0-SNAPSHOT-tests.jar", checks)
shutil.copyfile(ROOT / "designer-kit-ui/target/designer-kit-ui-0.1.0-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"