update stuff

This commit is contained in:
2025-11-13 01:11:02 +01:00
parent b17a5fa1dd
commit 64ee63975c
6 changed files with 6 additions and 4 deletions

View File

@@ -1,2 +0,0 @@
build
result

View File

@@ -1,4 +1,4 @@
// DK, 18.11.2022
package praktikum5.aufgabe1;
import java.net.UnknownHostException;
import java.net.InetAddress;

View File

@@ -1,3 +1,5 @@
package praktikum5.aufgabe2;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.net.SocketException;

View File

@@ -1,25 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="Praktikum5" default="run" basedir=".">
<property name="src.dir" value="."/>
<property name="build.dir" value="build"/>
<property name="classes.dir" value="${build.dir}/classes"/>
<property name="main-class" value=""/>
<target name="clean">
<delete dir="${build.dir}"/>
</target>
<target name="compile">
<mkdir dir="${classes.dir}"/>
<javac srcdir="${src.dir}" destdir="${classes.dir}"
includeantruntime="false" debug="true">
<compilerarg value="-Xlint:unchecked"/>
</javac>
</target>
<target name="run" depends="compile">
<java classname="${main-class}" classpath="${classes.dir}" fork="true"/>
</target>
</project>

61
praktikum-5/flake.lock generated
View File

@@ -1,61 +0,0 @@
{
"nodes": {
"flake-parts": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1762980239,
"narHash": "sha256-8oNVE8TrD19ulHinjaqONf9QWCKK+w4url56cdStMpM=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "52a2caecc898d0b46b2b905f058ccc5081f842da",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1762844143,
"narHash": "sha256-SlybxLZ1/e4T2lb1czEtWVzDCVSTvk9WLwGhmxFmBxI=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "9da7f1cf7f8a6e2a7cb3001b048546c92a8258b4",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-lib": {
"locked": {
"lastModified": 1761765539,
"narHash": "sha256-b0yj6kfvO8ApcSE+QmA6mUfu8IYG6/uU28OFn4PaC8M=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "719359f4562934ae99f5443f20aa06c2ffff91fc",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixpkgs.lib",
"type": "github"
}
},
"root": {
"inputs": {
"flake-parts": "flake-parts",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

View File

@@ -1,38 +0,0 @@
{
description = "Rechnerstrukturen Praktikum 5";
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake {inherit inputs;} {
imports = [];
systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin"];
perSystem = {
config,
self',
inputs',
pkgs,
system,
...
}:
with pkgs.lib; {
devShells.default = with pkgs;
mkShell {
packages = [
openjdk
ant
];
shellHook = ''
echo "Usage Example:"
echo "ant run -Dmain-class=aufgabe3.Server"
'';
};
};
flake = {
};
};
}